CyberSource / cybersource-plugins-salesforceb2ccommerce

Other
8 stars 2 forks source link

The latest flex microform v0.11.0 implementation references variables that don't exist #6

Closed igeorgiev-ewave closed 8 months ago

igeorgiev-ewave commented 1 year ago

When migrating the v23.1.1 of the SFRA CyberSource integration, I get the following error when placing a Credit Card order that uses flex microform v0.11.0:

ERROR PipelineCallServlet|572232515|Sites-SiteUS-Site|CheckoutServices-PlaceOrder|PipelineCall|_0_G3al-eM custom []
Error while executing script 'int_cybersource_sfra/cartridge/controllers/CheckoutServices.js': ReferenceError: "CreditCardForm" is not defined
    at int_cybersource_sfra/cartridge/scripts/facade/CardFacade.js:50 (CCAuthRequest)
    at int_cybersource_sfra/cartridge/scripts/secureacceptance/helper/SecureAcceptanceHelper.js:975 (HookIn3DRequest)
    at int_cybersource_sfra/cartridge/scripts/secureacceptance/helper/SecureAcceptanceHelper.js:1044 (AuthorizeCreditCard)
    at int_cybersource_sfra/cartridge/scripts/hooks/payment/processor/cybersourceCredit.js:287 (anonymous)
    at int_cybersource_sfra/cartridge/scripts/checkout/checkoutHelpers.js:146 (handlePayments)
    at modules/server/route.js:85 (next)

Upon looking at the code I found that the variables CreditCardForm and creditCardForm that are referenced within the CardFacade function are not defined.

Could you please fix this issue and avoid committing changes without testing them?

cybersource-tpi commented 8 months ago

Closing this issue as it is addressed in v23.1.2 release.