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( ...@@ -145,6 +145,7 @@ define(
isApplePayAllowed: function () { isApplePayAllowed: function () {
var self = this; var self = this;
if (!!window.ApplePaySession) {
// validate if applepay is allowed, it will be picked up by the isApplePayVisible method // validate if applepay is allowed, it will be picked up by the isApplePayVisible method
var promise = window.ApplePaySession.canMakePaymentsWithActiveCard(self.getMerchantIdentifier()); var promise = window.ApplePaySession.canMakePaymentsWithActiveCard(self.getMerchantIdentifier());
promise.then(function (canMakePayments) { promise.then(function (canMakePayments) {
...@@ -152,9 +153,11 @@ define( ...@@ -152,9 +153,11 @@ define(
canMakeApplePayPayments(true); canMakeApplePayPayments(true);
}); });
if (window.ApplePaySession && window.ApplePaySession.supportsVersion(applePayVersion) ) { if (window.ApplePaySession && window.ApplePaySession.supportsVersion(applePayVersion)) {
return true; return true;
} }
}
return false; return false;
}, },
performValidation: function (validationURL) { performValidation: function (validationURL) {
...@@ -191,10 +194,10 @@ define( ...@@ -191,10 +194,10 @@ define(
} }
); );
}, },
isApplePayVisible: function() { isApplePayVisible: function () {
return canMakeApplePayPayments(); return canMakeApplePayPayments();
}, },
getMerchantIdentifier: function() { getMerchantIdentifier: function () {
return window.checkoutConfig.payment.adyen_apple_pay.merchant_identifier; return window.checkoutConfig.payment.adyen_apple_pay.merchant_identifier;
} }
}); });
......
...@@ -518,13 +518,6 @@ define( ...@@ -518,13 +518,6 @@ define(
} }
}); });
}, },
/** Redirect to adyen */
continueToAdyen: function () {
if (this.validate() && additionalValidators.validate()) {
this.placeRedirectOrder(this.getData());
return false;
}
},
continueToAdyenBrandCode: function () { continueToAdyenBrandCode: function () {
// set payment method to adyen_hpp // set payment method to adyen_hpp
var self = this; 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