Skip to content

PesepayErrorType

Broad category. Determines how a merchant should react, not what went wrong.

export type PesepayErrorType =
/** The card itself was refused, or cannot be used. Show the customer. */
"card_error"
/** Decided locally, before any request. The customer can fix it by typing. */
| "validation_error"
/** The merchant's integration is wrong. Show a developer, not a customer. */
| "invalid_request_error"
/** Pesepay failed. Retrying may work. */
| "api_error"
/** The request never completed. Retrying may work. */
| "network_error"
/** Pesepay asked the SDK to slow down. Wait before retrying. */
| "rate_limit_error"
/** The publishable key or transaction credential was rejected. */
| "authentication_error";