Skip to content

Commit 2c99a55

Browse files
docs(firestore-stripe-payments): Use dynamic parameter reference in README (#336)
s/.collection('customers')/.collection('${param:CUSTOMERS_COLLECTION}')/g Co-authored-by: lemuel-stripe <[email protected]>
1 parent 2130a61 commit 2c99a55

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

firestore-stripe-payments/POSTINSTALL.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ You can set a [promotion code](https://stripe.com/docs/billing/subscriptions/dis
305305

306306
```js
307307
const docRef = await db
308-
.collection("customers")
308+
.collection('${param:CUSTOMERS_COLLECTION}')
309309
.doc(currentUser.uid)
310310
.collection("checkout_sessions")
311311
.add({
@@ -326,7 +326,7 @@ Stripe Tax lets you calculate and collect sales tax, VAT, and GST. Know where to
326326

327327
```js
328328
const docRef = await db
329-
.collection("customers")
329+
.collection('${param:CUSTOMERS_COLLECTION}')
330330
.doc(currentUser.uid)
331331
.collection("checkout_sessions")
332332
.add({
@@ -344,7 +344,7 @@ Stripe Checkout supports applying the correct tax rate for customers in US, GB,
344344

345345
```js
346346
const docRef = await db
347-
.collection("customers")
347+
.collection('${param:CUSTOMERS_COLLECTION}')
348348
.doc(currentUser)
349349
.collection("checkout_sessions")
350350
.add({
@@ -385,7 +385,7 @@ Secondly, you need to add `collect_shipping_address: true` to the Checkout Sessi
385385

386386
```js
387387
const docRef = await db
388-
.collection("customers")
388+
.collection('${param:CUSTOMERS_COLLECTION}')
389389
.doc(currentUser.uid)
390390
.collection("checkout_sessions")
391391
.add({
@@ -421,7 +421,7 @@ In addition to recurring prices, you can add one-time prices. These will only be
421421

422422
```js
423423
const docRef = await db
424-
.collection('customers')
424+
.collection('${param:CUSTOMERS_COLLECTION}')
425425
.doc(currentUser)
426426
.collection('checkout_sessions')
427427
.add({

0 commit comments

Comments
 (0)