◉RORK LABJP
●GPT-6.1 SOL — Added to Rork's model menu (09-29) with Low, Medium and High effort; included on Pro and Max●SONNET 5.5 — Claude Sonnet 5.5 is selectable: strong at UI design and faster than Sonnet 5 (09-28)●SONNET 4.5 — Retires on the Claude API on 11/30, 25 days left. If your app calls it, check the migration target●SDK 58 — Moves to React Native 0.88. R8 is now on by default in Android release builds, and iOS prebuild generates a SceneDelegate●OBSERVE — EAS Observe now records native crashes too (SDK 57.0.21 or later, 10/07)●NEW — My App Open Ad Only Showed When the App…●GPT-6.1 SOL — Added to Rork's model menu (09-29) with Low, Medium and High effort; included on Pro and Max●SONNET 5.5 — Claude Sonnet 5.5 is selectable: strong at UI design and faster than Sonnet 5 (09-28)●SONNET 4.5 — Retires on the Claude API on 11/30, 25 days left. If your app calls it, check the migration target●SDK 58 — Moves to React Native 0.88. R8 is now on by default in Android release builds, and iOS prebuild generates a SceneDelegate●OBSERVE — EAS Observe now records native crashes too (SDK 57.0.21 or later, 10/07)●NEW — My App Open Ad Only Showed When the App…
Articles/Business
⟐ Business/2026-09-22Advanced

A successful payment never tells you what to unlock. Routing four products through one Checkout

Tips, single articles, monthly plans and lifetime access all came back from Stripe looking identical. Here is how I moved entitlement off the amount and onto metadata, and why I now fail closed when the entitlement store goes quiet.

Stripe20Monetization40EntitlementsCloudflare Workers26Billing

✦ Premium Article

I was rereading the post-payment handler late one evening, about to add a fourth product. What I found was a single straight line: if the payment completed, write a membership record.

Back when there was exactly one product, that line was correct. Adding a tip, then a monthly plan, then a single-article purchase put the same line in danger three separate times.

The thing worth saying first is that a successful payment only tells you that money moved. Who may see what is something you decide when you create the session, not something the payment processor hands back.

The amount answers "did they pay". The declaration made at creation time answers "what may they open". Keeping those two out of the same if is the one rule I try not to bend.

Every product I added changed what success meant

The site I run has four payments with quite different personalities: a small tip, a single-article purchase, a monthly plan, and a one-time lifetime unlock.

They all enter through one Checkout endpoint. Keeping one entrance means the return URL, the locale and the cancel path are handled in a single place.

The exit was the problem. All four come back with payment_status: paid, so from the receiving side they wear the same face.

ProductmodeWhat it grantsRetention
Tip ($1.50)paymentNothing at all—
Single article ($1.50)paymentThat one slug10 years
Pro ($5/mo)subscriptionMembership31 days, renewed
Lifetime ($15)paymentMembership10 years

The first row is the easiest one to get wrong. Nobody sets out to write code where a $1.50 thank-you buys lifetime access. It happens because one older line still says "paid, therefore member".

Keep "they paid" and "they may open this" in separate fields

The temptation to branch on the amount deserves an honest answer, because $1.50 and $15 really are easy to tell apart.

Amounts move, though, and they move for reasons that have nothing to do with access. The day I added a thank-you price, the day I lowered the single-article price, and the day the same product appeared in a second currency, an amount-based table would have needed rewriting each time.

A declared type does not move. "This is a tip" means the same thing after a price change and in any currency.

So the type is fixed at creation and carried out past the payment layer. With Stripe that container is the Checkout Session's metadata field, described in the Checkout Session API reference.

✦

Thank you for reading this far.

Continue Reading

What follows includes implementation code, benchmarks, and practical content we hope you'll find useful. This site runs without ads — server and development costs are supported entirely by members like you. If it's been helpful, we'd be truly grateful for your support.

WHAT YOU'LL LEARN
✦You'll be able to rewrite a Stripe Checkout flow that turns payment success straight into access, so that entitlement comes from metadata instead of the amount
✦You'll be able to catch the case where a small tip or a single-article purchase silently unlocks a higher plan, before it reaches production
✦You'll be able to decide which way to fail when your entitlement store is briefly unreachable, instead of writing let them through and moving on
Secure payment via Stripe · Cancel anytime
✦

Unlock This Article

Get full access to the rest of this article. Buy once, read anytime. This site is ad-free — your support goes directly toward keeping it running.

or
Unlock all articles with Membership →
Share

Thank You for Reading

Rork Lab is ad-free, supported entirely by members like you. We publish practical guides daily with implementation code, benchmarks, and production-ready patterns. If you've found it useful, we'd love to have you on board.

  • ✦Copy-paste ready implementation code
  • ✦New advanced guides published daily
  • ✦$5/mo or $10 for lifetime access
View Membership →

Related Articles

⟐ Business2026-10-19
Before You Add Payments to Your App: Deciding What to Publish for Japan's Commercial Transactions Disclosure
Selling to users in Japan can require a disclosure page under the Act on Specified Commercial Transactions, even for individuals. Compare three ways to handle your address and phone number, and the order I decide things in.
⟐ Business2026-10-17
Can a Booking or Shop App Use Stripe? Apple Draws the Line at Where the Thing Gets Used
Whether a booking or shop app may take payment with Stripe or must use in-app purchase comes down to Guidelines 3.1.1 and 3.1.3. A table by what you sell, a small routing helper, and a three-line review note.
⟐ Business2026-10-16
AdMob Balance Below the Payment Threshold for Months: Three Screens to Check Before You Worry
If AdMob earnings stay under the payment threshold (8,000 yen for yen accounts), the balance rolls over rather than disappearing. Here is what actually deserves a check: address verification, payment holds, and account deactivation, based on the Help pages.