Skip to main content

Test Shop Pay


This guide provides instructions for testing your Shop Pay Wallet integration using Shopify Payments test mode and test credit cards to simulate payments.


Test mode is a feature of Shopify Payments. While test mode is activated, no real payments are captured.

After you're finished testing, deactivate test mode so that real payments are captured when customers complete checkout.

Anchor to Activate test mode for Shopify PaymentsActivate test mode for Shopify Payments

Before you can test credit card transactions, you need to activate test mode for Shopify Payments.

  1. From your Shopify admin, go to Settings > Payments.
  2. In the Shopify Payments section, click Manage.
  3. In the Test mode section, select Enable test mode.
  4. Click Save.

Anchor to Test Shopify Payments with Shop PayTest Shopify Payments with Shop Pay

To add a test card to Shop Pay, use a Shopify Payments test credit card number and enter test_card at the beginning of the Nickname (optional) field when adding the card in Shop Pay.

The test_card nickname isn't case-sensitive. For example, test_card, Test_Card, and TEST_CARD all simulate a test card when entered as the first or only value in the nickname field.

Cards added this way are processed using Shopify Payments test mode and no real charges are processed. The nickname is saved as entered.

Note

Shop Pay test cards don't work with Shop Pay Installments.


Anchor to Simulate successful transactionsSimulate successful transactions

To simulate a successful payment for a specific card brand, use test cards from the following list.

Card typeTest card numberCVCExpiration date
Visa4242 4242 4242 4242Any 3 digitsAny future date
Mastercard5555 5555 5555 4444Any 3 digitsAny future date
American Express3782 8224 6310 005Any 4 digitsAny future date
Discover6011 1111 1111 1117Any 3 digitsAny future date
Diners Club (14-digit card)3056 930902 5904Any 3 digitsAny future date
JCB3566 0020 2036 0505Any 3 digitsAny future date
BCcard and DinaCard6555 9000 0060 4105Any 3 digitsAny future date
UnionPay6200 0000 0000 0005Any 3 digitsAny future date
Cartes Bancaires/Visa4000 0025 0000 1001Any 3 digitsAny future date
Cartes Bancaires/Mastercard5555 5525 0000 1001Any 3 digitsAny future date
eftpos Australia/Visa4000 0503 6000 0001Any 3 digitsAny future date
eftpos Australia/Mastercard5555 0503 6000 0080Any 3 digitsAny future date

Anchor to Simulate failed transactionsSimulate failed transactions

Use the following test card to simulate a failed transaction.

Failed transaction typeTest card numberCVCExpiration date
Generic card declined4000 0000 0000 0341Any 3 digitsAny future date

Anchor to Additional ResourcesAdditional Resources


Was this page helpful?