OPay Error Codes

When a payment fails, it can be useful to retrieve the error code returned by the customer’s bank, the payment network or the payment processor. Such error codes can be used to determine the potential cause of the failure, and give valuable insights to your customer success teams.

(in test mode only) If you want to trigger a specific error when integrating with OPay , simply enter a desired error code as the transaction amount.

introduction

OPay uses HTTP response status codes to indicate the success or failure of your requests. If your request fails, OPay returns an error using the appropriate status code. In this page, you will find a complete list of all potential error codes with an explanation of the specific reason of error occurred.

Error codes are normalized by OPay to provide a convenient and general error mapping. OPay aims to return all the available information, while acquirer banks sometimes simply return generic error codes instead of detailed error information.

Note that this page does not reflect all possible error codes returned by OPay API or SDKs: new codes are added on a daily basis and depend on banking partners and issuing banks. It is highly recommended to handle cases where the returned error code isn’t known by your application as payment declines.

Codes are splitted in two distinct categories: OPay Error Codes and Acquirer Bank Error Codes. OPay Error Codes, represent possible errors that are returned by OPay APIs and/or SDKs, while Acquirer Bank Error Codes represent transaction possible errors returned by processing bank.

OPay Error Codes

Represent possible errors that are returned by OPay APIs and/or SDKs

error codeERROR DESCRIPTION
09time out
90system failure
91refund error, please try again later
96search order error, please try again later
97create checkout session failed
98Invalid request header with requestId
99request channel parameters are not valid

Acquirer Bank Error Codes

Possible transaction errors returned by acquirer bank

error codeERROR DESCRIPTION
05Do not honour
13Invalid Amount
51Insufficient funds
54Expired card
57Transaction not permitted to cardholder
62Restricted card

Keep Customers Informed

As you can see, there are different reasons for failed transactions. However, you should know what is the meaning of them to explain it accurately to your customers. When customers notice the problem with their card payments they act differently, so some of them try a different payment method, while others contact you directly. Note that there are also customers that drop their purchase or select a different online store (24 percent of online customers).