> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tryhelium.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Helium is a paywall platform for mobile apps. Paywalls, workflows, triggers, targeting and experiments are configured in the dashboard (https://app.tryhelium.com); the SDK's job is to initialize, present a paywall for a trigger, and report purchases.
> Pick the SDK page for the user's platform: /sdk/quickstart-ios (Swift), /sdk/quickstart-android (Kotlin), /sdk/quickstart-react-native, /sdk/quickstart-flutter. Method names differ per platform; copy them from the page for that platform, never from another platform's page.
> Pages under /sdk/quickstart-ios-v3 and /sdk/quickstart-android-v0 are legacy SDK versions. Use them only when the user is on that version; for upgrades use the /migrations pages.
> For live dashboard data (paywalls, workflows, metrics) connect the Helium MCP server at https://app.tryhelium.com/api/mcp (see /ai-tools/mcp). For SQL over events, revenue, subscriptions and users use the Data Access API (/data-access/overview) and the helium-data-access skill (/data-access/agent-skill). This documentation site also exposes a docs-search MCP server at https://docs.tryhelium.com/mcp.
> Web checkout (App2Web) with Stripe or Paddle is a separate flow from in-app purchases; start at /web-checkout/overview.
> Every page is available as Markdown by appending .md to its URL. The full index is at https://docs.tryhelium.com/llms.txt.

# Paddle Onboarding Guide

> Step-by-step Paddle setup for App2Web: account, payment link, connecting Paddle to Helium, building paywalls, adding web checkout to your app, entitlements, testing and rollout.

Take users from your paywall to web checkout, then back to your app with access unlocked.

## 1. Set up your Paddle account

1. Complete Paddle’s [account setup](https://developer.paddle.com/build/onboarding/set-up-checklist#sign-up), including identity verification, banking, and tax details, to enable live payments.
2. [Create your products and prices](https://developer.paddle.com/build/products/create-products-prices) in Paddle.

## 2. Set up the payment link

1. Go to [Paddle website approval](https://vendors.paddle.com/request-domain-approval) and add a new domain.
2. Go to [Paddle Checkout Settings](https://vendors.paddle.com/checkout-settings) and find the **Default payment link** section. Paste in the same domain you just added for **Paddle website approval**.
3. On the same page, enable **Apple Pay** under **Payment Methods**.

## 3. Connect Paddle to Helium

Go to **Settings → Integrations → Paddle** in the [Helium dashboard](https://app.tryhelium.com/integrations) and follow the instructions there to connect your account. Helium configures the webhook automatically.

**Sync your products.** In the Helium dashboard, click **Sync Products**. Your Paddle products and prices will appear alongside your iOS products and can be added to paywalls.

> [accordion] Optional: add free trials
>
> **Each trial price needs a linked non-trial price.**
>
> 1. Create a trial price and a matching non-trial price in Paddle, then sync them to Helium.
> 2. Link the trial and non-trial prices in Helium so the paywall can offer the appropriate purchase option.
> 3. Use a **separate non-trial price for every trial offer** you launch—even if the amount is the same. This lets you identify which offer a non-trial purchase came from.
>
> Helium limits trials to one per customer, including after cancellation. Trials require a payment method up front.

## 4. Build your paywalls

Your in-app paywall opens a linked web paywall when the user purchases a Paddle product. The user completes payment in the browser, then returns to your app.

1. Add your Paddle product(s) to your in-app paywall. Include iOS products for the in-app purchase option.
2. Create a hosted web paywall and link it to your in-app paywall.
3. Publish both paywalls. Target the **in-app paywall** to eligible users; the hosted paywall cannot be added directly to workflows or experiments.

See [Build an App2Web paywall](https://docs.tryhelium.com/guides/build-app2web-paywall.md) for the walkthrough.

> [accordion] Supported platforms and languages
>
> App2Web is iOS-only and limited to US storefronts. Hosted paywalls currently support one language. On Android, the React Native and Flutter web-checkout APIs are safe no-ops; keep your regular IAP flow.

## 5. Add web checkout to your app

Choose your SDK, then enable checkout, identify your user, handle the return link, and add subscription management. Your app needs a [custom URL scheme](https://developer.apple.com/documentation/xcode/defining-a-custom-url-scheme-for-your-app) or [universal link](https://developer.apple.com/documentation/xcode/allowing-apps-and-websites-to-link-to-your-content) so checkout can return users to it.

> [tab] iOS (native, Helium 4.6.0+)
>
> **Enable checkout before initializing Helium:**
>
> ```swift theme={null}
> Helium.config.enableExternalWebCheckout(
>   redirectURL: "yourapp://openapp",
>   paymentProcessors: .paddle
> )
> ```
>
> Set up a deep link in your app, then use it as `redirectURL`. Checkout returns here after success, cancellation, or failure.
>
> **Set your user ID on Helium** before showing a paywall.
>
> > [accordion] Purchases before sign-in
> >
> > If you must set the user ID after showing a paywall, set `allowWebCheckoutWithoutUserId` to `true`.
>
> **Handle the return link.** Forward incoming links to `Helium.shared.handleURL(url)` from your `onOpenURL` / `application(_:open:)` handler.
>
> **Add a "Manage Subscription" button** so users can cancel or update payment methods via Paddle's customer portal:
>
> ```swift theme={null}
> if await Helium.entitlements.hasActivePaddleEntitlement() {
>     // show the manage subscription button
> }
>
> // when the button is tapped:
> do {
>     let url = try await Helium.shared.createPaddlePortalSession()
>     UIApplication.shared.open(url)
> } catch {
>     print("Failed to open customer portal: \\(error)")
> }
> ```
>
> The portal opens `paddle.net` for subscription management. Cancellation emails use the [checkout billing email](https://docs.tryhelium.com/guides/app2web-faq.md#billing-email).
>
> > [accordion] Optional: pre-authenticated portal links
> >
> > To open a pre-authenticated customer portal session, generate the link from your backend instead. Look up the user's Paddle customer ID with Helium:
> >
> > ```swift theme={null}
> > let paddleCustomerId = await Helium.shared.getPaddleCustomerId()
> > ```
> >
> > Send that ID to your server and follow [Paddle's guide for generating pre-authenticated customer portal links](https://developer.paddle.com/build/customers/integrate-customer-portal/).

> [tab] React Native / Expo
>
> Available in `expo-helium` 3.4.13+ and `@tryheliumai/paywall-sdk-react-native` 3.1.2+.
>
> **Enable checkout before initializing Helium:**
>
> ```tsx theme={null}
> enableExternalWebCheckout({
>   redirectURL: "yourapp://openapp",
>   paymentProcessors: ["paddle"],
> });
> ```
>
> Set up a deep link in your app, then use it as `redirectURL`. Checkout returns here after success, cancellation, or failure.
>
> **Set your user ID on Helium** before showing a paywall.
>
> > [accordion] Purchases before sign-in
> >
> > If you must set the user ID after showing a paywall, call `setAllowWebCheckoutWithoutUserId(true)`.
>
> **Handle the return link.** Forward incoming links to `heliumHandleURL(url)` from your deep link handling:
>
> ```tsx theme={null}
> useEffect(() => {
>   const sub = Linking.addEventListener('url', (event) => heliumHandleURL(event.url));
>   void Linking.getInitialURL().then(heliumHandleURL);
>   return () => sub.remove();
> }, []);
> ```
>
> > [!NOTE]
> >
> > With **Expo Router**, you may need to [override the default behavior](https://docs.expo.dev/router/advanced/native-intent/#sending-navigation-events-to-third-party-services).
>
> **Add a "Manage Subscription" button** so users can cancel or update payment methods via Paddle's customer portal:
>
> ```tsx theme={null}
> if (await hasActivePaddleEntitlement()) {
>     // show the manage subscription button
> }
>
> // when the button is tapped:
> const url = await createPaddlePortalSession();
> if (url) {
>   await Linking.openURL(url);
> }
> ```
>
> The portal opens `paddle.net` for subscription management. Cancellation emails use the [checkout billing email](https://docs.tryhelium.com/guides/app2web-faq.md#billing-email).
>
> > [accordion] Optional: pre-authenticated portal links
> >
> > To open a pre-authenticated customer portal session, generate the link from your backend instead. Look up the user's Paddle customer ID with Helium:
> >
> > ```tsx theme={null}
> > const paddleCustomerId = await getPaddleCustomerId();
> > ```
> >
> > Send that ID to your server and follow [Paddle's guide for generating pre-authenticated customer portal links](https://developer.paddle.com/build/customers/integrate-customer-portal/).

> [tab] Flutter (Helium 3.3.8+)
>
> **Enable checkout before initializing Helium:**
>
> ```dart theme={null}
> await HeliumFlutter().enableExternalWebCheckout(
>   redirectURL: "yourapp://openapp",
>   paymentProcessors: {HeliumWebCheckoutProcessor.paddle},
> );
> ```
>
> Set up a deep link in your app, then use it as `redirectURL`. Checkout returns here after success, cancellation, or failure.
>
> > [accordion] Register a Flutter deep link
> >
> > For a custom scheme, add a `CFBundleURLTypes` entry to `ios/Runner/Info.plist`:
> >
> > ```xml theme={null}
> > <key>CFBundleURLTypes</key>
> > <array>
> >   <dict>
> >     <key>CFBundleURLName</key>
> >     <string>com.yourcompany.yourapp</string>
> >     <key>CFBundleURLSchemes</key>
> >     <array>
> >       <string>yourapp</string>
> >     </array>
> >   </dict>
> > </array>
> > ```
> >
> > To use a universal link (`https://...`) instead, set up [associated domains](https://docs.flutter.dev/ui/navigation/deep-linking) and use that URL as the `redirectURL`.
>
> **Set your user ID on Helium** before showing a paywall.
>
> > [accordion] Purchases before sign-in
> >
> > If you must set the user ID after showing a paywall, call `setAllowWebCheckoutWithoutUserId(true)`.
>
> **Handle the return link.** Forward incoming links to `handleURL(url)`; Helium ignores unrelated URLs. If you don’t already handle deep links, add [app\_links](https://pub.dev/packages/app_links) with `flutter pub add app_links`:
>
> ```dart theme={null}
> import 'package:app_links/app_links.dart';
>
> _linkSubscription = AppLinks().uriLinkStream.listen((uri) {
>   HeliumFlutter().handleURL(uri.toString());
> });
> ```
>
> > [!NOTE]
> >
> > `uriLinkStream` also emits the link that launched the app, so cold starts are covered — there is no separate initial-link step. If you use `app_links`, set `FlutterDeepLinkingEnabled` to `false` in `Info.plist` so Flutter's built-in deep-link handling doesn't consume the link first.
>
> **Add a "Manage Subscription" button** so users can cancel or update payment methods via Paddle's customer portal. `launchUrl` comes from the [url\_launcher](https://pub.dev/packages/url_launcher) package:
>
> ```dart theme={null}
> final hasPaddle = await HeliumFlutter().hasActivePaddleEntitlement();
> if (hasPaddle) {
>     // show the manage subscription button
> }
>
> // when the button is tapped:
> final urlString = await HeliumFlutter().createPaddlePortalSession();
> if (urlString != null) {
>   await launchUrl(Uri.parse(urlString));
> }
> ```
>
> The portal opens `paddle.net` for subscription management. Cancellation emails use the [checkout billing email](https://docs.tryhelium.com/guides/app2web-faq.md#billing-email).
>
> > [accordion] Optional: pre-authenticated portal links
> >
> > To open a pre-authenticated customer portal session, generate the link from your backend instead. Look up the user's Paddle customer ID with Helium's `getPaddleCustomerId()`, send it to your server, and follow [Paddle's guide for generating pre-authenticated customer portal links](https://developer.paddle.com/build/customers/integrate-customer-portal/).

Helium can predict when users are likely to have Apple Pay billing issues and, when you use the App2Web eligibility preset, prevents them from seeing web payments. If you’d like to turn off this feature, use the setting below **before initializing Helium**:

> [accordion] Turn off web billing issue detection
>
> > [tab] iOS
> >
> > ```swift theme={null}
> > Helium.config.enableWebApplePayReadiness = false
> > ```
>
> > [tab] Expo / React Native
> >
> > ```tsx theme={null}
> > setEnableWebApplePayReadiness(false);
> > ```
> >
> > React Native requires `@tryheliumai/paywall-sdk-react-native` 3.1.14+. On 3.1.13, set the native iOS flag in `AppDelegate` before JavaScript initializes Helium. This is a no-op on Android.
>
> > [tab] Flutter
> >
> > ```dart theme={null}
> > await HeliumFlutter().setEnableWebApplePayReadiness(false);
> > ```
> >
> > Requires `helium_flutter` 3.3.15+. On 3.3.14, set the native iOS flag in `AppDelegate` before Dart initializes Helium. This is a no-op on Android.

## 6. Configure your entitlements

Helium can check web subscription access in one line:

> [tab] iOS
>
> ```swift theme={null}
> let hasWebAccess = await Helium.entitlements.hasActivePaddleEntitlement()
> ```

> [tab] React Native / Expo
>
> ```tsx theme={null}
> const hasWebAccess = await hasActivePaddleEntitlement();
> ```

> [tab] Flutter
>
> ```dart theme={null}
> final hasWebAccess = await HeliumFlutter().hasActivePaddleEntitlement();
> ```

Use this result alongside your existing in-app purchase checks to unlock paid features. Helium updates the entitlement after purchase and tracks subsequent subscription changes through the automatically configured webhook.

Already have an entitlement system? You can connect it instead:

> [accordion] Use RevenueCat for entitlements
>
> Connect Paddle purchases to your existing RevenueCat entitlements:
>
> 1. Create a Paddle web configuration in the [RevenueCat dashboard](https://app.revenuecat.com).
>    1. Select your project > **Web** > Add web provider > Paddle
>    2. Create a new [Paddle API Key](https://vendors.paddle.com/authentication-v2) for RevenueCat. **See permissions below**
>    3. Paste in the new Paddle API key
>    4. Purchase tracking should be **Automatic**
>    5. Under **App user ID matching** select **Use a custom field** with `rc_user_id` as the field key
>
> 2. Go to **Product catalog** > **Products** and Import your Paddle products into RevenueCat.
>
> 3. Attach those products to desired entitlement(s).
>
> > [accordion] Permissions for Paddle API Key that RevenueCat needs
> >
> > * Addresses  `READ`
> > * Adjustments - `READ`
> > * Businesses - `READ`
> > * Client-side tokens - `WRITE`
> > * Customer portal sessions - `WRITE`
> > * Customers - `READ`
> > * Discounts - `READ`
> > * Notification settings - `WRITE`
> > * Notifications - `READ`
> > * Payment methods - `READ`
> > * Prices - `READ`
> > * Products - `READ`
> > * Subscriptions - `READ`
> > * Transactions - `WRITE`
>
> RevenueCat can take a few seconds to reflect a purchase. Check Helium entitlements as well to unlock access immediately while RevenueCat syncs.
>
> > [accordion] Troubleshooting RevenueCat Entitlements for Paddle Purchases
> >
> > * Make sure you have done the above steps and include all of your Paddle products in your RevenueCat entitlements.
> > * Find your Paddle -> RevenueCat webhook at [https://vendors.paddle.com/notifications-v2](https://vendors.paddle.com/notifications-v2) and click on it to see that notifications are being sent successfully. If you see errors, you may need to adjust the permissions on the Paddle API Key you provided to RevenueCat.
> > * If you still have issues, delete the existing Paddle web provider in RevenueCat, revoke the Paddle API Key you created for RevenueCat (leave the Helium one), and run through the above steps again.

> [accordion] Use your own entitlement system
>
> Keep your backend as the source of truth. Connect Paddle webhooks to your system, link the Paddle customer and subscription to your app user, and update access when the subscription changes.
>
> Follow [Paddle’s guide to provisioning access](https://developer.paddle.com/build/subscriptions/provision-access-webhooks/).

## 7. Test everything

Create a test audience with **Paddle eligible users** and the **`sandbox` or `debug` app environment**. Target your in-app App2Web paywall to it.

You can also test via **[Helium’s triple-tap flow](https://docs.tryhelium.com/guides/paywall-previews.md#preview-paywalls-from-your-app)**: open a Helium paywall in your test build, triple-tap it, and select your App2Web paywall. [App2Web previews](https://docs.tryhelium.com/guides/app2web-previews.md) support simulated checkout to check the flow without a charge; simulated purchases do not grant entitlements. Real checkout charges the payment method and lets you verify access.

* **Purchase:** open a real trigger → browser checkout → purchase → return to the app. Confirm access unlocks in your chosen entitlement system and `hasActivePaddleEntitlement()` returns `true`.
* **Dismiss or cancel checkout:** return to the expected screen without granting access or showing success.
* **Manage subscription:** open the customer portal, cancel, and confirm access lasts until period end.
* **Webhooks:** confirm Paddle delivers to Helium with 2xx responses.

> [accordion] If you use RevenueCat or allow purchases before sign-in
>
> * Confirm RevenueCat updates within a few seconds of purchase, if connected.
> * If users can buy before you set a durable user ID, purchase first, then set the ID and confirm the entitlement attaches correctly.

> [accordion] App2Web paywall not appearing?
>
> The device locale country, App Store storefront, and IP location must all be US. From the US, disable VPNs. From outside the US, use a US device region, a US sandbox Apple storefront, and a US VPN.

## 8. Roll out your experiment

Finish the [App2Web go-live checklist](https://docs.tryhelium.com/guides/app2web-go-live-checklist.md), including a test through a real trigger.

1. **Create both audiences:** a small rollout audience with the **Paddle eligibility preset** AND `user_id_bucket <= 10`, and a full eligible audience with **just the Paddle eligibility preset**.
2. **Start the experiment:** select the small rollout audience and launch a **50/50 experiment: your current IAP paywall versus App2Web**.
3. **Monitor for 24 hours:** compare conversion rates and check checkout errors, returns to the app, and entitlement delivery.
4. **Expand when the data looks good:** use the same experiment and change its audience to the full eligible audience.

Keep monitoring [experiment results](https://docs.tryhelium.com/guides/app2web-faq.md#experiment-results) as data comes in. The first 24 hours are a rollout health check, not a final verdict on performance.

See the [App2Web FAQ](https://docs.tryhelium.com/guides/app2web-faq.md) for attribution, checkout behavior, and experiment results.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.