PluginProbe
SureCart – Ecommerce Made Easy For Selling Physical Products, Digital Downloads, Subscriptions, Donations, & Payments / 2.6.1
SureCart – Ecommerce Made Easy For Selling Physical Products, Digital Downloads, Subscriptions, Donations, & Payments v2.6.1
4.7.2 4.7.1 4.7.0 4.6.6 4.6.5 4.6.4 4.6.3 4.6.2 4.6.1 4.6.0 4.5.1 4.5.0 4.4.2 4.4.1 4.4.0 4.3.3 4.3.2 4.3.1 4.3.0 4.2.3 4.2.2 4.2.1 1.0.3 1.0.4 1.0.5 All 281 releases
← All changes | app/src/Background/AsyncWebhookService.php +1 -11 4.6.62.6.1 View file →
@@ -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' );