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 83fc873c authored by rikt's avatar rikt

add comments

parent 7dc579a6
...@@ -514,13 +514,20 @@ define( ...@@ -514,13 +514,20 @@ define(
return paymentList; return paymentList;
}, },
/**
* Some payment methods we do not want to render as it requires extra implementation
* or is already implemented in a separate payment method.
* Using a match as we want to prevent to render all Boleto and most of the WeChat types
* @param paymentMethod
* @returns {boolean}
*/
isPaymentMethodSupported: function (paymentMethod) { isPaymentMethodSupported: function (paymentMethod) {
if (paymentMethod == 'wechatpayWeb') { if (paymentMethod == 'wechatpayWeb') {
return true; return true;
} }
for (var i = 0; i < unsupportedPaymentMethods.length; i++) { for (var i = 0; i < unsupportedPaymentMethods.length; i++) {
var match = paymentMethod.match(unsupportedPaymentMethods[i]); var match = paymentMethod.match(unsupportedPaymentMethods[i]);
if(match) { if (match) {
return false; return false;
} }
} }
......
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