Before you take real money: a Stripe payments checklist
The checks that make sure customers are charged correctly, get what they paid for, and lose access when they stop paying.
Payment bugs are some of the most expensive bugs an early product can have. They either cost you revenue or upset the customers who are paying you. This checklist covers the Stripe setups we see most often in apps built with AI tools.
Do every test in Stripe's test mode first. It works like the real thing but no real money moves.
Setup
Test keys are used in development and on preview sites. Live keys are used only on your production site.
Your secret key (
sk_live_...) is stored on the server only, never in frontend code.Your products and prices in Stripe match what your pricing page says, including currency and billing period.
Your business details, statement descriptor and support email are filled in, so customers recognize the charge.
Confirming payment
Access is granted by your server after Stripe sends a webhook, not when the customer reaches the success page.
Your webhook checks Stripe's signature using the endpoint's signing secret (
whsec_...).A live-mode webhook endpoint is set up in the Stripe dashboard for your production URL.
Your app handles the same event arriving twice without crediting the customer twice.
Quick test: as a free user, open the success page URL directly without paying. Nothing should change.
Subscriptions
Cancelling a subscription removes access at the right time, either immediately or at the end of the period, as you intend.
A failed renewal is handled. Decide whether access stops straight away or after a grace period, and make the app do that.
Upgrades and downgrades change the plan in your app as well as in Stripe.
Customers can manage or cancel their plan themselves, for example through Stripe's customer portal.
Test cards to try
Stripe provides test card numbers for different situations. At minimum, try:
A successful payment (Stripe's standard test card is
4242 4242 4242 4242).A declined card.
A card that requires extra authentication (3D Secure), which is common in Europe and the UK.
Stripe's documentation lists all of the test cards and what each one does.
Money and records
Taxes are handled the way your accountant expects, whether through Stripe Tax or another approach.
Refunds issued in Stripe are reflected in your app if they should remove access.
You can match a customer in your app to their customer record in Stripe.
Someone checks, at least monthly, that the number of paying users in your app matches Stripe.
Before switching to live mode
You have run a full purchase, renewal and cancellation in test mode.
You have tested the live flow once with a real card and refunded it.
You know where to look when a customer says "I paid but cannot access it."
If you want someone to test your whole payment flow, including the edge cases above, it is a core part of every Ninja Audit. Book an Audit before your first real customer pays.
Keep reading
Oct 13, 2026
Supabase security checklist for non-developers
A plain-language walk through the Supabase dashboard, covering the settings that keep your users' data private.
SecurityOct 6, 2026
The pre-launch checklist for AI-built apps
Twenty-five checks to run before real users and real money touch your app, grouped by what they protect.
LaunchSep 29, 2026
How to hand your app to a developer without losing a week
What to gather before an audit or a freelancer starts, so they can begin on day one and you only pay for real work.
Working with developers
One useful fix a month.
Field Notes in your inbox. No spam, unsubscribe anytime.