# Adding Products

Add your existing products from their respective storefront, such as the App Store or the Google Play Store, to an app so they can be used in one or more paywalls. For adding Stripe products, please view [this doc](/docs/web-checkout/web-checkout-adding-a-stripe-product). For iOS products purchased through your own billing system, see [Custom Store Products](/docs/ios/guides/custom-store-products).

> **Warning**

Before you attempt to test a paywall on iOS via TestFlight, make sure they are in the "Ready to Submit" phase if it's their initial launch. For local testing, you can use a [StoreKit configuration file](/docs/sdk/guides/testing-purchases) at any point.



> **Note**

Right now, Superwall for iOS does not support [Promotional
Offers](https://developer.apple.com/documentation/storekit/in-app_purchase/original_api_for_in-app_purchase/subscriptions_and_offers/setting_up_promotional_offers),
only [Introductory
Offers](https://developer.apple.com/documentation/storekit/in-app_purchase/original_api_for_in-app_purchase/subscriptions_and_offers/implementing_introductory_offers_in_your_app).
Superwall for Android only supports 1 billing phase per offer.



To get started, select an app. Then **click** the **Products*&#x2A; button from the sidebar. Choose **+ Add Product**:

<img src="__img0" />

From there, you have five fields to fill out:

<img src="__img1" />

| Field        | Description                                                                                                |
| ------------ | ---------------------------------------------------------------------------------------------------------- |
| Identifier   | The StoreKit, Google Play, or custom billing product identifier for your product.                          |
| Trial        | The trial duration attached to the product, if any.                                                        |
| Price        | The price attached to the product. Either type one in, or just the dropdown to select common price points. |
| Period       | The length of the subscription.                                                                            |
| Entitlements | The entitlements this product belongs to.                                                                  |

When you're done, click **Save**.

Note that the pricing information you enter here is **only** used in the Paywall Editor for App Store and Google Play products. On device, that information is pulled directly from the App Store or Google Play Store and will be localized. For iOS Custom Store Products, the SDK uses the product metadata from Superwall and routes purchase attempts to your `PurchaseController`.

> **Warning**

Take care to make sure your product identifier is correct and matches its storefront. This is the
most common cause for products not working correctly when testing.



Entitlements [#entitlements]

Entitlements represent the amount of access or features users are entitled to. They can be used to offer different tiers of service, or just represent a single "active" subscription if your app only has one level of service (i.e. "Pro" unlocks everything). All products are granted a default entitlement.

> **Warning**

**Subscription status is determined by entitlements.**If a product has no entitlements then when a user purchases it their subscription status will be **Inactive**.
Ensure each subscription product is linked to at least one entitlement.



If you don't have multiple tiers of service, you can use only the default `pro` entitlement — you don't need to create any additional entitlements.

To add an entitlement, **click** on the **Entitlements** tab within the products page. Then click **Add Entitlement**:

<img src="__img2" />

From there, give it a name, and click **Create**:

<img src="__img3" />

At this point, you can go back to your products and attach one or more entitlements to each one.

Editing entitlements [#editing-entitlements]

To edit or delete an entitlement, click on the trailing pencil icon or the trash can icon to remove one. Note that if your entitlement is associated with any product, you'll need to remove it first before you can delete it.

<img src="__img4" />

Getting product identifiers [#getting-product-identifiers]

*If you use RevenueCat to handle in-app subscriptions, skip to [Using RevenueCat](/docs/dashboard/products#using-revenuecat)*

Using App Store Connect [#using-app-store-connect]

On **App Store Connect**, head over to &#x2A;*Your App ▸ App Store ▸ Subscriptions ▸ *Your Subscription Group***:

<img title="Screen Shot 2022-05-17 at 3.29.45 PM.png" src="__img5" />

Then, copy your **Product ID**:

<img alt="3372" title="Screen Shot 2022-05-17 at 3.28.41 PM.png" src="__img6" />

Your products, whether live or pre-release, shouldn't be in the "Missing Metadata" state. If they are, you won't be able to test them on device. To fix this, make sure your products are in the "Ready to Submit" or "Approved" state. Superwall will automatically warn you if they are in this state when you have the [App Store Connect API set up](/docs/dashboard/dashboard-settings/overview-settings-revenue-tracking#app-store-connect-api):

<img src="__img7" />

Using Google Play Console [#using-google-play-console]

To add subscription products, on **Google Play Console**, head over to **Your App ▸ Monetize ▸ Products ▸
Subscriptions**:

<img alt="Google Play Products" src="__img8" />

You can also grab your **base plan id** and any offer ids if you're going to use
them.

To add in-app products, no base plan id is required. For **period**, select &#x2A;*None(Lifetime/Consumable)**:

<img alt="Google Play Products" src="__img9" />

Google Play Offers [#google-play-offers]

Google play allows you to create multiple base plans and multiple offers for
each base plan. When using Superwall, you can either specify a specific offer
or let Superwall choose the best offer for the user.

**Automatically Choosing Offers**

Once Google has returned offers that are applicable for that user, Superwall
will use the following logic to choose the best offer for the user:

* Find the longest free trial the customer is eligible for
* If there is no free trial, find the cheapest introductory period the customer is eligible for
* If there is none, fall back to the base plan
* If you have an offer on one of your products that you never want to automatically be selected by this logic (for example, because it is a discount only used for a specific customer group), add the tag `sw-ignore-offer` to that offer in Google Play Console.

To add the `sw-ignore-offer` tag in **Google Play Console**:

1. Open the subscription offer you want to exclude and choose **Advanced settings**.
2. In **Tags**, add `sw-ignore-offer` (all lowercase) and click **Save**.

Superwall will ignore any offer that includes this tag when selecting the best offer for the user.

That means that if your eligibility criteria is set so that someone can use an
offer only once, we'll respect that and choose from the best remaining offers.

**Specifying Offers**

Let's say you have a base plan with two or more offers which differ in trial
duration. You may want to A/B test these offers to see which one performs best.
To achieve this, you can specify the offer id in the Superwall dashboard.

When we specify an offer id, we'll ignore the logic above and always use the
offer **if the user is eligible**. If the user is not eligible for the offer,
we'll fall back to the base plan. The [eligiblity criteria](https://support.google.com/googleplay/android-developer/answer/12154973?hl=en#:~\:text=or%20inactive%20states.-,Offer%20eligibility%C2%A0,-You%20can%20provide) is set in the Google
Play Console, and is based on the user's purchase history.

<img alt="Multiple Offers" src="__img10" />

Using products in paywalls [#using-products-in-paywalls]

After you've added products to an app, you're ready to start using them in paywalls. Check out our [docs](/docs/dashboard/dashboard-creating-paywalls/paywall-editor-products) for a step-by-step guide on how to do that.

Understanding how consumable and non-consumable products work [#understanding-how-consumable-and-non-consumable-products-work]

Superwall uses entitlements to determine ongoing access. Consumables and non-consumables are both one-time purchases, but they should be configured differently:

* **Consumable products** (e.g., credits, tokens, energy boosts) should usually have **Period** set to &#x2A;*None (Lifetime / Consumable)** and **no entitlements** selected. Your app grants the benefit after the purchase event.
* **Non-consumable products** (e.g., a lifetime unlock) should use **Period** set to &#x2A;*None (Lifetime / Consumable)** and should be linked to the entitlement they unlock.

If a product has no entitlements, purchasing it will not make the user's subscription status active. This is expected for consumables.

Finish setup in the SDK guide for your platform:

* [iOS consumable products](/docs/ios/guides/consumable-products)
* [Android consumable products](/docs/android/guides/consumable-products)
* [Flutter consumable products](/docs/flutter/guides/consumable-products)
* [Expo consumable products](/docs/expo/guides/consumable-products)

On iOS, consumables also require `SKIncludeConsumableInAppPurchaseHistory` in your `Info.plist` as a Boolean set to `YES`. On pre-iOS 18 devices, StoreKit 1 will be used when this key is present. See the [iOS consumables guide](/docs/ios/guides/consumable-products) for the exact setup.

Understanding paid offer types [#understanding-paid-offer-types]

Any **paid up front** or **pay as you go** product offer types will also be referenced using the `trial` variables. In Superwall, these are represented as "paid trials". For example, to reference the product's trial price of $3.99 in the image below, you'd use `products.selected.trialPeriodPrice`:

<img src="__img11" />

For more on setting customized text using Liquid Templating, visit this [doc](/docs/dashboard/dashboard-creating-paywalls/paywall-editor-liquid).

A note on StoreKit configuration files [#a-note-on-storekit-configuration-files]

If you're using a StoreKit Configuration file, pricing information will come from there during local testing. Therefore, it's important to keep your StoreKit Configuration file, Superwall, and the App Store products all in sync. Follow our [Setting up StoreKit testing](/docs/sdk/guides/testing-purchases) guide for more information.

> **Note**

Having an issue on device with products not appearing? Run through [this
checklist](/docs/support/troubleshooting/products-not-loading) to make sure everything is configured
correctly.