Skip to content
Pithmark
Build a website2 min read

How to test Stripe Checkout before taking live payments

Use a Stripe sandbox to test successful and declined payments, confirm orders are fulfilled once and check subscription renewals.

By Pithmark

Connect a preview of your shop or app to a Stripe sandbox and buy a test product using Stripe’s published test card details. Check the result in Stripe and in your own order system. Repeat with a decline, and test a renewal and cancellation if you sell subscriptions.

Set up a test purchase in a sandbox

Choose a sandbox from the Stripe Dashboard account picker. Point your preview app at that sandbox with its test credentials, test price and webhook destination. Use test customer details, and send any order emails to an inbox your team controls.

Start from the product page and follow the same route a customer will take. For example, create a £15 test workshop ticket and book it in the preview site. Check that Checkout shows the expected total and currency before entering Stripe’s published test card details.

Check what happens after payment

Find the successful payment in the sandbox Dashboard and match it to the order in your own app. Confirm that the expected ticket, receipt or account access is delivered. In a separate run, use a declined-card scenario and check that the order remains unpaid and the customer has a way to retry.

If a webhook drives order fulfilment, test a successful payment without relying on the customer returning to your website. Resend the successful event in the sandbox and check that the app does not issue a second ticket, unlock the same purchase twice or create a duplicate order.

Test the next billing cycle for subscriptions

For a recurring plan, check the first invoice, the subscription status in Stripe and access in your app. Use a Stripe Billing simulation for a test subscription to see how the app handles a later renewal and how it behaves when payment fails. Verify that the app follows the retry and access rules you chose.

Run a separate cancellation test. If customers keep access until the end of the paid period, verify both that access stays available until that date and that it ends when the subscription ends.

  • Record the test order or subscription reference, the expected result and the actual result.
  • Check that the success and cancellation links return to the right preview pages.
  • Before release, review the live price, destination and redirect settings separately. Complete your simulated purchases in the sandbox.

Common questions

Can I use a real card to test Stripe Checkout?
Use Stripe’s published test card details in a sandbox. A simulated transaction in the sandbox does not move funds.
Is the Checkout confirmation page enough to mark an order paid?
Use the payment status confirmed by your server. A customer can pay and close the tab before returning, so Stripe recommends webhooks for automated fulfilment.

Sources

Researched with official sources and written with AI assistance.