Transaction Status and Error Handling


Transaction Status

The status of a transaction represents its current state in the payment process. Below is the list of possible transaction statuses:

StatusDescription
NEWNew transaction, waiting to be processed.
SUCCEEDThe transaction was completed successfully.
PENDINGThe transaction is pending and awaiting processing by the Payment Service Provider (PSP).
FAILEDThe transaction failed.
CUSTOMER_VERIFICATIONCustomer interaction is required (e.g., 3D Secure authentication).
REFUNDEDThe transaction was partially or fully refunded.
CHARGED_BACKThe transaction was charged back by the customer.
PROCESSINGThe transaction is being processed.

Error Handling

When interacting with the API, it’s essential to handle responses appropriately to ensure seamless integration and a smooth user experience. Below are the possible response codes and their meanings:

HTTP Status CodeDescription
200 OKThe transaction request was successful, and the response contains the transaction details.
400 Bad RequestThe request contains invalid or missing parameters. The response will indicate specific issues.
401 UnauthorizedThe request may contain invalid credentials or is missing the Bearer token in the HTTP headers.
403 ForbiddenThe Merchant doesn’t have permissions to access this API resource.
404 Not FoundThe requested entity was not found in the service.