Testing Scenarios

You can simulate in TEST mode both the success scenario as well as various error codes that might be returned in LIVE mode. Refer to the list of supported scenarios below for testing.

Testing Scenarios for Create QR Codes

Positive Scenarios

ScenarioCriteriaExpected Result
Successful QR code creationAny number other than 10100-10102A response with “ACTIVE” as the QR code status will be returned immediately

Negative Scenarios

ScenarioCriteriaExpected Result
Payment request failed because this specific payment channel has not been activated through Xendit. Please activate via Xendit dashboard or our customer serviceAmount = 10100API Response Error 403 CHANNEL_NOT_ACTIVATED
The payment channel requested is currently experiencing unexpected issues. The eWallet provider will be notified to resolve this issueAmount = 10101API Response Error 503 CHANNEL_UNAVAILABLE
An unexpected error occured, our team has been notified and will troubleshoot the issueAmount = 10102API Response Error 500 SERVER_ERROR

Testing Scenarios for Refund QR Payment

Positive Scenarios

ScenarioCriteriaExpected Result
Successful refundAny number other than 10300-10305 and 20300-20304A response with “PENDING” as the refund status as well as a refund completion callback will be returned immediately

Negative Scenarios

ScenarioCriteriaExpected Result
Requested refund amount cannot exceed remaining unrefunded amount of the original paymentAmount = 10300API Response Error 400 MAXIMUM_REFUND_AMOUNT_REACHED
Partial refund feature is not available as the method is not supported for this specific issuerAmount = 10301API Response Error 400 PARTIAL_REFUND_NOT_SUPPORTED
Refund feature is not available as the method is not provided by the QR partner or not supported for this specific issuerAmount = 10303API Response Error 400 REFUND_NOT_SUPPORTED
Concurrent full refund requests to a single QR payment transaction is not allowed. Please wait for the pending full refund request to be completed before initiating a new oneAmount = 10304API Response Error 400 REFUND_IN_PROGRESS
Requested refund transaction cannot be processed as the transaction is in “FAILED”, “PENDING”, or “VOIDED” statusAmount = 10305API Response Error 403 INELIGIBLE_TRANSACTION
Transaction has already passed its validity period for the requested operation or the number of refunds requested has exceeded the allowable number of triesAmount = 20300Failure Code via Callback INELIGIBLE_TRANSACTION
Switcher account does not have sufficient balance to perform a refund. Please retry after ensuring there is sufficient balance in the switcher accountAmount = 20301Failure Code via Callback INSUFFICIENT_BALANCE
Refund is temporarily unavailable because of settlement constraints with the QR partner. Please try again laterAmount = 20302Failure Code via Callback REFUND_TEMPORARILY_UNAVAILABLE
Refund could not be processed because the amount returned will cause end user's wallet balance to exceed maximum allowable valueAmount = 20303Failure Code via Callback MAXIMUM_USER_BALANCE_EXCEEDED
There is insufficient balance in your Xendit account to perform a refund. Please top up your Xendit balance with a sufficient amount before retrying the refundAmount = 20304Failure Code via Callback INSUFFICIENT_BALANCE

Last Updated on 2023-05-19