Indietro Guide ai pagamenti

Testing Your Checkout With a Shopify Bogus Credit Card

Learn how to use a Shopify bogus credit card to test your checkout. Simulate successful orders and declines to ensure a flawless customer payment experience.

Introduction

Testing your checkout is the only way to guarantee your customers can actually pay you. Before launching a store or after making significant changes to your payment settings, you must verify that the transaction flow works exactly as intended. Using a Shopify bogus credit card allows you to simulate the entire buying process without spending a single cent of real money.

We developed HidePay to help merchants take this control a step further by allowing them to hide, sort, and rename payment methods based on specific rules (get HidePay for your store). While the native Shopify testing tools ensure the pipes are connected, our app ensures that only the right payment options are shown to the right customers at the right time. This combination of thorough testing and precise payment logic is what separates professional stores from amateur ones.

This guide covers everything you need to know about using the Bogus Gateway and Shopify Payments test mode. You will learn how to simulate successful orders, trigger specific error messages, and ensure your backend automations fire correctly. By the end of this article, you will have a clear roadmap for verifying your store’s financial heartbeat. For a quick overview of why merchants use HidePay, read our introduction to HidePay on the Nextools blog.

Understanding the Shopify Bogus Gateway

The Shopify Bogus Gateway is a built-in tool designed specifically for testing. It functions as a simulated payment provider. When you activate it, you replace your real payment processor with a "fake" one that accepts specific test inputs.

This tool is essential for merchants who are not using Shopify Payments or those who want to test their checkout flow before they have officially chosen a merchant service provider. It allows you to walk through the shipping, tax, and notification steps of an order without any actual credit card processing taking place.

It is important to remember that the Bogus Gateway is a global setting for your store's checkout. While it is active, real customers cannot make purchases. For this reason, most merchants perform these tests on a development store or during a scheduled maintenance window.

How to Activate the Bogus Gateway

To start testing with bogus details, you must first navigate to your payment settings in the Shopify admin. If you currently have a provider active, such as PayPal or a third-party gateway, you will need to temporarily deactivate it to see the Bogus Gateway option.

  1. Navigate to your Settings and select Payments.
  2. If you are using Shopify Payments, you must switch to a third-party provider first to find the Bogus Gateway.
  3. In the "Third-party providers" section, search for "Bogus Gateway."
  4. Select it and click Activate.

Once activated, your checkout will no longer accept real credit cards. Instead, it will look for the specific test credentials that tell the system how to respond.

Using Bogus Card Numbers for Successful Tests

When the Bogus Gateway is active, you do not use standard 16-digit credit card numbers. Instead, Shopify uses a simplified set of inputs to determine the outcome of the transaction. This is the fastest way to verify that your "Thank You" page appears correctly and that your inventory levels update as expected.

To simulate a successful transaction, use the following details at checkout:

  • Cardholder Name: Enter "Bogus Gateway"
  • Credit Card Number: Enter the number 1
  • CVV: Any three-digit number (e.g., 111)
  • Expiry Date: Any date in the future

When you click "Pay Now," Shopify will treat the number "1" as a signal to approve the transaction. You will be redirected to the order confirmation page. This confirms that your checkout can successfully pass data to your order management system.

What to Verify After a Successful Test

A successful test order is about more than just the checkout button. You should use this opportunity to check your entire post-purchase flow.

  • Order Notifications: Did you receive the "New Order" email? Did the customer receive their confirmation?
  • Inventory Tracking: If you sold a product with a stock level of 10, is it now showing 9 in your admin?
  • Fulfillment Logic: If you use a third-party logistics provider (3PL) or a shipping app like HideShip, check if the order data reached their system correctly.
  • App Triggers: If you have apps that trigger based on new orders (like loyalty programs or review requests), ensure they are queued correctly.
Personalizza facilmente Shopify Payments

Nascondi, ordina e rinomina i metodi di pagamento di Shopify usando potenti condizioni. Personalizza il tuo checkout e controlla le opzioni di pagamento con HidePay.

Simulating Failures and Exceptions

Testing for success is only half the battle. A robust checkout must also handle failures gracefully. If a customer’s card is declined, you need to know what message they see and ensure they are given the opportunity to try a different payment method.

The Bogus Gateway allows you to trigger specific failure states using different card numbers:

  • To simulate a failed transaction: Use the number 2 as the credit card number. This will trigger a standard "declined" message, allowing you to see how the checkout UI handles errors.
  • To simulate a provider error: Use the number 3 as the credit card number. This simulates a technical glitch with the gateway itself, which is useful for testing how your store handles "exception" states.

Seeing these errors firsthand allows you to optimize your checkout copy. For example, if you notice that a specific failure message is confusing, you might use our tool to rename certain payment methods — see the HidePay guide to hide, sort, or rename payment methods — or provide clearer instructions to the customer at the moment of friction.

