You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: firestore-stripe-invoices/POSTINSTALL.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,9 +11,9 @@ To test out the extension:
11
11
12
12
1. Go to your [Cloud Firestore dashboard](https://console.firebase.google.com/project/${param:PROJECT_ID}/firestore/data) in the Firebase console.
13
13
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}`
15
15
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:
17
17
18
18
```js
19
19
{
@@ -32,7 +32,7 @@ To test out the extension:
32
32
}
33
33
```
34
34
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.
36
36
37
37
**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.
38
38
@@ -204,11 +204,11 @@ Here's how to set up the webhook and configure your extension to use it:
204
204
205
205
1. Go to the [Stripe dashboard.](https://dashboard.stripe.com/webhooks)
206
206
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}`
208
208
209
-
1. Select all the invoice events.
209
+
3. Select all the invoice events.
210
210
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`.
212
212
213
213
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.
Copy file name to clipboardExpand all lines: firestore-stripe-payments/POSTINSTALL.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,9 +64,9 @@ Here's how to set up the webhook and configure your extension to use it:
64
64
65
65
1. Go to the [Stripe dashboard.](https://dashboard.stripe.com/webhooks)
66
66
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}`
68
68
69
-
1. Select the following events:
69
+
3. Select the following events:
70
70
71
71
-`product.created`
72
72
-`product.updated`
@@ -91,7 +91,7 @@ Here's how to set up the webhook and configure your extension to use it:
91
91
-`invoice.marked_uncollectible` (optional, will sync invoices to Cloud Firestore)
92
92
-`invoice.payment_action_required` (optional, will sync invoices to Cloud Firestore)
93
93
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.
95
95
96
96
#### Create product and pricing information (only required when building on the web platform)
97
97
@@ -155,12 +155,12 @@ async function getCustomClaimRole() {
155
155
#### Configure the Stripe customer portal (only used for subscriptions)
156
156
157
157
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.
0 commit comments