Plan auth and payments before the fun part

Built in a weekend, then 3 weeks on auth and payments · Reddit r/VibeCodingSaaS · u/Background-Gur-8289 · Mar 2026

What happened

The product took two days with Cursor, but auth, Stripe and webhook problems took weeks. The poster ends by recommending a boilerplate.

The honest numbers

As stated by the source. Not independently verified.

The lesson

Plan the boring parts first: sign-in, payments and webhooks are where launch time actually goes.

Fix prompt for your own AI tool

Copy this into your own AI tool (Cursor, Lovable, Claude Code, Bolt…). It's general guidance written by us. Review what the AI suggests before applying it.

I'm a beginner with a Cursor app that takes payments with Stripe (or a similar provider). Please audit the payment flow. 1) Find the webhook endpoint and check that it verifies the provider's signature using the raw request body, and isn't blocked by my own auth (e.g. Supabase verify_jwt on the function). 2) Check that it handles failed payments, refunds, cancellations and the same event arriving twice (idempotency). 3) Make sure only the server/webhook can change a user's plan or credits, never the browser. 4) List problems with file names and fixes, then give me a test checklist using test-mode events and one small real payment. Don't change anything until I've approved your plan. Never ask me to paste API keys, passwords or .env contents; tell me where to check them myself.

Why this keeps happening: payments & webhooks

Checkout pages are easy to generate, but the important logic runs in webhooks: confirming payment, upgrading the account and handling failures. If webhooks fail silently, customers pay and get nothing, or get access without paying.

A quick checklist before you ship

More on this: every payments & webhooks story and our related guide.

Tools involved

Cursor stories, Stripe stories

Related stories

Source: original post on Reddit r/VibeCodingSaaS ↗. Summarised in our own words; numbers are as stated by the source. Browse all stories.

The Honest Build. Real stories, not hype.

Every week: real stories of what building with AI actually took, the one lesson worth keeping, and the security slip-ups to avoid. Free, unsubscribe anytime. Weekly, every Friday.