Shopify Payments Test Mode

If you use Shopify Payments as your primary gateway, you do not need to use the Bogus Gateway. Instead, Shopify Payments has its own "Test Mode." This is often preferred because it allows you to use realistic 16-digit card numbers that mimic real Visa, Mastercard, and American Express cards.

Test mode for Shopify Payments is more advanced. It allows you to test specific types of failures, such as "Insufficient Funds" or "Expired Card," which provides a much deeper level of insight into the customer experience.

Activating Test Mode

To enable this, go to your Payments settings and click "Manage" on the Shopify Payments block. Scroll to the bottom to find the "Test Mode" section. Check the box to enable it and save your changes.

While in test mode, you will see a banner at the top of your checkout page. This is a crucial safety feature that reminds you (and potentially any site visitors) that no real money is being moved.

Recommended Test Card Numbers

When using Shopify Payments test mode, you must use specific card numbers to get specific results. Here are the most common ones:

  • Successful Visa: 4242 4242 4242 4242
  • Successful Mastercard: 5555 5555 5555 4444
  • Successful Amex: 3782 8224 6310 005
  • Insufficient Funds (Failure): 4000 0000 0000 9995
  • Card Declined (Failure): 4000 0000 0000 0002
  • Expired Card (Failure): 4000 0000 0000 0069

Using these varied card numbers helps you ensure that your checkout can handle the diverse range of financial situations your customers might face. For a deeper look at checkout testing and payment presentation, see our Nextools blog post introducing HidePay.

Testing Express Checkout Buttons

One common issue merchants face during testing is the behavior of express checkout buttons like Shop Pay, Apple Pay, or Google Pay. Even when your store is in test mode, these buttons can sometimes behave differently because they rely on external browser or device settings.

If a customer uses an express button while you are in test mode, the transaction will still be processed as a test. However, these buttons often bypass the standard checkout steps where you might have custom logic or rules applied.

This is where the app we built becomes particularly useful. We allow you to block express checkout buttons based on specific rules — learn how to hide the Express Checkout with HidePay. For example, if you are testing a B2B flow where you only want customers to pay via bank transfer, you can use our tool to hide the PayPal or Apple Pay buttons for that specific customer segment. This ensures your test results are not skewed by "shortcuts" that real customers might take.

Beyond the Basics: Refining Payment Logic

Once you have confirmed that your checkout accepts a Shopify bogus credit card, the next step is optimizing which payment methods appear. Simply having a "working" checkout is not enough to maximize conversions.

Every payment method has a cost. Some have high transaction fees, others are prone to chargebacks, and some—like Cash on Delivery (COD)—carry high operational risks in certain regions. After you finish your technical testing, you should focus on payment strategy.

Sorting for Conversion

The order in which payment methods appear matters. Research shows that customers are more likely to complete a purchase if their preferred method is at the top of the list. If your testing reveals that your "Credit Card" option is buried under five different digital wallets, you are likely losing money.

Using the tool we provide, you can reorder these options without writing any code. You can move high-converting, low-fee options to the top and push riskier options further down. To learn how to create these rules in the app, read our guide on how to create a payment customization.

Hiding Methods by Geography

During your testing phase, you might realize that certain payment methods are only relevant in specific countries. For example, showing "iDEAL" to a customer in the United States is unnecessary and adds clutter to the checkout.

We recommend setting up rules to hide irrelevant methods based on the customer’s location. This reduces "choice paralysis," where a customer becomes overwhelmed by too many options and abandons the cart. A clean checkout is a high-converting checkout — see how to easily organize payment methods by country or by Shopify Market for step-by-step instructions.

Testing for International Markets

If you sell globally, your testing must go beyond a simple US-based credit card. You need to know how your checkout behaves when a customer from Germany, Brazil, or Japan visits your store.

Different regions have different expectations for checkout. In some markets, installments (Buy Now, Pay Later) are the standard. In others, local bank transfers are preferred over credit cards.

  1. Use a VPN: To truly see what an international customer sees, use a VPN to change your IP address to your target country.
  2. Check Currency Conversion: Verify that the "bogus" transaction reflects the correct localized currency.
  3. Review Localized Names: If you have renamed your payment methods for clarity, ensure the translations are accurate.

HidePay gives you the ability to rename payment methods for specific markets. For instance, you might want to rename "Bank Transfer" to a more recognizable local term in a specific country to build trust during the final step of the purchase. For merchants looking to manage both payment and shipping logic together, read our post introducing the HideSuite bundle (HidePay + HideShip).

Protecting Your Margins During Testing

Testing also reveals where you might be losing money on fees. Every time you process a real transaction to "test" the system (and then refund it), you are often still charged a non-refundable transaction fee by the processor. This is why using a bogus card is the smarter financial choice.

