# Payment Conditions

![Payment attributes](https://3426011356-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M0NiyhsmXAcV5u1c6XK%2F-MfwLyiY9c7VpQJ1ze9B%2F-MfwMWzt3UZUHx9lGW0m%2Fpayment-attributes-b.png?alt=media\&token=d20b9021-41a9-4ba5-9250-dbad70cd7f74)

If you have connected your Stripe account (in **Settings => Integrations => Stripe Checkout)** and plan to or are already selling products and subscriptions (via the [Stripe checkout](https://softr.gitbook.io/softr-documentation/building-blocks/payment/user-checkout)), 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:** <a href="#select-condition" id="select-condition"></a>

* **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://3426011356-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M0NiyhsmXAcV5u1c6XK%2F-MfwLyiY9c7VpQJ1ze9B%2F-MfwOyn0_HG3hWVqcenN%2Fconditions-b.png?alt=media\&token=eef5e1c7-7ce4-4f52-8d05-fd178748b917)

## 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://3426011356-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M0NiyhsmXAcV5u1c6XK%2F-MfwLyiY9c7VpQJ1ze9B%2F-MfwPFHlfhmVwhAei-9z%2Fvalues-b.png?alt=media\&token=a694471a-ce2a-4de7-9cba-8e2eefb42c5f)

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](https://docs.softr.io/building-blocks/listings) block with JavaScript video tutorials.

![One-time Product condition defines](https://3426011356-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M0NiyhsmXAcV5u1c6XK%2F-MfwLyiY9c7VpQJ1ze9B%2F-MfwPVW0BLq0kH9JWtoi%2Fcondition-set-b.png?alt=media\&token=4459a918-663e-4aa3-ada2-527159b8853a)
