--- title: Test Shop Pay description: Test cards for simulating successful and failed payments with Shop Pay Wallet. api_name: commerce-components source_url: html: 'https://shopify.dev/docs/api/commerce-components/pay/test-shop-pay' md: 'https://shopify.dev/docs/api/commerce-components/pay/test-shop-pay.md' --- # Test Shop Pay *** ## Overview 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 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. ### Activate 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**. ### Test Shopify Payments with Shop Pay To add a test card to Shop Pay, use a [Shopify Payments test credit card number](#simulate-successful-transactions) 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. *** ## Simulate 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 | *** ## Simulate 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 | *** ## Additional Resources [Shop Pay Wallet API\ \ ](https://shopify.dev/docs/api/commerce-components/pay) [API documentation for Shop Pay Wallet.](https://shopify.dev/docs/api/commerce-components/pay) [Development Journey and Key Considerations\ \ ](https://shopify.dev/docs/api/commerce-components/pay/development-journey) [A guide to assist with the development journey and key considerations for Shop Pay Wallet.](https://shopify.dev/docs/api/commerce-components/pay/development-journey) [UX Guidelines\ \ ](https://shopify.dev/docs/api/commerce-components/pay/design-guidelines) [UX documentation for Shop Pay Wallet.](https://shopify.dev/docs/api/commerce-components/pay/design-guidelines) [Shop Configuration Guide\ \ ](https://shopify.dev/docs/api/commerce-components/pay/shop-configuration) [New shop configuration guide for Shop Pay Wallet.](https://shopify.dev/docs/api/commerce-components/pay/shop-configuration) [Troubleshooting Guide\ \ ](https://shopify.dev/docs/api/commerce-components/pay/troubleshooting-guide) [A guide to assist with troubleshooting Shop Pay Wallet implementations.](https://shopify.dev/docs/api/commerce-components/pay/troubleshooting-guide) [Merchant-Assigned A/B Testing Guide\ \ ](https://shopify.dev/docs/api/commerce-components/pay/merchant-assigned-ab-testing-guide) [A guide to assist with performing A/B testing for Shop Pay Wallet.](https://shopify.dev/docs/api/commerce-components/pay/merchant-assigned-ab-testing-guide) [Shop Pay Installments activation\ \ ](https://help.shopify.com/en/manual/payments/shop-pay-installments/activating-shop-pay-installments) [A guide to activating Shop Pay Installments.](https://help.shopify.com/en/manual/payments/shop-pay-installments/activating-shop-pay-installments) ***