We will be off from 27/1 (Monday) to 31/1 (Friday) (GMT +7) for our Tet Holiday (Lunar New Year) in our country

Commit 6ae985c7 authored by Rik ter Beek's avatar Rik ter Beek Committed by GitHub

Merge pull request #532 from Adyen/bug/small-fixes

remove unused method called continueToAdyen and fix javascript error …
parents 3b94116d 8dc627f4
......@@ -145,6 +145,7 @@ define(
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) {
......@@ -152,9 +153,11 @@ define(
canMakeApplePayPayments(true);
});
if (window.ApplePaySession && window.ApplePaySession.supportsVersion(applePayVersion) ) {
if (window.ApplePaySession && window.ApplePaySession.supportsVersion(applePayVersion)) {
return true;
}
}
return false;
},
performValidation: function (validationURL) {
......@@ -191,10 +194,10 @@ define(
}
);
},
isApplePayVisible: function() {
isApplePayVisible: function () {
return canMakeApplePayPayments();
},
getMerchantIdentifier: function() {
getMerchantIdentifier: function () {
return window.checkoutConfig.payment.adyen_apple_pay.merchant_identifier;
}
});
......
......@@ -518,13 +518,6 @@ define(
}
});
},
/** Redirect to adyen */
continueToAdyen: function () {
if (this.validate() && additionalValidators.validate()) {
this.placeRedirectOrder(this.getData());
return false;
}
},
continueToAdyenBrandCode: function () {
// set payment method to adyen_hpp
var self = this;
......
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