CyberSource / cybersource-plugins-rest-salesforceb2ccommerce

Other
2 stars 2 forks source link

Credit Card authorizations will not work: Wrong configuration variable name #7

Closed moorena closed 6 months ago

moorena commented 6 months ago

In file link_cybersource\cartridges\int_cybs_sfra_base\cartridge\scripts\http\payments.js

Line 125 Uses the variable Cybersource_CreditCardTransactionType: if (dw.system.Site.getCurrent().getCustomPreferenceValue('Cybersource_CreditCardTransactionType').value === 'sale' ){

but the configuration value is defined in link_cybersource\metadata\payments_metadata\meta\Core.xml as: Cybersource_CardTransactionType

See comment in the PR: https://github.com/CyberSource/cybersource-plugins-rest-salesforceb2ccommerce/pull/5#discussion_r1575018077