Skip to content

Commit

Permalink
finalized pages with steps, moved plugin section to the bottom of the…
Browse files Browse the repository at this point in the history
… toc
  • Loading branch information
Lutik-sun committed Sep 16, 2024
1 parent 046a55e commit a291c7e
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 60 deletions.
24 changes: 11 additions & 13 deletions versioned_docs/version-2.0/ff-check-subscription-status.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
---
title: "Step 5. Check subscription"
title: "Step 5. Check access to paid content"
description: ""
metadataTitle: ""
---

import Zoom from 'react-medium-image-zoom';
import 'react-medium-image-zoom/dist/styles.css';

When you need to decide if a user has access to some paid content, you actually need to check if the user has a specific access level. Therefore, we will check the user has at least one access level and this level is the required one.
When determining if a user has access to specific paid content, you'll need to verify their access level. This means checking if the user has at least one access level, and if that level is the required one.

And this can be done by looking into user profile as the user profile contains information on all available access levels.
You can do this by looking at the user profile, which contains all available access levels.

Now let's do the last but not the least - let the user buy your product:
Now, let’s allow users to purchase your product:

1. Double-click the button that should show the paid content.
2. Open the **Actions** section in the right pane if it's not open.
2. Open the **Actions** section in the right pane if its not already open.
3. Open the **Action Flow Editor**.
4. In the **Select Action Trigger** window, choose **On Tap**.
5. In the **No Actions Created** window, click the **Add Conditional Action** button.
Expand All @@ -30,8 +30,8 @@ Now let's do the last but not the least - let the user buy your product:
/>
</Zoom>

7. In the **Set Actions Arguments** section, choose `currentProfile` variable.
8. Fill in other fields as listed below:
7. In the **Set Actions Arguments** section, choose `currentProfile` variable. This is the Adapty variable that holds data about the current user's profile
8. Fill in the fields as follows:

| Parameter | Value |
|--------------------------|----------|
Expand All @@ -40,8 +40,8 @@ Now let's do the last but not the least - let the user buy your product:
| Available Options | List Contains Items |


9. And click **UNSET**.
10. In the new **Set Variable** window, fill in the fields as listed below:
9. Click **UNSET**.
10. In the new **Set Variable** window, fill in the fields as follows:

| Parameter | Value |
|--------------------------|----------|
Expand All @@ -51,7 +51,7 @@ Now let's do the last but not the least - let the user buy your product:

11. Click the **Confirm** button.
12. Click **UNSET** for the second condition.
13. In the new **Set Variable** window, fill in the fields as listed below:
13. In the new **Set Variable** window, fill in the fields as follows:

| Parameter | Value |
|--------------------------|----------|
Expand All @@ -76,6 +76,4 @@ Now let's do the last but not the least - let the user buy your product:
</Zoom>
14. Click the **Confirm** button twice.

Now, continue adding actions that should be done if the user has or does not have the required subscription - open the next page or show a paywall to buy the access.


Now, add the actions for what happens next — if the user has the right subscription or not. Either take them to the next page or show the paywall so they can buy access.
4 changes: 2 additions & 2 deletions versioned_docs/version-2.0/ff-make-purchase.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import 'react-medium-image-zoom/dist/styles.css';

Congratulations! You've successfully [set up your paywall to display product data from Adapty](ff-add-variables-to-paywalls), including the product title and price.

Now, let's move on to the final step: enabling users to purchase your product:
Now, let's move on to the final step – letting users make a purchase through the paywall.

## Step 4.1. Enable users make your purchase

Expand Down Expand Up @@ -191,4 +191,4 @@ If the purchase fails, let's display an alert to the user.

7. Finally, click the **Close** button in the top-right corner.

Congratulations! Your users can now purchase your products. As an extra step, let's [set up a subscription status check](ff-check-subscription-status) elsewhere to decide whether to display paid content or the paywall.
Congratulations! Your users can now purchase your products. As an extra step, let's [set up a check for user access to paid content](ff-check-subscription-status) elsewhere to decide whether to display paid content or the paywall to them.
90 changes: 45 additions & 45 deletions versioned_sidebars/version-2.0-sidebars.json
Original file line number Diff line number Diff line change
@@ -1,49 +1,5 @@
{
"tutorialSidebar": [
{
"type": "category",
"label": "FLUTTERFLOW PLUGIN",
"collapsible": false,
"collapsed": false,
"items": [

{
"type": "doc",
"id": "flutterflow",
"label": "What is Adapty plugin for FlutterFlow"
},
{
"type": "doc",
"id": "ff-getting-started",
"label": "Getting started"
},
{
"type": "doc",
"label": "Step 1. Create flow to show paywall",
"id": "ff-action-flow"
},
{
"type": "doc",
"label": "Step 2. Add data to paywall",
"id": "ff-add-variables-to-paywalls"
},
{
"type": "doc",
"label": "Step 3. Enable purchase",
"id": "ff-make-purchase"
},
{
"type": "doc",
"label": "Step 4. Check subscription status",
"id": "ff-check-subscription-status"
},
{
"type": "doc",
"label": "Adapty resources",
"id": "ff-resources"
}
]
},
{
"type": "category",
"label": "WELCOME TO ADAPTY",
Expand Down Expand Up @@ -1547,6 +1503,50 @@
]
}
]
}
},
{
"type": "category",
"label": "FLUTTERFLOW PLUGIN",
"collapsible": false,
"collapsed": false,
"items": [

{
"type": "doc",
"id": "flutterflow",
"label": "What is Adapty plugin for FlutterFlow"
},
{
"type": "doc",
"id": "ff-getting-started",
"label": "Getting started"
},
{
"type": "doc",
"label": "Step 1. Create flow to show paywall",
"id": "ff-action-flow"
},
{
"type": "doc",
"label": "Step 2. Add data to paywall",
"id": "ff-add-variables-to-paywalls"
},
{
"type": "doc",
"label": "Step 3. Enable purchase",
"id": "ff-make-purchase"
},
{
"type": "doc",
"label": "Step 4. Check access to paid content",
"id": "ff-check-subscription-status"
},
{
"type": "doc",
"label": "Adapty resources",
"id": "ff-resources"
}
]
}
]
}

0 comments on commit a291c7e

Please sign in to comment.