Testing
Test cards, sandbox environment, and testing best practices
WiPay considers testing to be the single most important aspect of any integration. Testing ensures your web-based application behaves consistently and predictably when using the Payments API.
Sandbox Environment
Set environment=sandbox in your API request to use the sandbox.
- Sandbox
account_number:1234567890 - Sandbox API Key for response-hash verification:
123
Important notes:
- Payees and Payors do not receive automated emails
- The test cards on this page are valid only when
environment=sandbox - Sandbox results exercise your integration; they do not move real funds or guarantee live payment approval.
See Platforms and Environments for shared-account reporting, transaction ownership and credential limitations.
Verifying sandbox results
For a successful public-sandbox checkout, verify the returned
response hash
on your server using key 123 and the original request total. Because this
test key is public, it is only suitable for functional testing, not production
payment verification.
Independent WAPI retrieval requires a credential for the transaction-owning
sandbox account: either a wapi_test_... key or a sandbox OAuth bearer token
with wapi-transactions-retrieve or wapi-transactions-all. A Payments API
hash key is not a WAPI credential. See the
account ownership guidance
before testing Retrieve or payment webhooks.
Test Cards
- Use the
EXP MMandEXP YYvalues for the selected scenario - Use a three-digit CVV/CVC, or four digits for American Express
- Any cardholder name will work
- Use a valid amount within the checkout limits and any restrictions of the test scenario. Acceptance of the amount does not guarantee payment approval.
Use the card set for the checkout flow described in each section. These sets are not interchangeable; a card valid for one sandbox checkout may be rejected by another.
Use only test card details in the sandbox, never real customer card details.
Standard Card Payments — TTD
Use these cards to test Payments API hosted checkout when currency is TTD.
The required expiry values below are for testing in 2026. In later years,
keep EXP MM at 01 and use the last two digits of (current year + 3) for
EXP YY.
The scenarios below describe the expected authentication behaviour, not a
guaranteed payment approval. A means authentication was attempted; it is not
automatically a failed-authentication result. Y means authentication
succeeded. Neither result guarantees that the subsequent payment authorisation
will succeed.
For challenge scenarios, follow the instructions displayed by the sandbox authentication screen. Complete the full checkout and check the final payment result rather than treating challenge completion as payment confirmation.
For an initial challenge-flow check, start with C02YS and total=25.00.
Verify the final payment result and, on success, the response hash. Then repeat
testing at your intended transaction amounts; a successful small-value test
does not certify larger amounts.
| Code | Brand | Card Number | EXP MM | EXP YY | 3DS | Scenario |
|---|---|---|---|---|---|---|
C01YS | Visa | 4000000000002719 | 01 | 29 | 2.2.0 | Attempted frictionless authentication, Status=A |
C02YS | 4000000000002503 | Step-up challenge, Status=Y after successful completion | ||||
C03YS | Mastercard | 5200000000002151 | ||||
C04YS | Visa | 4000000000002644 | Step-up challenge, Status=U, Authentication error | |||
C05YS | 4000000000002354 | Enrollment timeout, Enrolled=U, Directory Server Error=402 | ||||
C06YS | 4000000000002560 | Authentication bypassed, Enrolled=B | ||||
C07YS | 4000000000002313 | Frictionless, Status=U | ||||
C08YS | Mastercard | 5200000000002268 | ||||
C09YS | Visa | 4000000000002420 | Step-up challenge, Status=U | |||
C10YS | 4000000000002446 | Enrollment check error, Enrolled=U, Directory Server Error=101 | ||||
C11YS | Mastercard | 5200000000002037 | ||||
C12YS | Visa | 4000000000002990 | Authentication unavailable on lookup, Enrolled=U, Directory Server Error=101 | |||
C13YS | Mastercard | 5200000000002409 | ||||
C14YS | Visa | 4000000000002370 | Step-up challenge, Status=N | |||
C15YS | Mastercard | 5200000000002235 | Frictionless, Status=Y | |||
C16YS | Visa | 4000000000002701 | ||||
C17YS | Mastercard | 5200000000002482 | Attempted frictionless authentication, Status=A | |||
C18YS | Visa | 4000000000002925 | Frictionless, Status=N | |||
C19YS | Mastercard | 5200000000002276 | ||||
C20YS | Visa | 4000000000002537 | Frictionless, Status=R, Authentication rejected | |||
C21YS | Mastercard | 5200000000002185 | ||||
C22YS | 5200000000002326 | Enrollment unavailable, Enrolled=U, Directory-service error | ||||
C23YS | 5200000000002656 | Step-up challenge, Status=U, Authentication error | ||||
C24YS | 5200000000002508 | Authentication bypassed, Enrolled=B | ||||
C25YS | 5200000000002664 | Step-up challenge, Status=U | ||||
C26YS | 5200000000002490 | Step-up challenge, Status=N |
If the actual authentication result differs from the listed scenario, or a successful challenge is followed by a payment error, retain the transaction ID, timestamp and timezone, scenario code, amount, currency, and returned status and message for WiPay support. Do not treat an authentication or processor error alone as evidence that the account needs funding or an upgrade. Do not include full card details, CVV, authentication codes or credentials in a support request.
Standard Card Payments — USD and other currencies
Use these cards to test Payments API hosted checkout when currency is USD or any other supported currency.
Use any future expiry date and any three-digit CVC/CVV, except American Express cards, which require four digits. Brand acceptance depends on the merchant account and processing platform.
None means no 3DS interaction is normally required for that test scenario, not that the card brand cannot support 3DS. Use the dedicated 3DS scenarios to test authentication and challenge handling.
| Code | Brand | Card Number | EXP MM | EXP YY | 3DS | Scenario |
|---|---|---|---|---|---|---|
S01TP | Visa | 4242424242424242 | Any future date | None | Standard payment success; no 3DS challenge normally required | |
S02TP | 4000000000000002 | Standard payment decline — card_declined / generic_decline | ||||
S03TP | 4000000000000127 | Decline — incorrect CVC | ||||
S04TP | 4000000000003220 | 2.x.y | 3DS required; authentication/challenge completed successfully; payment succeeds | |||
S05TP | 4000000032200000 | 3DS frictionless; authentication succeeds without customer challenge | ||||
S06TP | 4000008260003178 | 3DS required; authentication succeeds, then payment declined — insufficient_funds | ||||
S07TP | 4000008400001280 | 3DS required; 3DS lookup/authentication processing error; payment declined | ||||
S08TP | Mastercard | 5555555555554444 | None | Standard payment success | ||
S09TP | American Express | 378282246310005 | Standard payment success — 15-digit card number, four-digit CVC/CVV; 3DS not supported for this test card | |||
S10TP | Discover | 6011111111111117 | Standard payment success | |||
For the required-3DS challenge case, also exercise unsuccessful authentication and cancellation using the sandbox authentication screen.
Trusted Card — TTD
Use these cards to test Create Trusted Card, Verify Trusted Card, and Charge Trusted Card in sandbox when currency is TTD.
Use any future expiry date for these P**TZ scenarios.
| Code | Brand | Card Number | EXP MM | EXP YY | 3DS | Scenario |
|---|---|---|---|---|---|---|
P01TZ | Mastercard | 5100270000000098 | Any future date | 2.x.y | Frictionless, Status=N, Payment Completion not permitted (response code 12) | |
P02TZ | Visa | 4012000000020121 | ||||
P03TZ | Mastercard | 5100270000000023 | Frictionless, Status=Y | |||
P04TZ | Visa | 4012000000020071 | ||||
P05TZ | Mastercard | 5100270000000056 | Challenge, Status=N, Payment Completion not permitted (response code 12) | |||
P06TZ | Visa | 4012000000020089 | Frictionless, Status=A | |||
P07TZ | 4666666666662222 | Frictionless, Status=A, ISO Response Code=05, CVV Response=N | ||||
P08TZ | Mastercard | 5100270000000072 | Frictionless, Status=R | |||
P09TZ | 5555666666662222 | Frictionless, Status=U, ISO Response Code=05 | ||||
P10TZ | Visa | 4111111111119999 | Frictionless, Status=A, ISO Response Code=98 | |||
P11TZ | Mastercard | 5100270000000031 | 3DS2 Challenge, Status=Y | |||
P12TZ | Visa | 4012000000020006 | ||||
P13TZ | Mastercard | 5111111111113333 | Frictionless, Status=A, ISO Response Code=05 | |||
P14TZ | Visa | 4012010000020070 | Frictionless, Fingerprinting, Status=Y | |||
P15TZ | Mastercard | 5100271000000120 | ||||
P16TZ | Visa | 4111111111110000 | 3DS2 Challenge, Status=Y, ISO Response Code=91 | |||
P17TZ | Mastercard | 5111111111110000 | ||||
P18TZ | Visa | 4012010000020088 | Frictionless, Fingerprinting, Status=A | |||
P19TZ | 4012010000020005 | 3DS2 Challenge, Fingerprinting, Status=Y | ||||
P20TZ | 4012000000020071 | 3DS2 Challenge, include ChallengeIndicator=03 | ||||