Skip to content

Commit

Permalink
Fix invoice taxes & discount
Browse files Browse the repository at this point in the history
letscode-u committed May 4, 2021
1 parent e113766 commit 2441d15
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@
"php": "~5.5.0|~5.6.0|~7.0.0|~7.1"
},
"type": "magento2-module",
"version": "1.6.0",
"version": "1.6.1",
"license": [
"OSL-3.0"
],
6 changes: 3 additions & 3 deletions view/frontend/templates/coinpayments/iframe.phtml
Original file line number Diff line number Diff line change
@@ -26,8 +26,8 @@ $failUrl = $block->getFailUrl();
'utf-8'
); ?>">
<input type="hidden" name="shippingf" value="<?php echo $block->getShippingAmount(); ?>">
<input type="hidden" name="taxf" value="<?php $quoteData->getShippingAddress()->getTaxAmount(); ?>">
<input type="hidden" name="amountf" value="<?php echo $quoteData->getSubtotal(); ?>">
<input type="hidden" name="taxf" value="<?php echo $quoteData->getShippingAddress()->getTaxAmount(); ?>">
<input type="hidden" name="amountf" value="<?php echo $quoteData->getSubtotalWithDiscount(); ?>">
<input type="hidden" name="success_url" value="<?php echo $successUrl; ?>">
<input type="hidden" name="cancel_url" value="<?php echo $failUrl; ?>">
<input type="hidden" name="ipn_url" value="<?php echo htmlspecialchars($block->getIpnUrl(), ENT_QUOTES, 'utf-8'); ?>">
@@ -50,4 +50,4 @@ $failUrl = $block->getFailUrl();
</form>
<script type="text/javascript">
document.coinpaymentsform.submit();
</script>
</script>

0 comments on commit 2441d15

Please sign in to comment.