Set up Stripe, step by step
Nine short steps from your first check to a live checkout. Do them in order and tick each one off. Your keys stay on your machine.
Step 1 of 9
We don't store your progress on our servers. It stays in this browser.
For Claude Code, Cursor, Windsurf or Codex. The text holds no keys. Your assistant runs the Merqli tools, and you type keys in your own terminal.
Check your fit and your site
Start with Match & Ready. Answer a few questions, then paste your site address. Merqli checks your site against Stripe's review before you apply. These are the checks Stripe requires:
- Product is clearly described
- Way to contact you
- Refund and cancellation policy
- Privacy policy page
- Served over HTTPS
merqli check https://<your-site>What you'll see
A list with one line per check. Ready lines are done. Every other line comes with the exact fix.
From Stripe's own pages: The provider's review rules
Stuck?
- The scan can't open your site. Take down a login wall or a bot challenge for a moment, then scan again.
- Scan the public address, not localhost. The people who review your site see what everyone else sees.
Prepare your project offline
You can do this before you have any account.
merqli initadds a webhook route for your framework, an.env.exampleand aCOMPLIANCE.mdto your project.merqli simulatethen sends signed fake events to that route and checks the answers.merqli initmerqli simulateWhat you'll see
Merqli lists the files it added. After `merqli simulate` you see one line per event, and whether your route answered correctly.
Stuck?
merqli simulateneeds your app running. Start it, then run the command again.- If Merqli picks the wrong framework, run
merqli init --framework <name>: fastapi, flask, django or asgi.
Create your account
Stripe has no sign-up link we can verify. Open its docs and follow the sign-up steps there.
What you'll see
Nothing from Merqli yet. This step happens on the provider's site, and we don't show or imitate its screens.
From Stripe's own pages: The provider's docs
Stuck?
- Can't find the dashboard? Open the docs link above and follow its sign-up steps.
- Use your own legal name and details. The provider compares them with your bank account and ID later.
Create a safe test key
In test mode, create a restricted key with only the permissions below. Merqli refuses an unrestricted key unless you allow it on purpose, because a leak of one does far more harm.
Give the key only these permissions:
checkout_sessions: writeprices: writeproducts: writewebhook_endpoints: write
A test key starts with
rk_test_ or sk_test_From the provider's docs (in English): Stripe's dashboard accepts a pre-filled restricted-key link (https://dashboard.stripe.com/apikeys/create?name=...&permissions[0]=...). Stripe does not document it; it was reported working by third parties. Treat as best effort and always link the plain keys page as fallback.
What you'll see
Nothing from Merqli yet. You paste the key into your own terminal in the next step, never into a web page or a chat.
From Stripe's own pages: Where to create a key
Stuck?
- A live key in test mode, or the other way round, is the most common failure. Check the key's mode before you paste it.
- Keep the key in your own
.env, and out of git and chat.
Connect Stripe
Run
merqli connect stripe. Merqli prints the plan and where to click, and you do those steps in the dashboard. It checks the result when you are done. Your key and secret stay on your machine.Who does what when you connect Create a test key You do this about 3 min Create your product and price You do this about 2 min Register the webhook You do this about 3 min Save the signing secret You do this about 1 min Send a test event You do this about 1 min Receive and verify the test event Merqli does this about 1 min From the provider's docs (in English): CLI `stripe trigger <event>` makes real test-mode API calls; a test checkout also fires events.
merqli connect stripeWhat you'll see
Plan for Stripe (test) - Create a test key: You do this, about 3 min - Create your product and price: You do this, about 2 min - Register the webhook: You do this, about 3 min - Save the signing secret: You do this, about 1 min - Send a test event: You do this, about 1 min - Receive and verify the test event: Merqli does this, about 1 min
From Stripe's own pages: The provider's docs
Stuck?
- The webhook address must be public https. localhost does not work. For a quick test, run a tunnel such as cloudflared.
- A quick tunnel gets a new address every time it restarts.
merqli doctornotices, andmerqli connect --update-urlfixes it.
Make a test purchase
Run
merqli test-purchase stripe. Merqli opens a sandbox checkout, you pay with one of these test cards, and Merqli waits for the signed event.Test cards, from the provider's docs 4242 4242 4242 4242success (Stripe test cards page) merqli test-purchase stripeWhat you'll see
Sandbox checkout created Test event received and verified (order.paid)
Stuck?
- No event after two minutes? Check that the webhook is on in the dashboard and that its address is the current one.
- A signature error usually means the signing secret is from the other mode, or from another webhook.
- A quick tunnel gets a new address every time it restarts.
merqli doctornotices, andmerqli connect --update-urlfixes it.
Get approved
Stripe reviews your business and your site before you can take live payments. The decision is theirs, not ours, and it does not publish a review time we can verify. Run
merqli checkon your live site first.- Product is clearly described
- Way to contact you
- Refund and cancellation policy
- Privacy policy page
- Served over HTTPS
Review time: The provider does not publish one we can verify.
What you'll see
Nothing from Merqli. You hear back from the provider by email or in its dashboard.
From Stripe's own pages: The provider's review rules
Stuck?
- If the provider says no, it tells you why. Fix that, check your site again with
merqli check, and reapply. - Run
merqli checkon your live address right before you apply.
Go live
These steps are not confirmed by Stripe's docs, so check its go-live page before you do them. Then run
merqli golive stripe.- Activate the account (business details, bank account)
- Create live restricted key
- Merqli can create the live webhook endpoint
These steps come straight from the provider's rules and are in English.
Merqli cannot create live objects for this provider yet. Follow the checklist above, then run merqli doctor.
merqli golive stripeWhat you'll see
Before going live with Stripe [ ] 1. Activate the account (business details, bank account) [ ] 2. Create live restricted key [ ] 3. Merqli can create the live webhook endpoint Still yours to do: bank account and payouts, domain or site approval, and the provider's own review.
From Stripe's own pages: The provider's docs
Stuck?
- Live mode has its own key and its own webhook. Your test ones stay in test mode.
- A quick tunnel gets a new address every time it restarts.
merqli doctornotices, andmerqli connect --update-urlfixes it.
Keep it healthy
Run
merqli doctor stripeany time. It re-checks everything without changing anything, and exits with an error when something is red. Add--badgeto write a small SVG you can show in your README.merqli doctor stripemerqli doctor stripe --badge billing-health.svgWhat you'll see
Billing health for Stripe (test) ✓ API key is set ✓ API key works ✓ Key matches the mode ✓ Product and price exist ✓ Webhook exists, is on, and listens to the events we need ✓ Webhook address is public https ✓ Webhook address answers, and refuses unsigned requests
Stuck?
- A quick tunnel gets a new address every time it restarts.
merqli doctornotices, andmerqli connect --update-urlfixes it. - Each red line comes with a fix. Do the first one, then run
merqli doctoragain.
- A quick tunnel gets a new address every time it restarts.