Adyen / adyen-salesforce-commerce-cloud

Salesforce Commerce Cloud (formerly Demandware)
MIT License
91 stars 76 forks source link

Adyen 3D Secure 2 bug #689

Closed asuciu-gpsw closed 1 year ago

asuciu-gpsw commented 2 years ago

Describe the bug Sometimes, the 3DSecure 2 flow breaks due to a JS error in adyen3ds2.isml template (https://github.com/Adyen/adyen-salesforce-commerce-cloud/blob/main/cartridges/int_adyen_overlay/cartridge/templates/default/threeds2/adyen3ds2.isml). The handleOnAdditionalDetails function tries to set the value of a DOM element (document.getElementById("stateData").value = JSON.stringify(state.data);) which is not loaded yet.

To Reproduce Steps to reproduce the behavior: Try to place an order using 3DS Secure 2 CC (e.g. 3714 4963 5398 431). Sometimes, a white page is displayed due to the above error.

Expected behavior Adyen 3DSecure 2 flow is not interrupted by a JS error.

Screenshots

Screen Shot 2022-08-19 at 1 27 52 PM
maassenbas commented 2 years ago

Hi @asuciu-gpsw , Thanks for reaching out. We will investigate the issue and create an internal ticket for it. We will update you once we have more findings.

Kind regards, Bas Maassen Adyen

amihajlovski commented 1 year ago

HI @asuciu-gpsw,

Looks like this is an old template file which is not in use anymore and will be removed with the next release.

Kind Regards, Aleksandar Mihajlovski Adyen