Testing
Use test transaction references to see every error state of the checkout.
Test references let you see how your checkout behaves when a payment cannot be verified, without moving any money. They work like Stripe's test cards: you type a known value and get a known outcome.
Test references only work in test sessions and in the checkout preview of the checkout editor. In a live session they are treated like any other text and sent to the bank for verification.
Try a test reference
- Open your checkout in test mode, or the checkout preview in the editor.
- Pick a bank and go to the last step, where the customer uploads the receipt.
- Choose Enter the transaction reference instead under the upload and type one of the references below.
- Press Submit for Verification. The checkout shows the matching error, or the success screen.
References ignore capital letters and spaces around them, so test_wrong_amount works too. The same reference gives the same outcome for every bank.
Test references
| Reference | Outcome | HTTP status | Error code |
|---|---|---|---|
TEST_SUCCESS | Payment verified | 200 | none |
TEST_WRONG_AMOUNT | Amount does not match the order | 400 | verification_failed |
TEST_WRONG_RECIPIENT | Money went to a different account | 400 | verification_failed |
TEST_MULTIPLE_MISMATCHES | More than one detail does not match | 400 | verification_failed |
TEST_INCOMPLETE | The payment is not completed at the bank | 400 | verification_failed |
TEST_DUPLICATE | The reference was already used | 400 | duplicate |
TEST_REF_NOT_FOUND | The reference was not found at the bank | 422 | tx_ref_not_found |
TEST_UNREADABLE | Details could not be read from the receipt | 422 | extraction_failed |
TEST_BANK_DOWN | The bank could not be reached | 502 | bank_fetch_failed |
TEST_SERVER_ERROR | Something failed on our side | 500 | internal_error |
Any other text, or a receipt image on its own, counts as a successful payment in a test session.
Messages
Each reference shows this message to the customer.
| Reference | Message |
|---|---|
TEST_WRONG_AMOUNT | The payment amount does not match the expected value. expected ETB 900.00, but received ETB 450.00. |
TEST_WRONG_RECIPIENT | The recipient name or account does not match the expected merchant account. |
TEST_MULTIPLE_MISMATCHES | Multiple mismatches were detected in the payment details. |
TEST_INCOMPLETE | The transaction status could not be verified and appears incomplete. |
TEST_DUPLICATE | This payment receipt has already been processed. you need to pay again, and submit a different receipt. |
TEST_REF_NOT_FOUND | The receipt reference could not be found in the provided details. Please verify the reference and try again. |
TEST_UNREADABLE | The receipt could not be read. Please confirm the receipt is clear and try again. |
TEST_BANK_DOWN | The bank service is temporarily unavailable. Please try again in a moment. |
TEST_SERVER_ERROR | An unexpected error occurred while verifying the payment. Please try again later. |
Test the receipt upload
In a test session the upload is simulated and nothing is stored. To see the upload error and its Retry button, choose an image whose file name contains fail, for example fail-receipt.png.
Limits
- Session states such as expired or already paid are not part of the test references.
- Test references skip the bank, so they do not check that a real reference has the right format.
How is this guide?