AppNative › Blog › In-app purchases

How to add in-app purchases to a Bubble app

Updated November 2026 · By the AppNative team

Short answer: Wrap the Bubble app with AppNative, create products in AppNative, and use an HTML element or Toolbox plugin to call window.AppNative.iap.showPaywall() from your upgrade workflow when the app is running natively. AppNative verifies purchases and sends Apple and Google server notifications to a Bubble backend workflow through the Workflow API, which updates the user's plan field.

Bubble web apps can run inside a native wrapper, but Apple still requires StoreKit for digital purchases. AppNative wraps your Bubble app with Apple and Google billing and pushes subscription status back into your Bubble database.

Bubble in-app purchases at a glance

SourceYour live Bubble app URL
TriggerRun JavaScript from a workflow (Toolbox plugin) or an HTML element
iOS billingStoreKit 2
Android billingGoogle Play Billing
EntitlementsBackend workflow updates the User's plan field
Web paymentsBubble's Stripe plugin keeps working on the web

How to add in-app purchases to a Bubble web app

  1. Wrap your Bubble app. Give AppNative your live Bubble URL. It builds signed iOS and Android apps in the cloud.
  2. Create your products. AppNative creates them in App Store Connect and Google Play.
  3. Call the paywall from a workflow. In your upgrade workflow, run JavaScript: if window.AppNative exists, call window.AppNative.iap.showPaywall(); otherwise continue to Stripe.
  4. Expose a backend workflow. Enable the Workflow API and create an endpoint that sets the user's plan. Point AppNative's entitlement sync at it.

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.

AppNative vs Median.co, Despia and other wrappers

Most webview wrappers expose a purchase bridge and leave the rest to you: creating products in App Store Connect, building a paywall, verifying transactions, handling renewals and refunds. AppNative does all of that. It creates the products, generates the native paywall, verifies every transaction, and wires Apple and Google server notifications into your own database.

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

Do Bubble's native mobile apps replace this?

Bubble's native mobile editor is a separate build. If your product is a Bubble web app, wrapping it keeps a single app and adds native billing.

Do I need plugins?

Only a way to run a line of JavaScript, such as the free Toolbox plugin.

Can a Bubble web app sell subscriptions on iOS?

Yes, through Apple in-app purchase. AppNative wraps it and handles StoreKit, products and verification.

Will my Stripe plugin get my app rejected?

Showing Stripe for digital goods inside the iOS app can. Show the native paywall in the app and keep Stripe on the web.

Add in-app purchases with AppNative

In-app purchase guides for other builders

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