Worldpay Test Card Numbers
Official Access Worldpay test card numbers, with the cardholder-name values that trigger authorised, refused and error results.
In the Access Worldpay Payments API Try environment, the cardholder name sets the result, not the card number. Use a test PAN such as 4000 0000 0000 2701 (Visa) or 5200 0000 0000 2235 (Mastercard). Then set the cardholder name to AUTHORISED, REFUSED or ERROR.
Last verified against Worldpay's official documentation on .
Payments API test cards (Try environment)
Pair any of these with a cardholder-name value from the table below.
| Card number | Brand | Result | Copy |
|---|---|---|---|
4000 0000 0000 2701 | Visa | Result set by cardholder name | |
5200 0000 0000 2235 | Mastercard | Result set by cardholder name | |
3400 000000 02708 | American Express | Result set by cardholder name | |
6011 0000 0000 2117 | Discover | Result set by cardholder name Discover / Diners | |
3338 0000 0000 0296 | JCB | Result set by cardholder name | |
4000 0000 0000 4970 | Cartes Bancaires | Result set by cardholder name Cartes Bancaires / Visa | |
8100 0100 0000 0142 | UnionPay | Result set by cardholder name ExpressPay |
Cardholder-name values
Enter one of these as the cardholder name with any test card above.
| Scenario | Value | Effect |
|---|---|---|
| Authorised | AUTHORISED | Authorized (or sentForSettlement with auto settlement) |
| Refused | REFUSED | Payment refused |
| Error | ERROR | Error result |
| Specific refusals | REFUSED4, REFUSED5, REFUSED51 | Specific issuer refusal reasons; full list in the Worldpay docs |
| Any other name | e.g. Bob | Treated as authorized |
Before you use these
- These values are for the Access Worldpay Payments API Try environment. Other Worldpay products publish their own test values.
- Results also depend on account configuration, such as 3-D Secure, FraudSight and auto settlement.
- These numbers are published by Worldpay for sandbox testing. They are not real cards and cannot be used for a real purchase.
How to use Worldpay test cards
- Switch your Worldpay integration to its test or sandbox environment and use test credentials. Live credentials reject these numbers.
- Enter a card number from the tables above. Expiry: Not specified by Worldpay. Security code: Not specified by Worldpay.
- Start with a successful card to confirm the happy path, then work through the decline and error cards so every failure message in your checkout gets exercised.
- Use the trigger values (cardholder-name values) to simulate outcomes that are not tied to a card number.
Worldpay test card FAQ
What are the Worldpay test card numbers?
In the Access Worldpay Payments API Try environment, the cardholder name sets the result, not the card number. Use a test PAN such as 4000 0000 0000 2701 (Visa) or 5200 0000 0000 2235 (Mastercard). Then set the cardholder name to AUTHORISED, REFUSED or ERROR.
Do Worldpay test cards work in production?
No. These numbers are only recognised by the Worldpay test environment and are rejected by the live platform. They are not real cards and cannot be used for a purchase.
How do I test a declined payment with Worldpay?
Worldpay triggers failures through cardholder-name values as well as dedicated card numbers. Both are listed on this page.