We will work on Apr 26th (Saturday) and will be off from Apr 30th (Wednesday) until May 2nd (Friday) for public holiday in our country

Commit 82c98e03 authored by Ángel Campos's avatar Ángel Campos Committed by GitHub

Remove Apple Pay extra check if valid active cards are present (#743)

* Remove Apple Pay extra check if you have valid active cards

* Remove useless variable
parent c3a7e85c
...@@ -143,21 +143,12 @@ define( ...@@ -143,21 +143,12 @@ define(
return window.checkoutConfig.payment.adyen.showLogo; return window.checkoutConfig.payment.adyen.showLogo;
}, },
isApplePayAllowed: function () { isApplePayAllowed: function () {
var self = this;
if (!!window.ApplePaySession) { if (!!window.ApplePaySession) {
// validate if applepay is allowed, it will be picked up by the isApplePayVisible method
var promise = window.ApplePaySession.canMakePaymentsWithActiveCard(self.getMerchantIdentifier());
promise.then(function (canMakePayments) {
if (canMakePayments)
canMakeApplePayPayments(true);
});
if (window.ApplePaySession && window.ApplePaySession.supportsVersion(applePayVersion)) { if (window.ApplePaySession && window.ApplePaySession.supportsVersion(applePayVersion)) {
canMakeApplePayPayments(true);
return true; return true;
} }
} }
return false; return false;
}, },
performValidation: function (validationURL) { performValidation: function (validationURL) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment