AnyCreo Free fixes All free fixes

Free guide · Payments

Anyone who types /success gets your course free

If your app unlocks what people bought on the “thanks for paying” page, anyone who types that page’s address gets it without paying. Here’s Stripe’s own free fix, the prompt to paste, and a quick test you can do yourself.

Forty students in the paid course. Nobody paid.

In our reel (a cartoon skit, so the course and the students are made up), a founder sells an online course on a site built with AI. Then they notice 40 people in the paid course, and not one of them paid. Claude, the AI that built the site, knows why right away: “They found the success page.”

The success page is where Stripe sends buyers after they pay: the “thanks for paying” screen. On this site, that page also unlocked the course. So anyone who typed its address, something like yoursite.com/success, got in. No card needed.

Why the AI built it that way

Ask an AI to “add Stripe so people can buy my course” and a quick way to make it work is: send buyers to a thank-you page, and unlock the course when that page opens. You try it, you pay, you’re in. It looks done. But a web page is just an address, and nothing stops a stranger from typing it. As Claude puts it in the reel: “You never asked me how Stripe wants it done.”

It goes wrong the other way too. Stripe’s own instructions point out that “Customers aren’t guaranteed to visit the landing page — for example, someone can pay successfully and then lose their internet connection before the page loads — so any logic that only runs on the success page silently drops orders” (Stripe, payments.md). So strangers get in free, and some people who did pay get nothing.

The whole bug, simplified

What the AI built

// on the "thanks for paying" page (/success) giveCourseTo(whoeverOpensThisPage)

In plain English: “Whoever opens this page gets the course.”

What Stripe’s skill says to do

// when Stripe's own message arrives (signature checked first) if payment_status is not "unpaid": giveCourseTo(buyer)

In plain English: “Give the course only when Stripe itself says this order is paid.”

A simplified example in the style of the reel. Your app’s code will look different. Finding the real lines is your AI’s job, with Stripe’s skill to guide it.

Do you have this bug? A quick test anyone can do

You don’t need to read any code. You only need your success page’s address and a private browser window.

  1. Find your success page’s address

    It’s the page buyers land on after paying, often ending in /success or /thank-you. Copy it from the address bar after a test purchase, or ask your AI:

    What is the success page address in my Stripe checkout, and what does that page do when it opens?
  2. Open a private window, and don’t pay

    If your site has accounts, sign up there with a new test account that has never paid. Use your own email, never a customer’s.

  3. Type the success page’s address and press Enter

    If the address has a ? with a long code after it (like ?session_id=cs_test_…), try it twice: once with everything from the ? removed, and once with the full address copied from an earlier test purchase.

  4. Now try to open what people pay for

    If the course, download or paid page opens, you have the bug. If you see only a thank-you message, an error, or a “please pay” page, this part is fine.

The fix: Stripe’s own free skill

Stripe, the payments company, publishes a free skill called stripe-best-practices in its stripe/ai repository on GitHub. A skill is a set of written instructions that your coding agent (an AI that writes and runs code on your computer, like Claude Code) reads and follows. Stripe says its skills “help your agents use the latest best practices when building with Stripe”.

Made by
Stripe
Licence
MIT Free to use, change and share
Price
Free Running it uses your AI plan
GitHub stars
About 2,000 Whole stripe/ai repo, checked November 3, 2026

The rule that fixes the reel

Here it is, word for word from the skill:

“Fulfillment belongs in a handler for both checkout.session.completed and checkout.session.async_payment_succeeded (gated on payment_status), not the success page.” And: “Never present webhooks as optional.”

In plain words: only hand over what was bought when Stripe’s own message says it’s paid. The success page is just a thank-you screen.

  1. A webhook is Stripe’s message to your app

    When something happens, like a finished checkout, Stripe’s servers send a message straight to your app’s server. It doesn’t come from the buyer’s browser, so typing an address can’t set it off.

  2. Your app checks it really came from Stripe

    Each message carries a signature. The skill says to “always verify the webhook signature” before acting on it, so nobody can send your app a fake “paid” message.

  3. Two events, because some payments are slow

    checkout.session.completed means the buyer finished checkout. Some payment methods confirm hours or days later, and then checkout.session.async_payment_succeeded arrives when the money does.

  4. Unlock only if it isn’t “unpaid”

    payment_status is Stripe’s label for whether the order is paid. The skill says to deliver “only when the session’s payment_status isn’t unpaid”.

