AppNative › Blog › In-app purchases

How to add in-app purchases and subscriptions to a Bolt.new app

Updated November 2026 · By the AppNative team

Short answer: Deploy the Bolt.new app (Netlify or Bolt Cloud), then wrap it with AppNative. AppNative builds native iOS and Android apps around it with StoreKit 2 and Google Play Billing, creates your subscription products, and opens a native paywall when your upgrade button calls window.AppNative.iap.showPaywall(). Verified purchases and Apple and Google server notifications update a subscriptions table in your Supabase project, the same one your Stripe webhook already writes to.

Bolt.new gets you a polished React app with Supabase and Stripe in minutes. Getting paid on the App Store is a different problem: Apple wants StoreKit, and StoreKit needs a native app. AppNative wraps your Bolt.new app for iOS and Android with Apple and Google billing built in and writes subscription status straight into Supabase.

Bolt.new in-app purchases at a glance

SourceYour deployed Bolt.new site or its GitHub repo
iOS billingStoreKit 2
Android billingGoogle Play Billing
EntitlementsWritten to Supabase through an Edge Function
Code changeA few lines Bolt can write from one prompt
Web paymentsStripe stays for browser users

How to add in-app purchases and subscriptions to a Bolt.new app

  1. Deploy your Bolt.new app. Publish to Netlify or Bolt Cloud so the app has a live URL, and connect GitHub if you want AppNative to build from the repo.
  2. Wrap it with AppNative. AppNative builds signed iOS and Android apps around the live site. No Xcode, no Mac.
  3. Create products. Define plans and trials once. AppNative creates them in App Store Connect and Google Play.
  4. Prompt Bolt for the bridge. Ask Bolt: if window.AppNative.iap exists, the upgrade button calls showPaywall(); register onEntitlementsChanged once and send the list to a Supabase Edge Function that verifies and upserts the subscription.
  5. Unify Stripe and Apple status. Have both the Stripe webhook and the IAP Edge Function write to the same subscriptions table so your app checks one flag.

The code your web app needs

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.

What AppNative's in-app purchase layer includes

Why Stripe inside the app gets rejected

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.

Bolt.new with Expo vs wrapping the web app

Bolt can scaffold an Expo project, but that's a second app to maintain and you'd still integrate StoreKit yourself. Wrapping the web app you already shipped keeps one codebase, and AppNative provides billing, push and widgets natively.

Native StoreKit vs RevenueCat

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.

Common questions

Can Bolt.new add StoreKit by itself?

No. Bolt builds web apps, and StoreKit only runs in native iOS code. AppNative supplies the native layer your Bolt code talks to.

Where should subscription status live?

In Supabase, in the same table your Stripe webhook writes to. That way web and mobile users see one consistent plan.

Does it support free trials?

Yes. Trials and introductory offers are set per product and created in App Store Connect and Google Play for you.

What happens on refunds?

Apple and Google notify your endpoint and the entitlement is revoked in Supabase automatically.

Can a Bolt.new app sell subscriptions on the App Store?

Yes, with Apple in-app purchase. AppNative wraps the Bolt.new app natively and handles StoreKit, the paywall, product setup and verification.

Why was my Bolt.new app rejected for using Stripe?

Apple Guideline 3.1.1 requires in-app purchase for digital goods sold inside iOS apps. Use the native paywall in the app and keep Stripe on the web.

Does AppNative work with Bolt.new Supabase auth?

Yes. Sessions persist natively and you pass your user's server-generated UUID to setUser() so every purchase is tied to the right Supabase user.

Do I need to code in Swift?

No. Everything native is generated and built by AppNative.

Add in-app purchases with AppNative

In-app purchase guides for other builders

More: In-app purchases for Bolt.new apps · Live Activities for web apps · Widgets for web apps · Rich push notifications