Add users to a user group based on their Stripe attributes
Setting up user groups based on users’ payment details.
![Payment attributes](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F8cf15b1f-92aa-4f7b-ac1c-5f213e230e3a%2Fpayment-attributes.png?table=block&id=fb9256c9-4f45-4bf1-a0f4-70c80b2eda09&cache=v2)
If you have connected your Stripe account (in Settings => Integrations => Stripe Checkout) and plan to or are already selling products and subscriptions (e.g. via the checkout form), you can define user group conditions based on those products/subscriptions. This way, only the users that have purchase a specific product(s)/subscription(s) will be able to access the given block.
Select Attribute
So, the first two attribute options in Condition Settings are payment-related and are for selecting One-time Products or Subscriptions created in your Stripe account. For instance, you can use this to provide access to a given block only to the users who have purchased a specific subscription.
Select Condition
There are three conditions available:
- is one of –the Attribute is any of the Value(s) (multiple values can be added)
- is none of – the Attribute is any other value apart from the selected Value(s) (multiple values can be added)
- has all of – the Attribute has all the Value(s) (multiple values can be added)
![Payment-related condition options](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Fab31cbca-8d65-4ae6-b271-d42f652459cb%2Fpayment-conditions.png?table=block&id=c1fde251-2eac-4ba2-b955-7887978a7a42&cache=v2)
Select Value
Finally, you need to add the values for which the defined condition should work. For One-time Product and Subscription attributes you should see a list of values based on what you have created on Stripe. You can select as many values as needed.
![List of values](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Ff79ffe81-e2fc-411d-b798-97f501525ec8%2Fvalues.png?table=block&id=3c4f317b-612e-44bf-a3e6-0a6bfbaf3358&cache=v2)
In the example provided below, a condition is defined so that all the users that have purchased the "Advanced JavaScript Course" product, have access to the block, which could be a List block with JavaScript video tutorials.
![One-time Product condition defines](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Fe7ec1ead-7285-48ac-9c0a-5064a0937bb7%2Fcondition-set-one-time-product.png?table=block&id=a5f5e911-c823-479e-ac0e-0a24e1e4a5f8&cache=v2)
Last updated on October 26, 2023