PayChangu Errors

PayChangu API errors can be grouped into three main categories. The validation errors, PayChangu errors, and provider errors.

They are usually returned in this format with the 400 HTTP status code:

{
  "message": {
    "callback_url": [
      "The callback url field is required."
    ]
  },
  "status": "failed",
  "data": null
}

Provider Errors

Provider errors are returned from the payment provider. Below are some possible provider errors you can expect:

DECLINED

Transaction declined.

TIMED_OUT

Response timed out

EXPIRED_CARD

Transaction declined due to expired card

INSUFFICIENT_FUNDS

Transaction declined due to insufficient funds

AUTHENTICATION_FAILED

3DS authentication failed

NOT_ENROLLED_3D_SECURE

Cardholder is not enrolled in 3D Secure

EXCEEDED_RETRY_LIMIT

Transaction retry limit exceeded

CARD_NOT_ENROLLED

The card is not enrolled for 3DS authentication

AUTHENTICATION_NOT_AVAILABLE

Authentication is not currently available

AUTHENTICATION_ATTEMPTED

Authentication was attempted but the card issuer did not perform the authentication

CARD_DOES_NOT_SUPPORT_3DS

The card does not support 3DS authentication