What else it teaches your AI

  • Safer keys. The skill says: “Always recommend a restricted API key (RAK) (rk_ prefix) over a secret key (sk_ prefix).” A restricted key can only do the jobs you allow, so if it leaks, it can do much less harm.
  • Sales tax that’s really on. Before turning on Stripe’s automatic tax, it checks you have an active tax registration, because “Without one, Stripe calculates and collects no tax while the user believes tax is on (the most common Stripe Tax mistake).”
  • Today’s Stripe, not last year’s. It names Stripe’s latest API version and tells your AI to “Always use the latest API version and SDK unless the user specifies otherwise.”
  • Testing without real money. It tells your AI to build and test in a Stripe sandbox, Stripe’s test space, kept apart from your live payments.

Step 1: Install it with one line

For the most popular coding agents, Stripe recommends its official plugin: a package that includes this skill plus extra Stripe tools, and that, in Stripe’s words, will “update automatically”. Use the line for the tool you build with. Stripe says to run each one in your project.

Claude Code. Open a terminal (the window where you type commands) in your project’s folder and run:

claude plugin install stripe@claude-plugins-official

Codex. In a terminal, in your project’s folder:

codex plugin add stripe@openai-curated

Cursor. A slash command, typed in Cursor’s chat. Or install it from the Cursor marketplace.

/add-plugin stripe

Grok Build. In a terminal, in your project’s folder:

grok plugin install stripe --trust

Any other coding agent that uses skills. Stripe’s manual line. It needs Node.js, a free program you can download from nodejs.org. In a terminal, in your project’s folder:

npx skills add https://docs.stripe.com

Stripe’s note on the manual line: “Manually installed skills don’t auto-update. Run npx skills update -y to get the latest versions.”

If your coding agent was already open, start a new session so it loads the skill.

Building in a browser tool that can’t install plugins or skills? You can still paste the prompt below. It spells out Stripe’s main rule in its own words, so your AI can follow it without the skill (it just won’t have the rest of Stripe’s advice). And the quick test works on any app.

Step 2: Paste this prompt

Start your coding agent in your project’s folder and paste this in. It asks your AI to find what unlocks on the success page, move it to where Stripe’s skill says it belongs, work only with test payments, and explain everything in plain English.

The prompt

Use the stripe-best-practices skill to check how my app takes payments with Stripe. I'm not a developer, so explain everything in plain English.

1. Find everything that unlocks or delivers what people buy: course access, downloads, paid accounts, welcome emails. Does any of it happen on the success page (where Stripe sends buyers after paying), or on any other page someone could open just by typing its address?

2. Move all of it into a webhook handler for checkout.session.completed and checkout.session.async_payment_succeeded. Check Stripe's signature on every webhook before trusting it, and unlock only when the session's payment_status isn't "unpaid". Handle checkout.session.async_payment_failed too.

3. Keep the success page as a thank-you screen only. It can say "Thanks! Your access is on its way", but it must not unlock anything by itself.

4. Use Stripe's test mode (a sandbox and test keys) for all of this, never live payments.

When you're done:
- Show me what you changed, in plain words.
- List anything else the skill flags in my Stripe setup, like where my keys are kept, or automatic tax turned on without an active tax registration. Don't fix those yet.
- Give me step-by-step instructions to test it with a Stripe test payment, and to check that typing the success page address without paying no longer unlocks anything.

While it works

  • It may ask you to set up a webhook in your Stripe dashboard and add a signing secret to your app’s settings. That’s normal: it’s how your app proves a message came from Stripe.
  • Keep that signing secret out of your code, like a password. The skill says webhook signing keys “need to be handled with the same care as secret API keys”.
  • The skill guides your AI. It doesn’t test your app by itself. The checking is Step 3.

Step 3: Check it, then clean up

  1. Do the quick test again

    Repeat the private-window test, then go through the 6 checks below. In the reel, after the fix: “Same address now: no payment, no course.”

  2. Find who already got in free

    If your site has been live, some people may already have access they never paid for. Ask:

    List every account that has access to my paid course but no matching paid Stripe payment. Don't remove anyone yet.

    Then decide what to do about each one yourself.

  3. Before you switch to real payments

    Your test setup and your live setup are separate. Ask:

    What do I need to set up in Stripe's live mode so this webhook works with real payments?

Honest catches

  • It’s advice for your AI, not a scanner

    The skill is instructions your AI reads when it plans, builds, changes, tests or reviews Stripe code (SKILL.md). Your AI still writes the code, and nothing in the skill tests your live site. That’s why you do the tests on this page yourself.

  • Manual installs go out of date

    The plugins update themselves. The manual line doesn’t: “Manually installed skills don’t auto-update” (README). Run npx skills update -y before you build something new with Stripe.

  • It covers Stripe, not your whole app

    It’s about payments. It won’t check whether one customer can see another customer’s data. For that, see our guide Before you launch, ask for a security audit.

Before you take real money: 6 checks

Do these in Stripe’s test mode, with test accounts you made yourself. Tick each check off as you go. The ticks aren’t saved anywhere.

  1. The private-window test, with a test account that never paid. You should see a thank-you message or an error, never the course.

  2. In test mode, pay with Stripe’s test card 4242 4242 4242 4242, any future date such as 12/34, and any 3-digit security code (Stripe’s testing docs). You should get access without doing anything else. Never test with a real card: Stripe’s terms don’t allow testing in live mode with real card details.

  3. Without this check, someone could send your app a fake “paid” message. Ask:

    Does my webhook handler check Stripe's signature before it trusts any message? Show me where.
  4. Some payments confirm hours or days after checkout. The skill warns that unlocking on the first event alone “grants access for payments that later fail and never fulfills the ones that succeed”. Ask:

    Do I handle checkout.session.async_payment_succeeded and checkout.session.async_payment_failed, and do I unlock only when payment_status isn't "unpaid"?
  5. Keys belong in your host’s secret settings, never in your code or anything the browser downloads. Ask:

    Where are my Stripe keys and webhook signing secret stored? Is any of them in my code? Should I use a restricted key (rk_) instead of my secret key (sk_)?
  6. If you charge sales tax through Stripe, automatic tax collects nothing without an active tax registration, even though it looks switched on. Ask:

    Is automatic tax turned on in my checkout? Do I have an active tax registration in Stripe for the places I sell to?

Going live? Stripe also has its own go-live checklist, which the skill lists to “Review before launching”. The reel ends with Claude saying “I only do what I’m asked.” That’s the whole lesson: ask.

AnyCreo is in beta · Free while in beta

Get your app right the first time

AnyCreo plans, builds, tests and secures your app on your PC, with the AI plan you already have. You don't have to ask for security or testing. Join the beta list for your invite.

We only email you about AnyCreo. Unsubscribe any time. Privacy · What is AnyCreo?

Credits and sources

stripe-best-practices by Stripe, part of the stripe/ai repository (github.com/stripe/ai), MIT licence. The short quotes on this page come from its README, its SKILL.md file and the skill’s reference files; everything else is in our own words. The reel is a cartoon skit: the course, the students and the code on this page are made up. The Stripe facts are not.

Sources, all opened and checked on November 3, 2026:

  1. [1] Stripe, stripe/ai README on GitHub: the install lines, plugins that update automatically, the note on manual installs, MIT licence. About 2,000 stars on November 3, 2026.
  2. [2] Stripe, stripe-best-practices SKILL.md: the fulfillment rule, “Never present webhooks as optional”, restricted keys, the tax warning, the latest API version, sandboxes.
  3. [3] Stripe, references/payments.md in the same skill: why the success page drops orders, payment_status and slow payments, signature checks.
  4. [4] Stripe, references/security.md in the same skill: restricted keys, webhook signatures, signing secrets.
  5. [5] Stripe, “Testing” in Stripe’s docs: the 4242 test card, and no real card details in live mode.
MIT licence notice for stripe/ai

Copied word for word from the project’s LICENSE file on November 3, 2026.

stripe/ai, by Stripe LICENSE

The MIT License (MIT)

Copyright (c) 2024–2025 Stripe

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

This site’s fonts, Bricolage Grotesque and Geist, are used under the SIL Open Font License (Bricolage Grotesque licence, Geist licence).