Skip to content

Commit

Permalink
use receipt to get the quote in webhook (#253)
Browse files Browse the repository at this point in the history
  • Loading branch information
ramth05 committed Jun 11, 2021
1 parent d95eb69 commit 8653b6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Controller/Payment/Webhook.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,13 +180,13 @@ protected function orderPaid(array $post)
$paymentId = $post['payload']['payment']['entity']['id'];
$rzpOrderId = $post['payload']['order']['entity']['id'];

if (isset($post['payload']['payment']['entity']['notes']['merchant_quote_id']) === false)
if (isset($post['payload']['order']['entity']['receipt']) === false)
{
$this->logger->info("Razorpay Webhook: Quote ID not set for Razorpay payment_id(:$paymentId)");
return;
}

$quoteId = $post['payload']['payment']['entity']['notes']['merchant_quote_id'];
$quoteId = $post['payload']['order']['entity']['receipt'];


$orderLinkCollection = $this->_objectManager->get('Razorpay\Magento\Model\OrderLink')
Expand Down

0 comments on commit 8653b6c

Please sign in to comment.