Skip to content

Commit

Permalink
Merge pull request #496 from fatchip-Stefan/SW-440
Browse files Browse the repository at this point in the history
SW-440: Applepay: fixed amount mismatch error for merchant customer g…
  • Loading branch information
janteuber authored Nov 7, 2023
2 parents 4a72d1d + 617b969 commit 5d0c839
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,15 @@
merchantCapabilities: {$mopt_applepay_merchantCapabilities},
total: {
label: '{$mopt_applepay_label}',
amount: '{$sAmount}'
amount: '{if $sAmountWithTax && $sUserData.additional.charge_vat}{$sAmountWithTax}{else}{$sAmount}{/if}'
}
})
session.onvalidatemerchant = function (event) {
var validationUrl = event.validationURL;
// validationUrl = 'https://apple-pay-gateway-cert.apple.com/paymentservices/startSession';
writeDebug('Vaidation URl:' + validationUrl);
writeDebug('Basket amount:' + '{if $sAmountWithTax && $sUserData.additional.charge_vat}{$sAmountWithTax}{else}{$sAmount}{/if}');
$.ajax({
url: '{url controller="MoptAjaxPayone" action="createApplePaySession" forceSecure}',
dataType: 'json',
Expand Down

0 comments on commit 5d0c839

Please sign in to comment.