You changed your checkout and now you have to test it, but every test seems to need a real card and a real charge. It does not. Payment providers give you a safe way to practise.
Use test mode
Your provider should have a test mode or sandbox. Stripe calls it a sandbox: an isolated test environment where payments are not processed and no money moves. You turn it on with test API keys, used against a test copy of your shop. If you use a different provider, look for the equivalent.
Pay with a test card
Your provider publishes a list of test cards. With Stripe, any valid future expiry date works, and any three-digit security code (four digits for American Express). Never use a real card for this. Stripe's services agreement prohibits testing in live mode with real payment details.
What to try
Run at least three payments:
- A payment that succeeds. Do you land on the thank-you page?
- A declined card. The page should say so in plain words and let the customer try again.
- A card that asks for extra confirmation. Some real customers will see this step. Stripe has test cards for it.
Use a different test card for each scenario. Stripe notes that card-level state from one test can affect later tests with the same card.
Check what happens after
- Did an order record appear in your shop?
- Did the customer get a confirmation? Check how your provider handles emails in test mode instead of assuming. Stripe, for example, does not email every receipt it creates.
- Do your reports count the test orders as real sales? They may, unless you exclude them.
Going live
Before launch, swap the live keys into your settings, then watch the first real orders closely.
Where DebuggAI fits
DebuggAI is optional here. You describe the checkout in plain language, and a browser agent runs it on your test page, using Chrome on your own machine or a cloud browser, and reports pass or fail. It is useful for the repeat runs after every change. You still read the results yourself.
One question
Where are your test keys kept, and who on your team knows how to swap them?
Sources
- Stripe, "Testing": https://docs.stripe.com/testing
- Stripe, "Sandboxes": https://docs.stripe.com/sandboxes
- Stripe, "Receipts": https://docs.stripe.com/receipts
