WiPay
Payments APIv1.0.16

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 MM and EXP YY values 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.

CodeBrandCard NumberEXP MMEXP YY3DSScenario
C01YSVisa400000000000271901292.2.0Attempted frictionless authentication, Status=A
C02YS4000000000002503Step-up challenge, Status=Y after successful completion
C03YSMastercard5200000000002151
C04YSVisa4000000000002644Step-up challenge, Status=U, Authentication error
C05YS4000000000002354Enrollment timeout, Enrolled=U, Directory Server Error=402
C06YS4000000000002560Authentication bypassed, Enrolled=B
C07YS4000000000002313Frictionless, Status=U
C08YSMastercard5200000000002268
C09YSVisa4000000000002420Step-up challenge, Status=U
C10YS4000000000002446Enrollment check error, Enrolled=U, Directory Server Error=101
C11YSMastercard5200000000002037
C12YSVisa4000000000002990Authentication unavailable on lookup, Enrolled=U, Directory Server Error=101
C13YSMastercard5200000000002409
C14YSVisa4000000000002370Step-up challenge, Status=N
C15YSMastercard5200000000002235Frictionless, Status=Y
C16YSVisa4000000000002701
C17YSMastercard5200000000002482Attempted frictionless authentication, Status=A
C18YSVisa4000000000002925Frictionless, Status=N
C19YSMastercard5200000000002276
C20YSVisa4000000000002537Frictionless, Status=R, Authentication rejected
C21YSMastercard5200000000002185
C22YS5200000000002326Enrollment unavailable, Enrolled=U, Directory-service error
C23YS5200000000002656Step-up challenge, Status=U, Authentication error
C24YS5200000000002508Authentication bypassed, Enrolled=B
C25YS5200000000002664Step-up challenge, Status=U
C26YS5200000000002490Step-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.

CodeBrandCard NumberEXP MMEXP YY3DSScenario
S01TPVisa4242424242424242Any future dateNoneStandard payment success; no 3DS challenge normally required
S02TP4000000000000002Standard payment decline — card_declined / generic_decline
S03TP4000000000000127Decline — incorrect CVC
S04TP40000000000032202.x.y3DS required; authentication/challenge completed successfully; payment succeeds
S05TP40000000322000003DS frictionless; authentication succeeds without customer challenge
S06TP40000082600031783DS required; authentication succeeds, then payment declined — insufficient_funds
S07TP40000084000012803DS required; 3DS lookup/authentication processing error; payment declined
S08TPMastercard5555555555554444NoneStandard payment success
S09TPAmerican Express378282246310005Standard payment success — 15-digit card number, four-digit CVC/CVV; 3DS not supported for this test card
S10TPDiscover6011111111111117Standard 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.

CodeBrandCard NumberEXP MMEXP YY3DSScenario
P01TZMastercard5100270000000098Any future date2.x.yFrictionless, Status=N, Payment Completion not permitted (response code 12)
P02TZVisa4012000000020121
P03TZMastercard5100270000000023Frictionless, Status=Y
P04TZVisa4012000000020071
P05TZMastercard5100270000000056Challenge, Status=N, Payment Completion not permitted (response code 12)
P06TZVisa4012000000020089Frictionless, Status=A
P07TZ4666666666662222Frictionless, Status=A, ISO Response Code=05, CVV Response=N
P08TZMastercard5100270000000072Frictionless, Status=R
P09TZ5555666666662222Frictionless, Status=U, ISO Response Code=05
P10TZVisa4111111111119999Frictionless, Status=A, ISO Response Code=98
P11TZMastercard51002700000000313DS2 Challenge, Status=Y
P12TZVisa4012000000020006
P13TZMastercard5111111111113333Frictionless, Status=A, ISO Response Code=05
P14TZVisa4012010000020070Frictionless, Fingerprinting, Status=Y
P15TZMastercard5100271000000120
P16TZVisa41111111111100003DS2 Challenge, Status=Y, ISO Response Code=91
P17TZMastercard5111111111110000
P18TZVisa4012010000020088Frictionless, Fingerprinting, Status=A
P19TZ40120100000200053DS2 Challenge, Fingerprinting, Status=Y
P20TZ40120000000200713DS2 Challenge, include ChallengeIndicator=03