Posts

Post not yet marked as solved
0 Replies
357 Views
i am creating applepay magento2 extension this is my codeplaceOrderApplePay :function (){var paymentRequest = { "countryCode": "US", "currencyCode": "USD", "merchantCapabilities": ["supports3DS" ], "supportedNetworks": ["visa","masterCard","amex","discover" ], "total": {"label": "My Store (Card is not charged)","type": "final","amount": "1.99" }}; var session = new ApplePaySession(3, paymentRequest);session.onvalidatemerchant = function (event) {jQuery.ajax({url: 'https://www.jumla-sa.com/Mage23/applepay/',method: "POST",contentType: "application/json; charset=utf-8",//data: JSON.stringify(validationData)}).then(function (merchantSession) {session.completeMerchantValidation(JSON.parse(merchantSession));console.log(JSON.parse(merchantSession));}, function (error) {alert("merchant validation unsuccessful: " + JSON.stringify(error));session.abort();});}session.begin();}but i am getting error payment can not completed
Posted
by aalogics.
Last updated
.