From 7525c5d1f1db9c1515a2ef9568ba6f3a1e1178da Mon Sep 17 00:00:00 2001 From: Zenit Shkreli <69572953+zenit2001@users.noreply.github.com> Date: Mon, 22 Jul 2024 09:25:43 +0200 Subject: [PATCH] chore: removing a check that is not required anymore (#1123) --- .../int_adyen_SFRA/cartridge/adyen/utils/adyenHelper.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/cartridges/int_adyen_SFRA/cartridge/adyen/utils/adyenHelper.js b/src/cartridges/int_adyen_SFRA/cartridge/adyen/utils/adyenHelper.js index ce53e913c..147af825b 100644 --- a/src/cartridges/int_adyen_SFRA/cartridge/adyen/utils/adyenHelper.js +++ b/src/cartridges/int_adyen_SFRA/cartridge/adyen/utils/adyenHelper.js @@ -295,8 +295,7 @@ let adyenHelperObj = { // determines whether Adyen Giving is available based on the donation token isAdyenGivingAvailable(paymentInstrument) { - // Adyen giving is only available for BCMC in POS - return paymentInstrument.paymentTransaction.custom.Adyen_donationToken && paymentInstrument.paymentTransaction.custom.Adyen_paymentMethod !== 'bcmc'; + return paymentInstrument.paymentTransaction.custom.Adyen_donationToken; }, // gets the ID for ratePay using the custom preference and the encoded session ID