Cybersource Test Card Numbers
Official Cybersource sandbox test card numbers, with the invalid-data cards and amounts that force declines and request errors.
Cybersource's sandbox accepts 4111 1111 1111 1111 (Visa), 5555 5555 5555 4444 (Mastercard) and 3782 822463 10005 (Amex) with any future expiration date. To test a decline, send 4111 1111 1111 1112, which fails the Luhn check and returns DECLINE with INVALID_DATA.
Last verified against Cybersource's official documentation on .
Sandbox test card numbers
Outcomes are driven by the request fields and amounts below, not by the number itself.
| Card number | Brand | Result | Copy |
|---|---|---|---|
4111 1111 1111 1111 | Visa | Sandbox test card | |
4622 9431 2701 3705 | Visa | Sandbox test card CVV 838 | |
5555 5555 5555 4444 | Mastercard | Sandbox test card | |
2222 4200 0000 1113 | Mastercard | Sandbox test card 2-series | |
3782 822463 10005 | American Express | Sandbox test card | |
6011 1111 1111 1117 | Discover | Sandbox test card | |
3566 1111 1111 1113 | JCB | Sandbox test card | |
1354 123456 78911 | UATP | Sandbox test card |
Invalid-data cards
| Card number | Brand | Result | Copy |
|---|---|---|---|
4111 1111 1111 1112 | Visa | Fails Luhn check DECLINE / INVALID_DATA | |
4242 3482 9384 8387 3 | Visa | Invalid card number DECLINE / INVALID_DATA |
Amount triggers
Set as orderInformation.amountDetails.totalAmount.
| Scenario | Value | Effect |
|---|---|---|
| Authorised | 1 | AUTHORIZED (HTTP 201) |
| Invalid amount | -1 | INVALID_REQUEST / INVALID_DATA |
| Amount too large | 100000000000 | INVALID_REQUEST / INVALID_DATA |
Field triggers
| Scenario | Value | Effect |
|---|---|---|
| Expiration month | 13 | INVALID_REQUEST / INVALID_DATA |
| Expiration year | 1998 | DECLINE / INVALID_DATA |
Before you use these
- These numbers work only in the Cybersource sandbox.
- Unified Checkout, Click to Pay, Token Management and 3-D Secure each have their own test card lists in the Cybersource docs.
- These numbers are published by Cybersource for sandbox testing. They are not real cards and cannot be used for a real purchase.
How to use Cybersource test cards
- Switch your Cybersource 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: Any future date. Security code: Any 3 digits (4 for Amex).
- 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 (amount triggers, field triggers) to simulate outcomes that are not tied to a card number.
Cybersource test card FAQ
What are the Cybersource test card numbers?
Cybersource's sandbox accepts 4111 1111 1111 1111 (Visa), 5555 5555 5555 4444 (Mastercard) and 3782 822463 10005 (Amex) with any future expiration date. To test a decline, send 4111 1111 1111 1112, which fails the Luhn check and returns DECLINE with INVALID_DATA.
Do Cybersource test cards work in production?
No. These numbers are only recognised by the Cybersource 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 Cybersource?
Cybersource triggers failures through amount triggers as well as dedicated card numbers. Both are listed on this page.