logoAccess

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

  1. Open your checkout in test mode, or the checkout preview in the editor.
  2. Pick a bank and go to the last step, where the customer uploads the receipt.
  3. Choose Enter the transaction reference instead under the upload and type one of the references below.
  4. 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

ReferenceOutcomeHTTP statusError code
TEST_SUCCESSPayment verified200none
TEST_WRONG_AMOUNTAmount does not match the order400verification_failed
TEST_WRONG_RECIPIENTMoney went to a different account400verification_failed
TEST_MULTIPLE_MISMATCHESMore than one detail does not match400verification_failed
TEST_INCOMPLETEThe payment is not completed at the bank400verification_failed
TEST_DUPLICATEThe reference was already used400duplicate
TEST_REF_NOT_FOUNDThe reference was not found at the bank422tx_ref_not_found
TEST_UNREADABLEDetails could not be read from the receipt422extraction_failed
TEST_BANK_DOWNThe bank could not be reached502bank_fetch_failed
TEST_SERVER_ERRORSomething failed on our side500internal_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.

ReferenceMessage
TEST_WRONG_AMOUNTThe payment amount does not match the expected value. expected ETB 900.00, but received ETB 450.00.
TEST_WRONG_RECIPIENTThe recipient name or account does not match the expected merchant account.
TEST_MULTIPLE_MISMATCHESMultiple mismatches were detected in the payment details.
TEST_INCOMPLETEThe transaction status could not be verified and appears incomplete.
TEST_DUPLICATEThis payment receipt has already been processed. you need to pay again, and submit a different receipt.
TEST_REF_NOT_FOUNDThe receipt reference could not be found in the provided details. Please verify the reference and try again.
TEST_UNREADABLEThe receipt could not be read. Please confirm the receipt is clear and try again.
TEST_BANK_DOWNThe bank service is temporarily unavailable. Please try again in a moment.
TEST_SERVER_ERRORAn 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?