Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(docs): added a newline key to the example on README.md #1024

Merged
merged 1 commit into from
Feb 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,19 +101,19 @@ Take note of the id value for the products you just created as you will need thi

Create price for Basic product, substituting `ID_OF_BASIC_PRODUCT` with the appropriate product Id:
```sh
./stripe prices create
-d "product=ID_OF_BASIC_PRODUCT"
-d "unit_amount=1800"
-d "currency=usd"
./stripe prices create \
-d "product=ID_OF_BASIC_PRODUCT" \
-d "unit_amount=1800" \
-d "currency=usd" \
-d "recurring[interval]=month"
```

Create price for Premium product, substituting `ID_OF_BASIC_PRODUCT` with the appropriate product Id:
```sh
./stripe prices create
-d "product=ID_OF_PREMIUM_PRODUCT"
-d "unit_amount=1800"
-d "currency=usd"
./stripe prices create \
-d "product=ID_OF_PREMIUM_PRODUCT" \
-d "unit_amount=1800" \
-d "currency=usd" \
-d "recurring[interval]=month"
```

Expand All @@ -126,20 +126,20 @@ Create price for Premium product, substituting `ID_OF_BASIC_PRODUCT` with the ap
Stripe needs to know what kind of product you are selling to calculate the taxes. For this example we will submit a tax code describing what kind of product is used: `txcd_10000000` which is 'General - Electronically Supplied Services'. You can find a list of all tax codes here: [Available tax codes](https://stripe.com/docs/tax/tax-codes). If you leave the tax code empty, Stripe will use the default one from your [Tax settings](https://dashboard.stripe.com/test/settings/tax).

```sh
./stripe products create
-d "name=Premium"
-d "description=Premium plan"
./stripe products create \
-d "name=Premium" \
-d "description=Premium plan" \
-d "tax_code=txcd_10000000"
```

From the response, copy the `id` and create a price. The tax behavior can be either `inclusive` or `exclusive`. For our example, we are using `exclusive`.

```sh
./stripe prices create
-d "unit_amount=1800"
-d "currency=usd"
-d "tax_behavior=exclusive"
-d "recurring[interval]=month"
./stripe prices create \
-d "unit_amount=1800" \
-d "currency=usd" \
-d "tax_behavior=exclusive" \
-d "recurring[interval]=month" \
-d "product=<INSERT_ID, like prod_ABC123>"
```

Expand Down