Apply error mapping to purchase flows
During purchase, errors are not always meaningful and are easy to understand for the customers. Reasons might be that the backend doesn't send a well-formed mistake or that we don't have control over the error (e.g., when coming from Zuora). E.g., "last_name":\\\\\\\["can't be blank"\\\\\\\]
.
To provide the customers with more meaningful errors, we created a dictionary (i.e. a JavaScript object) that maps unfriendly/system to friendly errors. We also created a Component that handles displaying and encapsulating the mapping mechanism so that it's available to components.
This Issue will add the new ErrorAlert
component to the following components:
Edited by Angelo Gulina