Test Shop Pay
Anchor to OverviewOverview
This guide provides instructions for testing your Shop Pay Wallet integration using Shopify Payments test mode and test credit cards to simulate payments.
Anchor to Test modeTest mode
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.
- From your Shopify admin, go to Settings > Payments.
- In the Shopify Payments section, click Manage.
- In the Test mode section, select Enable test mode.
- 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.
Shop Pay test cards don't work with Shop Pay Installments.
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 type | Test card number | CVC | Expiration date |
|---|---|---|---|
| Visa | 4242 4242 4242 4242 | Any 3 digits | Any future date |
| Mastercard | 5555 5555 5555 4444 | Any 3 digits | Any future date |
| American Express | 3782 8224 6310 005 | Any 4 digits | Any future date |
| Discover | 6011 1111 1111 1117 | Any 3 digits | Any future date |
| Diners Club (14-digit card) | 3056 930902 5904 | Any 3 digits | Any future date |
| JCB | 3566 0020 2036 0505 | Any 3 digits | Any future date |
| BCcard and DinaCard | 6555 9000 0060 4105 | Any 3 digits | Any future date |
| UnionPay | 6200 0000 0000 0005 | Any 3 digits | Any future date |
| Cartes Bancaires/Visa | 4000 0025 0000 1001 | Any 3 digits | Any future date |
| Cartes Bancaires/Mastercard | 5555 5525 0000 1001 | Any 3 digits | Any future date |
| eftpos Australia/Visa | 4000 0503 6000 0001 | Any 3 digits | Any future date |
| eftpos Australia/Mastercard | 5555 0503 6000 0080 | Any 3 digits | Any future date |
Anchor to Simulate failed transactionsSimulate failed transactions
Use the following test card to simulate a failed transaction.
| Failed transaction type | Test card number | CVC | Expiration date |
|---|---|---|---|
| Generic card declined | 4000 0000 0000 0341 | Any 3 digits | Any future date |