# Creating Stripe Products

### Demo

{% file src="<https://1528942926-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MEse5A9Po6xt6ZmrGcz%2F-MFNEHvWaai0j4OHycWU%2F-MFNRCfyRuq-CxEngyte%2FCreating%20Products.mov?alt=media&token=bdf3afca-c908-493f-aeba-097bbc8de1bc>" %}
Video: Creating stripe Products
{% endfile %}

### Products

| Product Name | Price Type | Billing Period | Price                | Trial   |
| ------------ | ---------- | -------------- | -------------------- | ------- |
| Standard     | Recurring  | Monthly        | $9                   | 14 days |
| Standard     | Recurring  | Yearly         | $90 (2 months free)  | 30 days |
| Enterprise   | Recurring  | Monthly        | $29                  | ❌       |
| Enterprise   | Recurring  | Yearly         | $290 (2 months free) | ❌       |
| Ultimate     | One Time   | Once           | $399                 | ❌       |

1. Go your[ products page](https://dashboard.stripe.com/test/products)
2. Set
   1. **Name**: Standard
   2. **Pricing model**: Standard pricing
   3. **Price**: $9
   4. **Billing period**: Monthly
   5. **Trial**: 14 days
   6. Add another price for the Yearly tier&#x20;
3. Repeat step 2 for Enterprise but without trial days
4. Now for Ultimate, set **One time** instead of **Recurring**

It should look something like this:

![](https://1528942926-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MEse5A9Po6xt6ZmrGcz%2F-MFIBF5IvuEQe5JiVPxv%2F-MFJDvRvwFFUOTSPSJPU%2FScreen%20Shot%202020-08-21%20at%2022.34.47.png?alt=media\&token=3bbf1853-2d62-42cb-9bed-3bc5d272209c)

Go to `ClientApp/src/store/modules/pricing/default-pricing.Development.ts` and change the price id's.

{% tabs %}
{% tab title="default-pricing.Development.ts" %}

```typescript
import Product from "@/app/models/pricing/Product";
import Feature from "@/app/models/pricing/Feature";
import { BillingPeriod, PriceType } from "@/app/models/pricing/Price";

const defaultCurrency: string = "usd";
export const defaultProductsDevelopment: Product[] = [
  new Product(
    "Standard 🔥",
    "border-orange-300 bg-orange-100 inline-flex px-4 py-1 rounded-full text-sm leading-5 font-semibold tracking-wide uppercase border text-indigo-600",
    [
      {
        id: "price_1HJ5kjDoGxBcf8G2BRSGmVVo",
        type: PriceType.Recurring,
        billingPeriod: BillingPeriod.Monthly,
        price: 9,
        currency: defaultCurrency,
        trialDays: 14,
        product: undefined,
      },
      {
        id: "price_1HJ5kjDoGxBcf8G2SUXpDxnS",
        type: PriceType.Recurring,
        billingPeriod: BillingPeriod.Yearly,
        price: 90,
        currency: defaultCurrency,
        trialDays: 30,
        product: undefined,
      },
    ],
    [
      new Feature("Feature 1", true),
      new Feature("Feature 2", true),
      new Feature("Feature 3", true),
      new Feature("Feature 4", false),
      new Feature("Feature 5", false),
    ],
    false
  ),
  new Product(
    "Enterprise 🚀",
    "border-green-300 bg-green-100 inline-flex px-4 py-1 rounded-full text-sm leading-5 font-semibold tracking-wide uppercase border text-indigo-600",
    [
      {
        id: "price_1HJ5l9DoGxBcf8G2RQwzXg0q",
        type: PriceType.Recurring,
        billingPeriod: BillingPeriod.Monthly,
        price: 29,
        currency: defaultCurrency,
        trialDays: 0,
        product: undefined,
      },
      {
        id: "price_1HJ5l9DoGxBcf8G2YzDYNvyP",
        type: PriceType.Recurring,
        billingPeriod: BillingPeriod.Yearly,
        price: 290,
        currency: defaultCurrency,
        trialDays: 0,
        product: undefined,
      },
    ],
    [
      new Feature("Feature 1", true),
      new Feature("Feature 2", true),
      new Feature("Feature 3", true),
      new Feature("Feature 4", true),
      new Feature("Feature 5", false),
    ],
    true
  ),
  new Product(
    "Unlimited 🦄",
    "border-indigo-300 bg-indigo-100 inline-flex px-4 py-1 rounded-full text-sm leading-5 font-semibold tracking-wide uppercase border text-indigo-600",
    [
      {
        id: "price_1HJ5lWDoGxBcf8G2HUGddqQz",
        type: PriceType.OneTime,
        billingPeriod: BillingPeriod.Once,
        price: 399,
        currency: defaultCurrency,
        trialDays: 0,
        product: undefined,
      },
    ],
    [
      new Feature("Feature 1", true),
      new Feature("Feature 2", true),
      new Feature("Feature 3", true),
      new Feature("Feature 4", true),
      new Feature("Feature 5", true),
    ],
    false
  ),
];

```

{% endtab %}
{% endtabs %}

Your pricing page should be:

![](https://1528942926-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MEse5A9Po6xt6ZmrGcz%2F-MFNEHvWaai0j4OHycWU%2F-MFNRbb0BcHKV5E5_naF%2FScreen%20Shot%202020-08-22%20at%2018.13.06.png?alt=media\&token=a6780382-2ae3-4542-baee-e7fa4902f8e9)

Don't forget to update `ClientApp/src/store/modules/pricing/default-pricing.ts` and set your **LIVE** stripe API Keys.
