Skip to main content
This doc assumes you have already created an account on PriceOS and integrated your Stripe account.
1

Create or import products

If you already have products in Stripe, then they’ll automatically be imported so you can skip this step.Otherwise, you can either create a product in your Stripe account or create a custom product in PriceOS by going to the products page and clicking the New Product button.
Learn more about the difference between Stripe products and custom products in Products Overview.
2

Create a feature

  1. Go to the features page and click the New Feature button.
  2. Give the feature a name and select a type (Boolean or Limit).
  3. Click the Create feature button.
See Creating Features to learn more.
3

Define feature access

After creating a feature, you’ll be taken to the feature details page where you can define feature access for each of your products.Once you have made your changes, click the Save Changes button.PriceOS product version page to define feature access rules and save changes
See Defining Feature Access to learn more.
4

Evaluate feature access

Now, you can evaluate feature access by integrating PriceOS into your application.
import { useFeatureAccess } from "priceos/react";
import type { MyFeatures } from "./priceos.types";

export function PremiumSupportButton() {
  const { hasAccess, isLoading } =
    useFeatureAccess<MyFeatures>("premium_support");

  if (isLoading) return <button disabled>Loading...</button>;
  if (!hasAccess) return null;

  return <button>Contact priority support</button>;
}