Skip to content

Commit 5434c22

Browse files
committed
docs(*): fix numbering in POSTINSTALL (#591)
1 parent b42931b commit 5434c22

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

firestore-stripe-invoices/POSTINSTALL.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ To test out the extension:
1111

1212
1. Go to your [Cloud Firestore dashboard](https://console.firebase.google.com/project/${param:PROJECT_ID}/firestore/data) in the Firebase console.
1313

14-
1. If it doesn't already exist, create the collection you specified during installation: `${param:INVOICES_COLLECTION}`
14+
2. If it doesn't already exist, create the collection you specified during installation: `${param:INVOICES_COLLECTION}`
1515

16-
1. Test the invoicing functionality by adding a document to your collection, for example:
16+
3. Test the invoicing functionality by adding a document to your collection, for example:
1717

1818
```js
1919
{
@@ -32,7 +32,7 @@ To test out the extension:
3232
}
3333
```
3434

35-
1. Look in your [Stripe dashboard](https://dashboard.stripe.com/test/invoices) for a record of the test invoice.
35+
4. Look in your [Stripe dashboard](https://dashboard.stripe.com/test/invoices) for a record of the test invoice.
3636

3737
**Note:** Stripe only sends an email to your customer when the extension is using Stripe's live mode but not when using test mode. If you configured your extension with a test mode API key, you'll need to [reconfigure](https://console.firebase.google.com/project/${param:PROJECT_ID}/extensions/instances/${param:EXT_INSTANCE_ID}?tab=config) your installed extension with your [live mode key](https://dashboard.stripe.com/apikeys) before actually using the extension for customer invoicing.
3838

@@ -204,11 +204,11 @@ Here's how to set up the webhook and configure your extension to use it:
204204

205205
1. Go to the [Stripe dashboard.](https://dashboard.stripe.com/webhooks)
206206

207-
1. Use the URL of your extension's function as the endpoint URL. Here's your function's URL: `${function:updateInvoice.url}`
207+
2. Use the URL of your extension's function as the endpoint URL. Here's your function's URL: `${function:updateInvoice.url}`
208208

209-
1. Select all the invoice events.
209+
3. Select all the invoice events.
210210

211-
1. Using the Firebase console or Firebase CLI, [reconfigure](https://console.firebase.google.com/project/${param:PROJECT_ID}/extensions/instances/${param:EXT_INSTANCE_ID}?tab=config) your extension with your webhook’s signing secret (such as, `whsec_12345678`). Enter the value in the parameter called `Stripe webhook secret`.
211+
2. Using the Firebase console or Firebase CLI, [reconfigure](https://console.firebase.google.com/project/${param:PROJECT_ID}/extensions/instances/${param:EXT_INSTANCE_ID}?tab=config) your extension with your webhook’s signing secret (such as, `whsec_12345678`). Enter the value in the parameter called `Stripe webhook secret`.
212212

213213
The webhook fires whenever the invoice's status updates in the Stripe dashboard. The first time the webhook fires, it finds the relevant document in Cloud Firestore, then creates two fields: `stripeInvoiceStatus` and `lastStripeEvent`. If the webhook fires subsequent times for the same invoice, it will update those same fields.
214214

firestore-stripe-payments/POSTINSTALL.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ Here's how to set up the webhook and configure your extension to use it:
6464

6565
1. Go to the [Stripe dashboard.](https://dashboard.stripe.com/webhooks)
6666

67-
1. Use the URL of your extension's function as the endpoint URL. Here's your function's URL: `${function:handleWebhookEvents.url}`
67+
2. Use the URL of your extension's function as the endpoint URL. Here's your function's URL: `${function:handleWebhookEvents.url}`
6868

69-
1. Select the following events:
69+
3. Select the following events:
7070

7171
- `product.created`
7272
- `product.updated`
@@ -91,7 +91,7 @@ Here's how to set up the webhook and configure your extension to use it:
9191
- `invoice.marked_uncollectible` (optional, will sync invoices to Cloud Firestore)
9292
- `invoice.payment_action_required` (optional, will sync invoices to Cloud Firestore)
9393

94-
1. Using the Firebase console or Firebase CLI, [reconfigure](https://console.firebase.google.com/project/${param:PROJECT_ID}/extensions/instances/${param:EXT_INSTANCE_ID}?tab=config) your extension with your webhook’s signing secret (such as, `whsec_12345678`). Enter the value in the parameter called `Stripe webhook secret`. Make sure you scroll back to the top of the Extension configuration page and click 'Save' otherwise your Stripe webhook secret will not be saved.
94+
2. Using the Firebase console or Firebase CLI, [reconfigure](https://console.firebase.google.com/project/${param:PROJECT_ID}/extensions/instances/${param:EXT_INSTANCE_ID}?tab=config) your extension with your webhook’s signing secret (such as, `whsec_12345678`). Enter the value in the parameter called `Stripe webhook secret`. Make sure you scroll back to the top of the Extension configuration page and click 'Save' otherwise your Stripe webhook secret will not be saved.
9595

9696
#### Create product and pricing information (only required when building on the web platform)
9797

@@ -155,12 +155,12 @@ async function getCustomClaimRole() {
155155
#### Configure the Stripe customer portal (only used for subscriptions)
156156

157157
1. Set your custom branding in the [settings](https://dashboard.stripe.com/settings/branding).
158-
1. Configure the Customer Portal [settings](https://dashboard.stripe.com/test/settings/billing/portal).
159-
1. Toggle on "Allow customers to update their payment methods".
160-
1. Toggle on "Allow customers to update subscriptions".
161-
1. Toggle on "Allow customers to cancel subscriptions".
162-
1. Add the products and prices that you want to allow customer to switch between.
163-
1. Set up the required business information and links.
158+
2. Configure the Customer Portal [settings](https://dashboard.stripe.com/test/settings/billing/portal).
159+
3. Toggle on "Allow customers to update their payment methods".
160+
4. Toggle on "Allow customers to update subscriptions".
161+
5. Toggle on "Allow customers to cancel subscriptions".
162+
6. Add the products and prices that you want to allow customer to switch between.
163+
7. Set up the required business information and links.
164164

165165
### Using the extension
166166

0 commit comments

Comments
 (0)