Skip to content

Commit

Permalink
reverting one change
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitcbr committed Dec 11, 2024
1 parent 2e063bf commit e088313
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions includes/razorpay-webhook.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit e088313

Please sign in to comment.