Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: Adyen/adyen-salesforce-commerce-cloud
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: e5d4d2e5d3b10e9b42f0031dcce1a43dc1544b64
Choose a base ref
..
head repository: Adyen/adyen-salesforce-commerce-cloud
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 237d4e5aaebd0164c574e1725ef3eee9e33fa5ac
Choose a head ref
Showing with 13 additions and 13 deletions.
  1. +12 −0 src/cartridges/int_adyen_SFRA/cartridge/adyen/config/constants.js
  2. +1 −13 src/cartridges/int_adyen_SFRA/cartridge/adyen/utils/adyenHelper.js
12 changes: 12 additions & 0 deletions src/cartridges/int_adyen_SFRA/cartridge/adyen/config/constants.js
Original file line number Diff line number Diff line change
@@ -37,6 +37,18 @@ module.exports = {

CAN_SKIP_SUMMARY_PAGE: ['applepay', 'cashapp', 'upi'],

OPEN_INVOICE_METHODS: [
'afterpay',
'klarna',
'ratepay',
'facilypay',
'riverty',
'atome',
'zip',
'affirm',
'clearpay',
],

SERVICE: {
PAYMENT: 'AdyenPayment',
PAYMENTDETAILS: 'AdyenPaymentDetails',
Original file line number Diff line number Diff line change
@@ -358,19 +358,7 @@ let adyenHelperObj = {
},

isOpenInvoiceMethod(paymentMethod) {
if (
paymentMethod.indexOf('afterpay') > - 1 ||
paymentMethod.indexOf('klarna') > -1 ||
paymentMethod.indexOf('ratepay') > -1 ||
paymentMethod.indexOf('facilypay') > -1 ||
paymentMethod.indexOf('riverty') > -1 ||
paymentMethod === 'zip' ||
paymentMethod === 'affirm' ||
paymentMethod === 'clearpay'
) {
return true;
}
return false;
return constants.OPEN_INVOICE_METHODS.some(method => paymentMethod.indexOf(method) > -1);
},

isMolpayMethod(paymentMethod) {