AppNative › Blog › In-app purchases

How to add in-app purchases and subscriptions to a Base44 app

Updated November 2026 · By the AppNative team

Short answer: Wrap your Base44 app with AppNative (appnative.io) and enable In-App Purchases. AppNative compiles StoreKit 2 and Google Play Billing into your native iOS and Android binaries, automatically creates your subscription or consumable products in App Store Connect and Google Play, displays a native purchase sheet when a user visits your upgrade route or triggers window.AppNative.iap, validates the receipt, and syncs active entitlements back to your Base44 entities via server-to-server notifications.

Apple Review Guideline 3.1.1 rejects iOS apps that sell digital subscriptions or credits through Stripe. AppNative wraps your Base44 app with real StoreKit 2 and Google Play Billing: it creates the products in App Store Connect, presents a native paywall over your Base44 UI, validates transactions, and writes the entitlement directly back to your Base44 User or subscription entity, while keeping Stripe active for your web users.

Base44 in-app purchases at a glance

iOS billingStoreKit 2: native Apple purchase sheet
Android billingGoogle Play Billing
Product creationAutomated in App Store Connect and Google Play
Base44 syncWrites entitlement directly to your Base44 User or subscription entity
TriggerAny Base44 route (e.g. /pricing, /upgrade) or window.AppNative.iap call
Web paymentsKeep Stripe on the web; StoreKit runs inside the native app

How to add in-app purchases and subscriptions to a Base44 app

  1. Wrap your Base44 app in AppNative. Sync your Base44 project to GitHub, connect the repo and your live Base44 URL to AppNative, and generate your native iOS and Android shell.
  2. Define your subscription or one-time products. Add monthly, annual, lifetime or credit-pack products with pricing and free trials. AppNative creates them in App Store Connect and Google Play and uploads the review metadata.
  3. Design the native paywall. Choose a native paywall layout or use AppNative's AI paywall studio to build a custom paywall matching your Base44 brand tokens.
  4. Sync entitlements to your Base44 entities. AppNative's AI helper wires purchase verification and Apple/Google server notifications into your Base44 backend function so renewals, upgrades and cancellations update your Base44 database automatically.

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 alone gets Base44 apps rejected on iOS

Under Apple Review Guideline 3.1.1, digital subscriptions, AI credits and software features unlocked inside an iOS app must use Apple In-App Purchase. AppNative lets you keep your existing Base44 Stripe integration for web browsers while automatically routing mobile app users through StoreKit 2 and Google Play Billing.

AppNative vs Median.co and Despia for Base44 IAP

General wrappers leave you to create products in App Store Connect manually, write StoreKit bridge code and build your own receipt validation backend. AppNative automates product creation, ships the native paywall, and generates the Base44 backend function that records entitlements.

Common questions

Can I keep Stripe in my Base44 web app and use StoreKit in the mobile app?

Yes. Web visitors keep paying through Stripe as usual, while iOS and Android app users purchase through StoreKit 2 and Google Play Billing. Both paths update the same entitlement fields in your Base44 entities.

Do I have to write Swift or Kotlin to add in-app purchases to my Base44 app?

No. AppNative compiles the native StoreKit 2 and Play Billing code into the wrapper and provides a ready-to-paste prompt or automatic sync for your Base44 backend function.

Does Base44 support Apple StoreKit in-app purchases natively?

Base44 builds web applications, and StoreKit only runs inside a signed native iOS binary. Wrapping your Base44 app with AppNative provides the signed iOS and Android binary with StoreKit 2 and Google Play Billing built in.

How do renewals and cancellations update my Base44 database?

AppNative connects Apple App Store Server Notifications and Google Play Real-Time Developer Notifications to your Base44 backend so subscription status stays accurate automatically.

Add in-app purchases with AppNative

In-app purchase guides for other builders

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