Skip to content

Commit

Permalink
Use billing address in lieu of shipping address on virtual orders
Browse files Browse the repository at this point in the history
  • Loading branch information
RBech committed Feb 7, 2019
1 parent cf31076 commit 561beda
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Gateway/Request/AuthorizationRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function build(array $buildSubject)
'CURRENCY' => $order->getCurrencyCode(),
'EMAIL' => $address->getEmail(),
'BILLING_ADDRESS' => $address,
'SHIPPING_ADDRESS' => $order->getShippingAddress(),
'SHIPPING_ADDRESS' => $order->getShippingAddress() ?: $address,
'ITEMS' => $order->getItems(),
];
}
Expand Down
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="QuickPay_Payment" setup_version="1.1.3">
<module name="QuickPay_Payment" setup_version="1.1.4">
<sequence>
<module name="Magento_Payment"/>
<module name="Magento_Checkout"/>
Expand Down

0 comments on commit 561beda

Please sign in to comment.