Once your store is live, you can continue to protect your margins by setting rules for when certain payment methods are available.

  • Cart Total Rules: You might want to hide high-fee payment methods for small orders where the margin is already thin.
  • Product-Based Rules: If you sell digital products, you may want to hide payment methods that are frequently associated with digital fraud.
  • Customer Tag Rules: For your "VIP" customers, you might want to offer a wider range of premium payment options that you don't show to first-time visitors.

If you use shipping-based automations or need to align fulfillment with payment choices, consider combining HidePay with HideShip on the Shopify App Store to keep rates, payments, and fulfillment in sync.

How to Handle B2B Test Orders

Business-to-business (B2B) transactions often involve larger sums and different payment terms, such as Net 30 or bank transfers. Testing these requires a slightly different approach than a standard consumer checkout.

To test B2B, you must have customer accounts active and a test company profile created. When you log in as a B2B customer, your checkout may look different based on the price lists or payment terms assigned to that company.

Use the bogus gateway to verify that:

  1. The correct B2B-only payment methods appear.
  2. The tax exemption (if applicable) is calculated correctly.
  3. The order is recorded against the company profile, not just the individual user.

If you find that consumer payment methods like "PayPal" are appearing for your professional B2B clients, you can use our app to hide those retail-focused options specifically for the B2B customer segment.

The Role of Shopify Functions

In the past, many of these checkout customizations required "Shopify Scripts." However, Shopify is phasing out scripts in favor of Shopify Functions. HidePay is built on native Shopify Functions, which means it runs directly within the Shopify infrastructure.

For you, this means two things:

  1. Reliability: Since it’s native, there are no third-party scripts that could break or slow down your checkout.
  2. Compatibility: It works perfectly alongside the Bogus Gateway and Shopify Payments test mode.

When you are testing your checkout with bogus cards, you can rest assured that any rules you have set up in the app will trigger exactly as they will in a live environment. This is the benefit of using "Built for Shopify" certified tools.

Key Takeaways for Checkout Testing

Successful testing is about precision and coverage. Do not just test once and assume everything is perfect.

  • Test multiple outcomes: Always test at least one success, one decline, and one error state.
  • Check the "hidden" details: Look at your inventory, email notifications, and app integrations after every test order.
  • Switch back to live mode: The most common mistake merchants make is leaving the Bogus Gateway or Test Mode active after they finish.
  • Optimize the layout: Use testing as a chance to see if your payment methods are sorted and named in a way that makes sense to a stranger.
Feature Bogus Gateway Shopify Payments Test Mode
Best For Non-Shopify Payments users Shopify Payments users
Card Numbers Simple (1, 2, 3) Realistic (16-digit)
Setup Time Fast Requires account setup
Accuracy High for general flow High for specific card errors

Conclusion

Mastering the use of a Shopify bogus credit card is a fundamental skill for any store owner. It allows you to build a checkout experience that is not only functional but also optimized for the highest possible conversion rate. By combining these native testing tools with the advanced control offered by HidePay, you can ensure that your customers always have a clear, friction-free path to purchase.

Once you have verified that your checkout is technically sound, your next step should be to refine the presentation of your payment options. Take control of your checkout today by installing HidePay — install HidePay from the Shopify App Store — and start creating rules that protect your margins and improve your customer experience. If you want to learn more about analyzing payment method performance, see our HidePay blog for practical tips.

Ready to optimize your checkout? try HidePay on Shopify and start refining your payment strategy today.

FAQ

Why is my checkout saying "Bogus Gateway is not available"?

This usually happens if you haven't deactivated your current payment provider first. Shopify requires you to choose a "Third-party provider" to see the Bogus Gateway option. If Shopify Payments is active, you must click "Switch to a third-party provider" twice to reveal the list where the Bogus Gateway is located.

Do I get charged transaction fees for test orders?

No, you are not charged any fees when using the Bogus Gateway or the Shopify Payments test mode. However, if you place a "real" order using a real credit card and then refund it, your payment processor may keep the original transaction fee. This is why using bogus card details is the recommended method for testing.

Can I test express buttons like PayPal with the Bogus Gateway?

The Bogus Gateway primarily tests the standard credit card input fields. Express buttons like PayPal or Apple Pay use their own external authentication. To test these without spending money, you often need to use "Sandbox" accounts provided by those specific platforms, or hide the express buttons during your card-flow testing using Hide the Express Checkout with HidePay.

Will test orders show up in my sales reports?

No, Shopify automatically excludes test orders and simulated transactions from your payouts and analytics reports. This ensures that your data remains accurate and isn't skewed by your testing process. You can still view these orders in your admin "Orders" list, but they will be clearly marked with a test mode badge.

Inizia a usare HidePay

Nascondi, ordina e ottimizza i metodi di pagamento di Shopify istantaneamente, senza bisogno di codice.