Failure object contains failure codes which indicate why a payment has failed.
Properties
Details provided in the failure object can help you optimize 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.
When a payment fails on Paymend’s side before reaching a provider (for example INVALID_STORE, LIMIT_EXCEEDED or BLOCKED_BY_PAYMEND), failure carries only failureCode, both in the API response and in the PAYMENT_FAILED webhook.