Advertisement

Cybersource Test Card Numbers

Sandbox card numbers from the Cybersource testing guide, with the CVV for each Visa test card, and the request values that trigger authorizations, declines and invalid-request errors.

Advertisement

Sandbox test card numbers

Accepted in the sandbox. Maestro numbers run from 14 to 19 digits and UATP is the airline payment card, so these are good for checking that your form doesn’t assume 16 digits.

BrandNumberResultCVV / notesCopy
Visa4111 1111 1111 1111Valid test card
Visa4622 9431 2701 3705Valid test cardCVV 838
Visa4622 9431 2701 3713Valid test cardCVV 043
Visa4622 9431 2701 3721Valid test cardCVV 258
Visa4622 9431 2701 3739Valid test cardCVV 942
Visa4622 9431 2701 3747Valid test cardCVV 370
Mastercard (2-series)2222 4200 0000 1113Valid test card
Mastercard (2-series)2222 6300 0000 1125Valid test card
Mastercard5555 5555 5555 4444Valid test card
American Express3782 822463 10005Valid test card
Discover6011 1111 1111 1117Valid test card
JCB3566 1111 1111 1113Valid test card
Maestro (International)5033 961989 0917Valid test card14 digits
Maestro (International)5868 2416 0825 5333 38Valid test card18 digits
Maestro (UK Domestic)6759 4111 0000 0008Valid test card
Maestro (UK Domestic)6759 5600 4500 5727 054Valid test card19 digits
Maestro (UK Domestic)5641 8211 1116 6669Valid test card
UATP1354 123456 78911Valid test cardairline card, 15 digits

Source: Cybersource Developer Center – Testing guide · checked October 2026. Sandbox only — these numbers never work for real payments.

Advertisement

How Cybersource test cards work

Cybersource (a Visa company) runs a separate sandbox that simulates the live gateway. Sandbox transactions are never sent to banks, and the sandbox needs its own credentials: production credentials used against the sandbox — or the other way round — return HTTP 401. REST API test requests go to apitest.cybersource.com.

If no expiry date is given, use any date after today. If a card verification code is required, use any three digits for Visa, Mastercard, Discover, Diners Club and JCB and any four digits for American Express — except for the five Visa cards that come with their own CVV in the table.

In the REST API sandbox the request decides most results. An amount of 1 is authorized, a negative amount is rejected as invalid data, and malformed card fields (month 13, year 1998, a number that fails the Luhn check) come back as DECLINE or INVALID_REQUEST. For specific decline reasons and AVS or CVV results, pick your processor — Chase Paymentech, Barclays, Visa Platform Connect and others — at the top of the testing guide to see its trigger amounts.

Request values that trigger responses

The REST API sandbox decides most results from the request itself. These triggers come from the common payment responses table:

Field and valueStatusReason
totalAmount = 1AUTHORIZED–
totalAmount = -1INVALID_REQUESTINVALID_DATA (invalid amount)
totalAmount = 100000000000INVALID_REQUESTINVALID_DATA (amount too large)
card.number = 42423482938483873DECLINEINVALID_DATA
card.expirationMonth = 13INVALID_REQUESTINVALID_DATA
card.expirationYear = 1998DECLINEINVALID_DATA
card.number = 4111111111111112 (fails Luhn)DECLINEINVALID_DATA
A 21-digit card numberDECLINEINVALID_DATA

Field names are shortened: totalAmount is orderInformation.amountDetails.totalAmount and card.* is paymentInformation.card.*. The testing guide also has processor-specific trigger amounts for more than 20 processors (Chase Paymentech, Barclays, FDC, Visa Platform Connect and others).

Advertisement

Testing Cybersource payments step by step

  1. Create a sandbox account and generate API keys for it (never reuse production keys).
  2. Send a payment with 4111 1111 1111 1111 and totalAmount 1 and check for an AUTHORIZED response.
  3. Send the trigger values from the table to cover INVALID_REQUEST and DECLINE handling in your code.
  4. Open the testing guide for your processor and use its trigger amounts for specific decline reasons and AVS/CVV results.
  5. Look up each test transaction in the Merchant Portal to read its reason code.

Common errors and fixes

HTTP 401 in the sandbox
Production credentials were used against the sandbox. Create separate sandbox keys.
Every decline looks the same
The common responses only cover basic cases. Use your processor’s trigger amounts from the testing guide.
Card rejected as INVALID_DATA
Check that the number passes the Luhn check and has at most 19 digits; the sandbox declines Luhn failures and 21-digit numbers.

Sources

Every number on this page was copied from Cybersource’s official documentation and passes the Luhn check. Checked October 2026; gateways change their test data from time to time, so if a number stops working, check the source:

Test cards only work in Cybersource’s sandbox or test mode. To test your own form validation before a request reaches the gateway, use our card number generator and validator. Never use real customer cards in test environments.

Frequently asked questions

What is the Cybersource test card number?

4111 1111 1111 1111 (Visa) with any future expiry date and any three-digit CVV. For Mastercard use 5555 5555 5555 4444; for American Express 3782 822463 10005.

How do I trigger a decline in the Cybersource sandbox?

Send invalid card data — for example expiry year 1998 or a number that fails the Luhn check — or use the trigger amounts for your processor from the testing guide.

Does Cybersource have Maestro test cards?

Yes. International Maestro 5033 9619 8909 17 (14 digits) and UK domestic Maestro 6759 4111 0000 0008, among others.

Can I use these test cards on another gateway?

Usually not. Each gateway only recognises its own documented test numbers in its own sandbox. Some numbers, such as 4111 1111 1111 1111, appear in several lists, but the results they trigger differ. For format-only testing on your own forms, use our card generator.

Related tools

Advertisement