From e0883139752f80e232df19d505ae9ca9d8f7e170 Mon Sep 17 00:00:00 2001 From: rohitcbr Date: Wed, 11 Dec 2024 15:32:04 +0530 Subject: [PATCH] reverting one change --- includes/razorpay-webhook.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/includes/razorpay-webhook.php b/includes/razorpay-webhook.php index 9e623cae..2191830a 100644 --- a/includes/razorpay-webhook.php +++ b/includes/razorpay-webhook.php @@ -526,9 +526,8 @@ protected function getPaymentEntity($razorpayPaymentId, $data) protected function shouldConsumeWebhook($data) { if ((isset($data['event']) === true) and - ((in_array($data['event'], $this->eventsArray) === true) or - (in_array($data['event'], $this->subscriptionEvents) === true)) and - ((isset($data['payload']['payment']['entity']['notes']['woocommerce_order_number']) === true) or (isset($data['payload']['subscription']['entity']['notes']['woocommerce_order_id']) === true))) { + (in_array($data['event'], $this->eventsArray) === true) and + (isset($data['payload']['payment']['entity']['notes']['woocommerce_order_number']) === true or isset($data['payload']['subscription']['entity']['notes']['woocommerce_order_id']) === true)) { return true; }