Error handling
In case of any error, PaymentContainer emits event: error and a generic error screen is displayed to the user.
For example, if we receive from Volt’s API a different payment status to NEW PAYMENT or APPROVED BY RISK, PaymentContainer emits event: error with the following structure of the payload:
Error
{
code: "INVALID_STATUS",
status: "COMPLETED",
paymentId: "UUID",
message: "Incorrect payment status"
}
*Only code and message will be available for every error, other fields are optional.
- On this page
- Error handling