AppNative › Blog › In-app purchases
Updated November 2026 · By the AppNative team
Claude Code can write your whole product: React or Next.js frontend, API, database, Stripe. Selling it on the App Store adds native billing, App Store Connect setup, receipt verification and server notifications. AppNative handles the native half so Claude Code only has to add a few lines to your web app.
| Stack | React, Next.js, Vite, Remix, SvelteKit or any web framework |
| iOS billing | StoreKit 2 |
| Android billing | Google Play Billing |
| Your code | A showPaywall() call, an entitlement listener and one sync route |
| Server events | App Store Server Notifications V2 and Google RTDN to your API |
| Docs for the agent | appnative.io/api-docs has copy-paste prompts for Claude Code |
Everything native is handled by AppNative. Your web code identifies the user, listens for entitlement changes and opens the paywall. In a normal browser the same button keeps using Stripe.
// 1. Right after sign-in (not inside the buy button)
const token = await window.AppNative?.iap?.setUser(user.iapUuid);
// 2. Once at app start: renewals, expiries, refunds and upgrades land here
window.AppNative?.iap?.onEntitlementsChanged((list) => {
const active = list.filter((e) => e.isActive && !e.revocationDate && !e.isUpgraded);
syncEntitlements(active); // your backend verifies and saves them
});
// 3. Your existing upgrade button
function upgrade() {
if (window.AppNative?.iap) return window.AppNative.iap.showPaywall(); // Apple / Google
window.location.href = "/checkout"; // Stripe, unchanged, on the web
}
Your backend should verify each entitlement's signedTransactionInfo before granting access, and match appAccountToken to the signed-in user. See the AppNative API docs for copy-paste prompts you can give your AI builder.
App Store Review Guideline 3.1.1 says digital content, subscriptions, credits and premium features bought inside an iOS app have to go through Apple's in-app purchase. A Stripe checkout page loaded inside a wrapped web app is one of the most common rejections for AI-built apps. The fix that keeps your revenue intact: Stripe stays on the web, StoreKit runs in the native app, and both write to the same subscription record.
Claude Code can scaffold a React Native or Swift app, but then you own two codebases, native build tooling and StoreKit edge cases like grace periods and refunds. Wrapping keeps one web codebase and moves the native billing work to AppNative.
Native StoreKit mode keeps everything inside your own Apple and Google accounts with no third-party revenue share. RevenueCat adds its own dashboard and analytics on top. AppNative supports both, so you can pick per app and switch later.
It can, but a web app can't run it. StoreKit needs a native target, signing and App Store Connect products. AppNative provides those, and Claude Code only edits your web code.
AppNative's API docs include ready-made prompts for unlocking pro features, renewals, account matching and server notifications. Paste the one you need into Claude Code.
Each entitlement includes signedTransactionInfo. Your route verifies it with Apple's public keys, matches appAccountToken to the user, and saves the result.
Yes. Browser users keep paying through Stripe; app users pay through Apple or Google. Both update the same record.
Yes. AppNative wraps it as a native iOS and Android app with StoreKit 2 and Google Play Billing and handles product creation and submission.
No. AppNative builds, signs and uploads in the cloud.
Yes. Any web app works, whichever coding tool wrote it.
No. Native StoreKit mode works on its own. RevenueCat mode is there if you want it.
Add in-app purchases with AppNative
More: In-app purchases for apps built with Claude Code · Live Activities for web apps · Widgets for web apps · Rich push notifications