Testing Shopify Payments

Enable test mode

To test the setup and configuration of Shopify Payments:

  1. In the Shopify Payments section, click Edit:

    The Edit button for Shopify Payments
  2. Check Use test mode:

    The Use test mode checkbox
  3. Click Save.

The Shopify Payments section will show a black and yellow striped band, indicating that you've enabled test mode:

The Shopify Payments section when test mode is enabled

Simulate successful transactions

To simulate a successful transaction, use the following information when you are asked for credit card details during checkout:

  • Name on card: Enter at least two words.
  • Expiry date: Enter any date in the future.
  • CVV: Enter any three digits.
  • Card number: Use the following numbers:
Visa 4242424242424242
Mastercard 5555555555554444
American Express 378282246310005
Discover 6011111111111117
Diners Club 30569309025904
JCB 3530111333300000

Simulate failed transactions

If you want to see the credit card error messages that might be displayed to a customer during checkout, then you can use these test credit card numbers to simulate different failed transactions:

  • Use credit card number 4000000000000002 to generate a card declined message.
  • Use credit card number 4242424242424241 to generate an incorrect number message.
  • Use credit card number 4000000000000259 to simulate a disputed transaction.
  • Use an invalid expiry month, for example 13, to generate an invalid expiry month message.
  • Use an expiry year in the past to generate an invalid expiry year message.
  • Use a two-digit CVV number to generate an invalid CVV message.

Want to discuss this page?

Visit the Shopify Community

Ready to start selling online with Shopify?

Try it free