Skip to content

Commit

Permalink
fixed boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
abdulwahidsharief committed Mar 11, 2024
1 parent 6cc8406 commit 2e805f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion catalog/controller/extension/payment/razorpay.php
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ public function webhook()
return;
}

if (in_array($data['event'], [self::ORDER_PAID, self::PAYMENT_AUTHORIZED])
if (in_array($data['event'], [self::ORDER_PAID, self::PAYMENT_AUTHORIZED]) === true)
{
$webhookFilteredData = [
"id" => $data['payload']['payment']['entity']['id'],
Expand Down

0 comments on commit 2e805f3

Please sign in to comment.