Failure object contains failure codes which indicate why a payment has failed.
Properties
| Field | Type | Description | |
|---|---|---|---|
failureCode | string | Paymend-defined code indicating the reason for failure. | |
providerFailureCode | string | Optional provider-defined code indicating the reason for failure. |
Details provided in the failure object can help you optimise your retrial strategy.
The
failureCode field aggregates provider responses so that you can base your internal logic on a single field.
For card payments, we will pass the ISO-format code in providerFailureCode whenever it is received from our providers.
