Introduction
Verifying that your checkout can process transactions correctly is a critical step before going live or launching a new marketing campaign. A broken payment gateway leads to lost sales and frustrated customers. By using a shopify test payment gateway, you ensure that your settings for taxes, shipping, and payment processing are accurate without risking real capital.
While testing ensures the technical setup works, managing how these gateways appear to customers is equally important. We built HidePay to give merchants control over this visibility once their gateways are live — you can install HidePay on the Shopify App Store{:target="_blank"} to get started. This guide explains the specific methods for simulating transactions on Shopify and how to transition from a successful test to an optimized, live checkout experience.
We will cover the Bogus Gateway, Shopify Payments test mode, and the steps required to verify your store's readiness. This article is for Shopify merchants who need a reliable way to validate their checkout flow before processing real customer orders. By the end of this guide, you will know exactly how to simulate both successful and failed transactions to protect your store's performance.
The Importance of Testing Your Checkout Flow
Testing your payment gateway is about more than just checking if a credit card works. It is a comprehensive audit of your entire order fulfillment pipeline. When you place a test order, you are also verifying that your shipping rates trigger correctly, your tax calculations are accurate for different regions, and your automated email notifications reach the customer’s inbox.
A single error in your tax settings or a shipping zone oversight can lead to significant financial discrepancies. If your payment gateway isn't properly synced with your inventory management, you might oversell products that are out of stock. Testing provides the confidence that every automated system within your Shopify admin is communicating effectively.
Using the Shopify Bogus Gateway
The Bogus Gateway is a universal tool provided by Shopify to simulate transactions. It is not tied to any specific payment provider, making it an excellent choice for merchants who have not yet decided on a permanent gateway or are in the early stages of store development.
How to Activate the Bogus Gateway
To use the Bogus Gateway, you must first deactivate any active credit card providers.
- Navigate to your Shopify admin and select Settings, then click Payments.
- If you have a provider like Shopify Payments or a third-party gateway active, you must deactivate it. Select Manage and then click Deactivate.
- In the Payment providers section, select Choose a provider or See all other providers.
- Search for "(for testing) Bogus Gateway" and select it.
- Click Activate (for testing) Bogus Gateway and save your changes.
Simulating Transactions with Bogus Gateway
Once active, you can go to your storefront and add items to your cart. Proceed to checkout and use the following details to test different outcomes:
- Name on card: Enter "Bogus Gateway".
- Expiry date: Any date in the future.
- CVV: Any three-digit number (e.g., 111).
- To simulate a successful transaction: Enter 1 in the card number field.
- To simulate a failed transaction: Enter 2 in the card number field.
- To simulate a gateway failure: Enter 3 in the card number field.
Using these simple inputs allows you to see how your store handles "Approved," "Declined," and "Error" states. This is vital for checking if your "Thank You" page displays correctly or if your "Payment Failed" notifications are clear enough for the customer.
Hide, sort, and rename Shopify payment methods using powerful conditions. Customize your checkout and control payment options with HidePay.
Testing with Shopify Payments Test Mode
If you use Shopify Payments as your primary processor, you should use its dedicated test mode rather than the Bogus Gateway. This provides a more accurate representation of the actual customer experience, including the appearance of the credit card entry fields.
Activation Steps for Shopify Payments Test Mode
Test mode for Shopify Payments is only available to stores on a paid plan.
- In your Shopify admin, go to Settings > Payments.
- In the Shopify Payments section, click Manage.
- Scroll down to the Test mode section.
- Check the box for Enable test mode.
- Click Save.
Note that while test mode is active, you cannot use real credit cards to process transactions. It is also important to remember that certain local payment methods, such as iDEAL or Klarna, may be hidden while the gateway is in test mode.
Shopify Payments Test Card Numbers
Shopify provides specific card numbers to simulate various card brands and transaction types. Use a future expiry date and any 3-digit CVV (or 4 digits for American Express).
Successful Transactions:
- Visa: 4242 4242 4242 4242
- Mastercard: 5555 5555 5555 4444
- American Express: 3782 8224 6310 005
- Discover: 6011 1111 1111 1117
Failed Transactions:
- Card Declined: 4000 0000 0000 0002
- Insufficient Funds: 4000 0000 0000 9995
- Expired Card: 4000 0000 0000 0069
- Incorrect CVC: 4000 0000 0000 0127
Simulating failed transactions is particularly useful for merchants who want to ensure their customer service team knows what specific error messages look like. It also helps you verify that your inventory isn't accidentally "held" by a failed payment attempt.
Testing Express Checkouts
Express checkout buttons like Shop Pay, PayPal, and Apple Pay are popular because they reduce friction. However, they can be difficult to test in a standard environment.
While Shopify Payments test mode is active, customers might still see express payment options. Transactions through Apple Pay or Google Pay may appear to complete because they use real card data from the customer’s device, but if test mode is enabled, no real charge is captured. You can verify this by checking for the "Test Mode" banner on the order details page in your admin.
For Shop Pay specifically, you can test transactions by adding a test card to your Shop Pay account. Use a Shopify Payments test card number and set the card's nickname to "test_card". This tells the system to treat the transaction as a simulation.
If you need to block express options entirely for testing or risk management, HidePay can hide express checkout buttons; see the HidePay guide on hiding express checkout buttons for configuration steps.
Moving Beyond Testing to Optimization
Once you have confirmed that your shopify test payment gateway is functioning, the focus shifts to optimization. A common problem for growing stores is having too many payment options at checkout. While variety seems helpful, too many choices can lead to decision paralysis and cart abandonment.
This is where the strategy of payment method management becomes essential. After testing your gateways, you might find that certain methods are better suited for specific scenarios. For instance, you may want to show Cash on Delivery (COD) only to customers in specific zip codes where your local courier operates. Alternatively, you might want to hide high-fee gateways for low-value orders to protect your margins.
By using the app we developed at Nextools, you can create rules that automatically hide, sort, or rename these methods based on the customer’s cart or location; learn how to create a payment customization in HidePay for step-by-step setup. If you’ve tested several gateways and decided to keep them all, sorting the most popular ones to the top ensures a smoother experience for the majority of your buyers.
Testing Third-Party Payment Providers
Not every merchant uses Shopify Payments. If you use a third-party gateway like Braintree, Authorize.net, or a local provider, the testing process varies. Most reputable third-party providers offer their own "Sandbox" or "Test" mode.
To test these:
- Consult the provider’s documentation for their specific test credentials.
- Enable the test mode within the provider’s own dashboard first.
- In Shopify, look for an Enable test mode checkbox within that provider’s settings under Settings > Payments.
If a third-party provider does not offer a native test mode within the Shopify admin, you may have to resort to placing a real transaction and then refunding it.
Testing with Real Transactions
Sometimes, the only way to be 100% sure a gateway is working—especially with complex local payment methods—is to process a real transaction.
If you choose this route:
- Ensure the item price is low (you can temporarily change a product price to $1.00).
- Use a real credit card and complete the purchase.
- Check your payment provider’s dashboard to see if the funds were successfully captured.
- Immediately refund the order from the Shopify admin.
Be aware that most payment processors do not refund the transaction fees when you issue a refund. This method should be used sparingly, primarily as a final verification after you have already used a shopify test payment gateway for initial checks.
Troubleshooting Common Testing Issues
Even with a clear process, merchants often encounter hurdles during testing. Here are the most common issues and how to resolve them.
No Order Confirmation Email Received
If you place a test order but don't receive an email, first check your spam folder. If it isn't there, navigate to Settings > Notifications and check your Order Confirmation template. If you have customized the code, a syntax error might be preventing the email from sending. Reverting to the default template temporarily can help you identify the cause.
Local Payment Methods Missing
As mentioned earlier, local payment methods like Sofort or iDEAL often disappear when test mode is enabled. This is by design. To test these, you usually need to use a real transaction or check if the provider offers a specific simulation environment that integrates with Shopify.
Checkout Errors with Third-Party Providers
If you see a "Gateway Error" or "Unavailable" message, it usually means the credentials (API keys or Merchant IDs) are entered incorrectly. Double-check for extra spaces at the beginning or end of your API keys when pasting them into the Shopify settings.
Express Checkout Buttons Not Behaving as Expected
Express buttons often bypass the initial checkout screens. If you are using rules to hide or sort payments, ensure your rules are compatible with express buttons. HidePay allows you to block express checkout buttons by rule, ensuring that your logic is respected regardless of how the customer chooses to pay.
Key Actions for a Successful Test
To ensure your store is ready for customers, follow this checklist during your testing phase:
- Test multiple scenarios: Don't just test a success. Test a declined card and an expired card to see the error messaging.
- Check different devices: Perform a test on a desktop and a mobile device to ensure the UI remains clean and functional.
- Verify tax and shipping: Look closely at the order summary in your test orders. Ensure the math adds up correctly for different shipping zones.
- Review the post-purchase flow: Check that the inventory level decreased and the order appeared in your admin's "Orders" list.
- Deactivate test mode: This is the most important step. Once you are finished, ensure you toggle test mode off and save your settings so real customers can buy from you.
Optimizing the Checkout Experience with HidePay
Once your payment gateways are verified and live, your focus should turn to conversion rate optimization. The order in which payment methods appear can significantly impact which one a customer chooses. For example, placing credit card options at the top and pushing Buy Now, Pay Later (BNPL) options further down can help manage your transaction fees or chargeback risks.
HidePay uses native Shopify Functions to let you reorganize your checkout without slowing it down, and you can get HidePay for your store{:target="_blank"} to begin optimizing. Because it runs on Shopify's global infrastructure, there are no scripts to break and no impact on your site's performance. You can rename a gateway like "Standard Credit Card" to something more recognizable to your local audience, or hide specific gateways for high-risk orders identified by customer tags.
Managing your checkout flow is a continuous process. As you add new payment methods or expand into new countries, you should revisit your testing protocol and your visibility rules to ensure your checkout remains a high-converting asset.
For merchants who want a combined payments-and-shipping solution, read about the HideSuite bundle that pairs HidePay with HideShip for unified checkout control.
If you’re exploring more advanced checkout logic or migrating legacy scripts, consider Nextools’ codeless Shopify Functions tool to build custom functions quickly.
Conclusion
Testing your payment setup is an essential safeguard for any professional merchant. Whether you use the Bogus Gateway for quick simulations or Shopify Payments test mode for a brand-specific experience, these tools ensure your store is ready to handle real revenue. Always remember to deactivate test mode before your store goes live to avoid missing real sales.
- Use the Bogus Gateway for general checkout flow testing.
- Use Shopify Payments test mode to simulate brand-specific card responses.
- Verify your automated notifications and inventory updates after each test.
- Control the visibility of your live gateways to maximize conversion and protect margins.
Testing ensures the plumbing works, but optimization ensures the store thrives. We invite you to explore how HidePay can help you refine your checkout experience once your gateways are ready for real transactions — try HidePay on Shopify{:target="_blank"} or read our introduction to HidePay on the Nextools blog to learn more.
FAQ
Can I test my payment gateway while my store is on a free trial?
No, Shopify requires you to be on a paid plan to test payment gateways, including both the Bogus Gateway and Shopify Payments test mode. While you can set up your store and gateways during a trial, the actual checkout simulation won't process until a plan is selected and the store is technically "open."
Will I be charged transaction fees for test orders?
No, you are not charged transaction fees for orders placed through the Bogus Gateway or while Shopify Payments is in test mode. However, if you choose to test by placing a real order with a real credit card and then refunding it, your payment processor will typically keep the fixed portion of the transaction fee.
Why don't my test orders show up in my sales reports?
Shopify specifically excludes test orders and simulated transactions from your payouts and analytics reports. This is to ensure that your financial data remains accurate and isn't skewed by non-revenue-generating activity. You can still see these orders in your main "Orders" list, usually marked with a "Test" badge.
Can I test Shop Pay and other express buttons in test mode?
Yes, you can test Shop Pay by using a Shopify Payments test card number and adding the nickname "test_card" to the card in your Shop Pay account. Other express buttons like Apple Pay can be tested while Shopify Payments is in test mode; the system will use real card data to simulate the process but will not capture any actual funds.
Further resources
- HidePay developer guide on creating payment customizations (help docs).
- HidePay tutorial on hiding express checkout buttons (help docs).
- HidePay tutorial showing how to hide payment methods using cart attributes (help docs).
- Read the Nextools blog post introducing HidePay for deeper context.