Step 2. Add data to paywall page
Once you've received all the necessary product data, it's time to map it to the beautiful paywall you designed in FlutterFlow. In this example, we'll map the product title and its price.
Step 2.1. Add product title to paywall page
- Double-click the product text on your paywall page.
- In the Set from Variable window, search for
getPaywallProductResult
variable and choose it.
- Fill in the fields as follows:
Parameter | Value |
---|---|
Available Options | Data Structured Field |
Select Field | value |
Available Options | Data as Index |
List Index Options | First |
Available Options | Data Structured Field |
Select Field | Localized Title |
Default Variable Value | null |
UI Builder Display Value | Anything, in the example, it's product.title |
- Click the Confirm button to save the changes.
Step 2.2. Add price text to paywall page
Repeat the steps from Step 2.1 for the price text as shown below:
- Double-click the price text on your paywall page.
- Fill in the fields as follows:
Parameter | Value |
---|---|
Search variable | getPaywallProductResult |
Available Options | Data Structured Field |
Select Field | value |
Available Options | Data as Index |
List Index Options | First |
Available Options | Data Structured Field |
Select Field | price |
Available Options | Data Structured Field |
Select Field | LocalizedString |
Default Variable Value | null |
UI Builder Display Value | Anything, in the example, it's product.price |
- Click the Confirm button to save the changes.
Step 2.2. Add price in local currency to paywall page
-
Double-click the price on your paywall page.
-
Fill in the fields as follows:
Parameter | Value |
---|---|
Search variable | getPaywallProductResult |
Available Options | Data Structured Field |
Select Field | value |
Available Options | Data as Index |
List Index Options | First |
Available Options | Data Structured Field |
Select Field | price |
Available Options | Data Structured Field |
Select Field | amount |
Available Options | Decimal |
Decimal Type | Automatic |
Default Variable Value | null |
UI Builder Display Value | Anything, in the example, it's price.amount |
- Click the Confirm button to save the changes.
And voilà! Now, when you launch your app, it will display the product data from the Adapty paywall directly on your paywall page! It's time to let your users purchase this product.