Skip to content

Commit

Permalink
callback transaction fee fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mareknaujas committed Aug 26, 2023
1 parent 5b06c4d commit cd7ba51
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Controller/Payment/Callback.php
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ public function execute()
}

//Add transaction fee if set
if ($response->fee > 0) {
if (isset($response->fee) && $response->fee > 0) {
$this->addTransactionFee($order, $response->fee);
}

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_Gateway" setup_version="2.4.0">
<module name="QuickPay_Gateway" setup_version="2.4.1">
<sequence>
<module name="Magento_Payment"/>
<module name="Magento_Checkout"/>
Expand Down

0 comments on commit cd7ba51

Please sign in to comment.