Skip to content

Commit

Permalink
PON-673: Fix for multistore label for the orders from webhook (#205)
Browse files Browse the repository at this point in the history
  • Loading branch information
ramth05 authored Oct 23, 2020
1 parent 62254dc commit cf320d2
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
7 changes: 6 additions & 1 deletion Controller/Payment/Webhook.php
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,12 @@ protected function getQuoteObject($post, $quoteId)

$quote->getPayment()->setMethod(PaymentMethod::METHOD_CODE);

$store = $this->storeManagement->getStore();
$store = $quote->getStore();

if(empty($store) === true)
{
$store = $this->storeManagement->getStore();
}

$websiteId = $store->getWebsiteId();

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "razorpay/magento",
"description": "Razorpay Magento 2.0 plugin for accepting payments.",
"version": "3.2.0",
"version": "3.2.1",
"require": {
"php": "~5.5.0|~5.6.0|^7.0",
"razorpay/razorpay": "2.*"
Expand Down
5 changes: 5 additions & 0 deletions etc/csp_whitelist.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,10 @@
<value id="razorpay_api" type="host">api.razorpay.com</value>
</values>
</policy>
<policy id="connect-src">
<values>
<value id="razorpay_lumberjack" type="host">lumberjack.razorpay.com</value>
</values>
</policy>
</policies>
</csp_whitelist>
2 changes: 1 addition & 1 deletion etc/module.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Razorpay_Magento" setup_version="3.2.0">
<module name="Razorpay_Magento" setup_version="3.2.1">
<sequence>
<module name="Magento_Sales" />
<module name="Magento_Payment" />
Expand Down

0 comments on commit cf320d2

Please sign in to comment.