Advertisement

Shopify Test Card Numbers

Card numbers for placing test orders with Shopify Payments in test mode, the numbers that simulate declines and chargebacks, and how the Test payment gateway (the old Bogus Gateway) works.

Advertisement

Successful payments (Shopify Payments test mode)

All succeed. Use them to check that your theme, checkout extensions and order notifications handle every brand you accept, including 14-digit Diners Club numbers.

BrandNumberResultCopy
Visa4242 4242 4242 4242Succeeds
Mastercard5555 5555 5555 4444Succeeds
American Express3782 822463 10005Succeeds
Discover6011 1111 1111 1117Succeeds
Diners Club3056 930902 5904Succeeds
JCB3566 0020 2036 0505Succeeds
BCcard and DinaCard6555 9000 0060 4105Succeeds
UnionPay6200 0000 0000 0005Succeeds
Cartes Bancaires/Visa4000 0025 0000 1001Succeeds
Cartes Bancaires/Mastercard5555 5525 0000 1001Succeeds
eftpos Australia/Visa4000 0503 6000 0001Succeeds
eftpos Australia/Mastercard5555 0503 6000 0080Succeeds

Source: Shopify Help Center – Shopify Payments test mode and Test payment gateway, Shopify Help Center – Placing a test order · checked October 2026. Sandbox only — these numbers never work for real payments.

Advertisement

How Shopify test cards work

Shopify gives you two ways to place a test order without being charged. If your store uses Shopify Payments, turn on test mode under Settings › Payments › Shopify Payments › Manage and pay with the card numbers below. If you use a third-party provider, or haven’t finished setting up Shopify Payments, activate the Test payment gateway instead. Both need a paid plan, and test orders don’t show up in payouts or reports.

In Shopify Payments test mode, enter a name with at least two words, any future expiry date and any three-digit security code (four digits for American Express). Shopify Payments is built on Stripe, and these numbers are the same as Stripe’s test cards, so they will look familiar if you also integrate Stripe directly.

While any payment provider is in test mode, real customers can’t place card orders. Test mode doesn’t cover Shopify POS card readers, Shop Pay Installments or the PayPal wallet, and some local methods such as iDEAL | Wero aren’t available in it. Turn test mode off as soon as you have finished, and never leave it on in a store that is taking orders.

Failed payments (Shopify Payments test mode)

Each card fails with the error shown. 4000 0000 0000 0259 is accepted and then disputed, so you can see how a chargeback appears in the admin.

BrandNumberResultCopy
Visa4000 0000 0000 0002Card declined
Visa4000 0000 0000 9995Declined – insufficient funds
Visa4000 0000 0000 9987Declined – lost card
Visa4000 0000 0000 9979Declined – stolen card
Visa4000 0000 0000 0069Declined – expired card
Visa4000 0000 0000 0127Declined – incorrect CVC
Visa4000 0000 0000 0119Processing error
Visa4000 0000 0000 0259Disputed transaction (chargeback)
Advertisement

Shopify’s Test payment gateway (formerly the Bogus Gateway)

If you don’t use Shopify Payments, activate the Test payment gateway instead. Enter Test payment gateway as the name on the card, any 3-digit CVV (for example 111) and any future expiry date, then type a single digit as the card number:

Card numberResult
1Approved transaction
2Declined transaction
3Gateway failure

The order total must be more than the equivalent of 1 USD. The Test payment gateway doesn’t work with Shopify POS or subscription products.

Other error inputs in Shopify Payments test mode

Shopify Payments test mode also reacts to invalid card details, which is useful for checking your checkout’s error messages:

InputResult
Expiry month 13Invalid expiry month
A past year, e.g. 2000Invalid expiry year
Any 2-digit security codeInvalid security code
4242 4242 4242 4241 (fails Luhn)Incorrect card number

Testing Shopify payments step by step

  1. In the Shopify admin, go to Settings › Payments, click Manage under Shopify Payments, select Enable test mode and save.
  2. Open your storefront, add a product to the cart and pay with 4242 4242 4242 4242.
  3. Check the test order in the admin: inventory, shipping rates, taxes and the order confirmation email.
  4. Repeat with the failed-payment cards and check that the checkout shows a clear error message.
  5. Disable test mode when you are done — live card payments are blocked while it is on.

Common errors and fixes

No “Enable test mode” option
Test mode appears only after Shopify Payments setup is complete. Until then, use the Test payment gateway.
Test payment gateway order fails
The total must be more than the equivalent of 1 USD, and the gateway doesn’t support Shopify POS or subscription products.
Customers say their cards are declined
A payment provider is still in test mode. Turn it off: live orders can’t be placed while it is on.

Sources

Every number on this page was copied from Shopify’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 Shopify’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 Shopify test card number?

4242 4242 4242 4242 (Visa) with a two-word name, any future expiry date and any three-digit CVV, in Shopify Payments test mode.

What is the Shopify Bogus Gateway?

The old name of Shopify’s Test payment gateway. Enter Test payment gateway as the name on the card, then 1 as the card number for an approved order, 2 for a decline or 3 for a gateway failure.

Are Shopify test orders charged?

No. Orders placed in test mode or through the Test payment gateway aren’t charged and don’t appear in your payouts or reports.

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