3DS2 Component errors are not rendered

Created on 14 August 2023, about 1 year ago

Problem/Motivation

If an error occurs with the braintree 3ds2 component on the review page, the exception is caught and themed using the function commerceBraintreeError.

This theming function, though, is implemented in the commerce_braintree.js file, which is not included on the review page.

Steps to reproduce

1. Perform a checkout using 3ds2 that generates a client error.
2. The simplest way to do this is by using a braintree account that does NOT have 3ds2 enabled, e.g. a USD account.
3. An error should be thrown that indicates 3ds2 is not enabled, but since the theme function is not present, it returns null, so no message is presented to the user.

Proposed resolution

Implement a theme function in the commerce_braintree.review.js

To keep namespace naming conventions (and to allow for different styling on the review page), let's implement it as commerceBraintreeReviewError.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States TomTech

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024