Testing Orders

Safely simulate the buyer experience and confirm your checkout setup before going live.

Testing orders allow you to preview the checkout experience exactly as your buyers will see it. Test orders do not create real transactions or affect reporting in your store. Use them to confirm that your products, discounts, and checkout settings work as expected before going live.

When you run a test order, FastSpring emulates the buyer experience. You can add products, apply coupons, and complete the checkout just like a customer would. Test orders also simulate notifications, fulfillments, and redirects that you have configured.

Important:

The FastSpring Terms of Service prohibit load testing, attempts to breach security, and intentional interference with the FastSpring service.

Open a test checkout

All checkout types follow the same flow once launched. The only difference is how you open them. You can test Web or Popup checkouts directly in the FastSpring app, from your website if you have embedded the popup, or from a product’s details page.

Web checkouts

Web checkouts let you preview the full buyer experience from start to finish. In a test checkout, product details are displayed, including:

  • Name
  • Icon
  • Description
  • Discounts
  • Product offers
  1. In the FastSpring app, go to Checkouts > Web checkouts.
  2. Click Links. The Links modal opens.
  3. Under Homepage or Product Page, click Open to launch the test checkout.
  4. When prompted for payment, use the test cards below.

Tip: To create a test environment, insert .test. into your store URL. For example:
yourstore.test.onfastspring.com

Popup checkouts

Popup checkouts can be previewed directly in the FastSpring app before you add them to your website.

  1. In the FastSpring app, go to Checkouts > Popup checkouts.
  2. Click Preview to launch the popup test checkout.
  3. When prompted for payment, use the test cards below.

Note: The Test button in the popup checkout settings only displays the test card numbers. To preview the actual checkout flow, use Preview.

Your website (embedded popup)

If you have already added the popup checkout to your website, you can place test orders directly on your site. This option helps confirm that your integration is working correctly.

Note: To avoid showing test orders to the public, we recommend copying the checkout and placing test orders on the copy.

  1. In your site’s JavaScript snippet, add .test. to the checkout URL so it points to the test environment.
  2. Open any site link that launches the popup.
  3. When prompted for payment, use the test cards below.
<script
  id="fsc-api"
  src="https://sbl.onfastspring.com/sbl/1.0.5/fastspring-builder.min.js"
  type="text/javascript"
  data-storefront="yourexamplestore.test.onfastspring.com/popup">
</script>

Product configuration page

You can also launch a test Web or Popup checkout directly from a product’s Checkout Links section. This page shows everything you need in one place: test card numbers, expiration date, CVV, and buttons to open the checkout in test mode.

  1. In the FastSpring app, go to the product’s Details page.
  2. Locate the Checkout Links panel. The panel shows:
    • Test card numbers for successful and declined transactions
    • Expiration date format (any future date)
    • CVV
    • Web and Popup checkout options in Test Mode
  3. Select Web checkout or Popup checkout.
  4. Click Open next to the option you want to test.
  5. When the checkout opens, use the test cards shown in the panel or the test cards listed below to complete the order.

Test cards

Use the following test card numbers to simulate different payment outcomes. Enter any future date for the expiration field.

Success cards

Use caseCard numberExpiration
Success4242 4242 4242 4242Any date in future
Success4012 8888 8888 1881Any date in future
Success4012 8888 8888 1782Any date in future

Failure cards

Use caseCard numberExpiration
Invalid CVV4000 0000 0000 0127Any date in future
Risk4100 0000 0000 0019Any date in future
Generic decline4000 0000 0000 0002Any date in future

Place a test order

After you launch a test checkout, the flow is the same across all checkout types.

  1. Add one or more products to the cart. Optionally apply a coupon code.

    Note: Test coupon use does not count against coupon limits.

  2. Select Credit/Debit card at payment.
  3. From the test cards above, copy a card number for the outcome you want to test and enter any future expiration date.
  4. Fill in all other required fields. Use your personal email address to receive the associated customer notifications.
  5. Select Pay to submit the test order.

When you complete the order, FastSpring simulates:

  • Fulfillments
  • Customer notifications
  • Redirecting to a custom page after checkout
See also: Checkout overview | Customer notifications | Product and checkout URLs