◉RORK LABJP
●EXPO — EAS Observe now records native crashes (Oct 7). On SDK 57, update to 57.0.21 or later●RORK — GPT-6.1 Sol (Sep 29) and Claude Sonnet 5.5 (Sep 28) are now in the model menu●RN 0.88 — React Native 0.88.x is scheduled for Oct 12, 2 days left●Q&A — People keep asking why AuthSession returns no result in Android standalone builds●WINDOWS — A walkthrough shows how to ship an iPhone app from Windows only, with no Mac●NEW — When only notifications fail in Expo Go: three checks to run first●EXPO — EAS Observe now records native crashes (Oct 7). On SDK 57, update to 57.0.21 or later●RORK — GPT-6.1 Sol (Sep 29) and Claude Sonnet 5.5 (Sep 28) are now in the model menu●RN 0.88 — React Native 0.88.x is scheduled for Oct 12, 2 days left●Q&A — People keep asking why AuthSession returns no result in Android standalone builds●WINDOWS — A walkthrough shows how to ship an iPhone app from Windows only, with no Mac●NEW — When only notifications fail in Expo Go: three checks to run first
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.

Stripe18Monetization38EntitlementsCloudflare Workers25Billing

✦ 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 $15 for lifetime access
View Membership →

Related Articles

⟐ Business2026-05-13
I Let AI Read My Rork App Reviews — It Found My Next Feature in 3 Minutes
Build an automated user review analysis system using Claude API and App Store Connect API for your Rork app. Working code for sentiment analysis, theme clustering, priority scoring, and the reconciliation step that keeps batches from silently dropping reviews.
⟐ Business2026-05-05
Rork Max × RevenueCat Paywalls SDK: Remote Paywalls, A/B Testing, and Conversion Gains
A complete guide to integrating RevenueCat Paywalls SDK with Rork Max apps — enabling remote paywall updates and A/B testing without App Store reviews, with production-ready code examples and conversion optimization strategies.
⟐ Business2026-05-03
Revenue Flow Design for Rork Max-Released Apps — Offer Codes, Win-Back, and Push Notification Integration
A production-ready implementation walkthrough for maximizing recurring revenue on Rork Max apps. Covers offer code distribution, win-back offers, and push notification integration on both StoreKit 2 and Google Play Billing.
📚RECOMMENDED BOOKS
Build a Large Language Model (From Scratch)
Sebastian Raschka
LLM Dev
Prompt Engineering for LLMs
Berryman & Ziegler
Prompting
AI Engineering
Chip Huyen
AI Eng
* Contains affiliate links