| @@ -24,9 +24,8 @@ | ||
| 24 | 24 | 'product' => \SureCart\Models\Product::class, |
| 25 | 25 | 'period' => \SureCart\Models\Period::class, |
| 26 | 26 | 'order' => \SureCart\Models\Order::class, |
| 27 | 27 | 'refund' => \SureCart\Models\Refund::class, |
| 28 | - 'dispute' => \SureCart\Models\Dispute::class, | |
| 29 | 28 | 'subscription' => \SureCart\Models\Subscription::class, |
| 30 | 29 | 'invoice' => \SureCart\Models\Invoice::class, |
| 31 | 30 | 'account' => \SureCart\Models\Account::class, |
| 32 | 31 | 'webhook_endpoint' => \SureCart\Models\Webhook::class, |
| @@ -32,17 +31,8 @@ | ||
| 32 | 31 | 'webhook_endpoint' => \SureCart\Models\Webhook::class, |
| 33 | 32 | ]; |
| 34 | 33 | |
| 35 | 34 | /** |
| 36 | - * Bootstrap the service. | |
| 37 | - * | |
| 38 | - * @return void | |
| 39 | - */ | |
| 40 | - public function bootstrap() { | |
| 41 | - // nothing to bootstrap. | |
| 42 | - } | |
| 43 | - | |
| 44 | - /** | |
| 45 | 35 | * Enqueue an action to run one time, as soon as possible |
| 46 | 36 | * |
| 47 | 37 | * @var string |
| 48 | 38 | */ |
| @@ -63,9 +53,9 @@ | ||
| 63 | 53 | * @throws \Exception If no id is specified. |
| 64 | 54 | */ |
| 65 | 55 | public function handle( $id = 0 ) { |
| 66 | 56 | // get the webhook. |
| 67 | - $id = (int) ( $id ? $id : $_POST['id'] ); // phpcs:ignore WordPress.Security.NonceVerification.Missing | |
| 57 | + $id = $id ? $id : $_POST['id']; // phpcs:ignore WordPress.Security.NonceVerification.Missing | |
| 68 | 58 | |
| 69 | 59 | // get the event name. |
| 70 | 60 | if ( empty( $id ) ) { |
| 71 | 61 | error_log( 'No id specified for webhook' ); |