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(
return window.checkoutConfig.payment.adyen.showLogo;
},
isApplePayAllowed: function () {
var self = this;
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)) {
canMakeApplePayPayments(true);
return true;
}
}
return false;
},
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