> ## 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.

# Paywall Traits

> Pass values from your app into a paywall at presentation time so one paywall can change copy, pricing or behavior per user. Covers the editor setup and the SDK call for each platform.

iOS 4.4.2+Android 4.4.2+React Native 3.4.3+Flutter 3.3.3+

Paywall traits are values passed into a paywall upon presentation, allowing your paywall to display or behave differently depending on those values.

This must be configured in two places:

1. Your paywall via the paywall editor
2. Your app by passing in values to the Helium mobile SDK

## Paywall Editor

![Paywall Traits](https://mintcdn.com/helium/RB3DV7v6472dGP3j/images/paywall_traits.jpg?fit=max\&auto=format\&n=RB3DV7v6472dGP3j\&q=85\&s=66de8518779a10c2d1eb248391567873)

Open the paywall editor from the [Helium dashboard](https://app.tryhelium.com/paywalls). Type something like

```text theme={null}
use a paywall trait with key "name" to display a customized greeting
```

> [!WARNING]
>
> You MUST provide a **default value** or behavior for each trait, in case the app does not pass in a value.

## Pass in from the SDK

By default, user traits will automatically be included as custom paywall traits in all of your paywalls. (Just make sure your SDK version is higher than what's listed at the top of this page.)

To pass in additional paywall traits during paywall presentation, use the `customPaywallTraits` parameter.

```swift iOS theme={null}
Helium.shared.presentPaywall(
    trigger: "your-trigger",
    config: PaywallPresentationConfig(
        customPaywallTraits: HeliumUserTraits(["name": nameValue])
    )
) { paywallNotShownReason in }
```

```kotlin Android theme={null}
import com.tryhelium.paywall.core.HeliumUserTraits.Companion.create

Helium.presentPaywall(
    "your-trigger",
    config = PaywallPresentationConfig(
        customPaywallTraits = mapOf(
            "name" to nameValue,
        ).create()
    )
)
```

```tsx React Native theme={null}
presentUpsell({
  triggerName: "your-trigger",
  customPaywallTraits: { name: nameValue },
});
```

```dart Flutter theme={null}
await HeliumFlutter().presentUpsell(
  context: context,
  trigger: "your-trigger",
  customPaywallTraits: { "name": nameValue },
);
```

## Targeting and Metrics Considerations

If you want to evaluate the effects of different traits in your paywall, utilize user traits in your SDK integration.

Helium does not currently support the use of`customPaywallTraits` (passed during paywall presentation) as metrics filters.

User traits can also be used for targeting.

### **What if I set both?**

If the same key is present in both user traits and `customPaywallTraits`, the paywall will see the value from `customPaywallTraits`.

Metrics still only sees the value from user traits.

## Coming Soon

We are working on adding default traits you can use without passing in from SDK.


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