Special Test Mode Values
In test mode, you may specify some special values to trigger some common scenarios.
Payments
In the test mode for the Payments (and Batch Payments) API, these account numbers for the receiver will trigger a payment failure.
Account Number | Effect (non Batch) | Effect (Batch) |
---|---|---|
000000000 | Failure (immediate) | Failure(this single payment) |
000000001 | Failure (later) | Failure(this single payment) |
000000002 | Success | Failure (entire batch) |
Direct Debit Payments
In the test mode for the Direct Debit Payments API, these customer references will trigger a payment failure.
Customer Reference | Effect |
---|---|
fail | Failure |
Hosted Payments
In the test mode for the Hosted Payments API, these hosted payment method IDs will trigger specific scenarios.
Hosted Payment Method ID | Effect |
---|---|
hpm_TESTMODESUCCEEDED | successful payment |
hpm_TESTMODEFAILED_PAYLAHWALLETDELINKED | failure - customer has unlinked their PayLah! wallet |
hpm_TESTMODEPENDING_INSUFFICIENTFUNDSPENDINGTOPUP | failure - there is insufficient balance in the customer's PayLah! wallet, and they have been prompted to top up. |