Skip to content

Commit

Permalink
fix: blockedPaymentMethods referencing the removed constants (#984)
Browse files Browse the repository at this point in the history
  • Loading branch information
rge-dS committed Oct 23, 2023
1 parent 4ffc6c7 commit e204e50
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
const AdyenHelper = require('*/cartridge/scripts/util/adyenHelper');
const AdyenConfigs = require('*/cartridge/scripts/util/adyenConfigs');
const constants = require('*/cartridge/adyenConstants/constants');
const blockedPayments = require('*/cartridge/scripts/config/blockedPaymentMethods.json');
const AdyenLogs = require('*/cartridge/scripts/adyenCustomLogs');

function getMethods(basket, customer, countryCode) {
Expand Down Expand Up @@ -71,7 +72,7 @@ function getMethods(basket, customer, countryCode) {
paymentMethodsRequest.shopperReference = customerID;
}

paymentMethodsRequest.blockedPaymentMethods = AdyenHelper.BLOCKED_PAYMENT_METHODS;
paymentMethodsRequest.blockedPaymentMethods = blockedPayments.blockedPaymentMethods;

const platformVersion = AdyenHelper.getApplicationInfo().externalPlatform.version;
const service = platformVersion === constants.PLATFORMS.SG ? `${constants.SERVICE.CHECKOUTPAYMENTMETHODS}${constants.PLATFORMS.SG}` : constants.SERVICE.CHECKOUTPAYMENTMETHODS;
Expand Down

0 comments on commit e204e50

Please sign in to comment.