Skip to content

Commit 1070319

Browse files
Deploying 0.3.4 for transfer to Invertase
1 parent 7254e78 commit 1070319

File tree

7 files changed

+17019
-16817
lines changed

7 files changed

+17019
-16817
lines changed

firestore-stripe-invoices/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## Version 0.2.2 - 2023-08-14
2+
This extension has been formally transferred to Invertase. See the updated README for more details.
3+
14
## Version 0.2.1 - 2022-08-24
25
[chore] Added `package-lock.json` to version control to prevent installation issues. [#426]
36

firestore-stripe-invoices/extension.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414

1515
name: firestore-stripe-invoices
16-
version: 0.2.1
16+
version: 0.2.2
1717
specVersion: v1beta
1818

1919
displayName: Send Invoices using Stripe

firestore-stripe-invoices/functions/package-lock.json

Lines changed: 180 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

firestore-stripe-payments/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 0.3.4 - 2023-08-14
2+
This extension has been formally transferred to Invertase. See the updated README for more details.
3+
14
## Version 0.3.3 - 2023-03-20
25
[fix] Address issue where `insertInvoiceRecord` function fails. [#511]
36

firestore-stripe-payments/README.md

Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Web & Mobile Payments with Stripe
1+
# Run Payments with Stripe
22

33
**Author**: Stripe (**[https://stripe.com](https://stripe.com)**)
44

5-
**Description**: Controls access to paid content by syncing your subscriptions with Firebase Authentication.
5+
**Description**: Controls access to paid content by syncing your one-time and recurring payments with Firebase Authentication.
66

77

88

@@ -27,15 +27,25 @@ The design for Stripe Checkout and the customer portal can be customized in your
2727

2828
#### Recommended usage
2929

30-
If you're building on the web platform, you can use this extension for any of your payment use cases.
30+
If you're building on the web platform, you can use this extension for any of your payment use cases.
31+
32+
If you're developing native mobile applications and you're selling digital products or services within your app, (e.g. subscriptions, in-game currencies, game levels, access to premium content, or unlocking a full version), you must use the app store's in-app purchase APIs. See [Apple's](https://developer.apple.com/app-store/review/guidelines/#payments) and [Google's](https://support.google.com/googleplay/android-developer/answer/9858738?hl=en&ref_topic=9857752) guidelines for more information.
33+
34+
For all other scenarios you can use the [stripe-android](https://github.com/stripe/stripe-android), [stripe-ios](https://github.com/stripe/stripe-ios), [stripe-react-native](https://github.com/stripe/stripe-react-native), or [flutter_stripe](https://github.com/flutter-stripe/flutter_stripe) SDKs.
35+
36+
#### Client SDK
37+
3138
You can use the [`@stripe/firestore-stripe-payments`](https://github.com/stripe/stripe-firebase-extensions/blob/next/firestore-stripe-web-sdk/README.md)
3239
JavaScript package to easily access this extension from web clients. This client SDK provides
3340
TypeScript type definitions and high-level convenience APIs for most common operations client
3441
applications would want to implement using the extension.
3542

36-
If you're developing native mobile applications and you're selling digital products or services within your app, (e.g. subscriptions, in-game currencies, game levels, access to premium content, or unlocking a full version), you must use the app store's in-app purchase APIs. See [Apple's](https://developer.apple.com/app-store/review/guidelines/#payments) and [Google's](https://support.google.com/googleplay/android-developer/answer/9858738?hl=en&ref_topic=9857752) guidelines for more information.
43+
Use a package manager like NPM to install the above package, and use it in conjunction with
44+
the Firebase Web SDK.
3745

38-
For all other scenarios you can use the [stripe-android](https://github.com/stripe/stripe-android), [stripe-ios](https://github.com/stripe/stripe-ios), [stripe-react-native](https://github.com/stripe/stripe-react-native), or [flutter_stripe](https://github.com/flutter-stripe/flutter_stripe) SDKs.
46+
### Events
47+
48+
This extension emits events, which allows you to listen to and run custom logic at different trigger points during the functioning of the extension. For example you can listen to events when a product has been added via the `product.created` event, or whenever a payment has succeeded through the `invoice.payment_succeeded` event.
3949

4050
#### Additional setup
4151

@@ -56,11 +66,13 @@ This extension uses the following Firebase services which may have associated ch
5666

5767
- Cloud Firestore
5868
- Cloud Functions
69+
- Cloud Secret Manager
5970
- Firebase Authentication
71+
- If you enable events [Eventarc fees apply](https://cloud.google.com/eventarc/pricing).
6072

6173
This extension also uses the following third-party services:
6274

63-
- Stripe Payments ([pricing information](https://stripe.com/pricing))
75+
- Stripe Payments ([pricing information](https://stripe.com/pricing))
6476
- Stripe Billing (when using subscriptions. [pricing information](https://stripe.com/pricing#billing-pricing))
6577

6678
You are responsible for any costs associated with your use of these services.
@@ -81,13 +93,17 @@ Starting August 17 2020, you will be billed a small amount (typically less than
8193

8294
* Customer details and subscriptions collection: What is the path to the Cloud Firestore collection where the extension should store Stripe customer details? This can be the location of an existing user collection, the extension will not overwrite your existing data but rather merge the Stripe data into your existing `uid` docs.
8395

96+
* Stripe configuration collection: What is the path to the Cloud Firestore collection where the extension should store Stripe configuration?
97+
8498
* Sync new users to Stripe customers and Cloud Firestore: Do you want to automatically sync new users to customer objects in Stripe? If set to 'Sync', the extension will create a new customer object in Stripe and add a new doc to the customer collection in Firestore when a new user signs up via Firebase Authentication. If set to 'Do not sync' (default), the extension will create the customer object "on the fly" with the first checkout session creation.
8599

86-
* Automatically delete Stripe customer objects: Do you want to automatically delete customer objects in Stripe? When a user is deleted in Firebase Authentication or in Cloud Firestore and set to 'Auto delete' the extension will delete their customer object in Stripe which will immediately cancel all subscriptions for the user.
100+
* Automatically delete Stripe customer objects: Do you want to automatically delete customer objects in Stripe? When a user is deleted in Firebase Authentication or in Cloud Firestore and set to 'Auto delete' the extension will delete their customer object in Stripe which will immediately cancel all subscriptions for the user.
101+
102+
* Stripe API key with restricted access: What is your Stripe API key? We recommend creating a new [restricted key](https://stripe.com/docs/keys#limit-access) with write access only for the "Customers", "Checkout Sessions" and "Customer portal" resources. And read-only access for the "Subscriptions" and "Prices" resources.
87103

88-
* Stripe API key with restricted access: What is your Stripe API key? We recommend creating a new [restricted key](https://stripe.com/docs/keys#limit-access) with write access only for the "Customers", "Checkout Sessions" and "Customer portal" resources. And read-only access for the "Subscriptions" and "Prices" resources.
104+
* Stripe webhook secret: This is your signing secret for a Stripe-registered webhook. This webhook can only be registered after installation. Leave this value untouched during installation, then follow the postinstall instructions for registering your webhook and configuring this value.
89105

90-
* Stripe webhook secret: This is your signing secret for a Stripe-registered webhook. This webhook can only be registered after installation. Leave this value untouched during installation, then follow the postinstall instructions for registering your webhook and configuring this value.
106+
* Minimum instances for createCheckoutSession function: Set the minimum number of function instances that should be always be available to create Checkout Sessions. This number can be adjusted to reduce cold starts and increase the responsiveness of Checkout Session creation requests. Suggested values are 0 or 1. Please note this setting will likely incur billing costss, see the [Firebase documentation](https://firebase.google.com/docs/functions/manage-functions#reduce_the_number_of_cold_starts) for more information.
91107

92108

93109

firestore-stripe-payments/extension.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414

1515
name: firestore-stripe-payments
16-
version: 0.3.3
16+
version: 0.3.4
1717
specVersion: v1beta
1818

1919
displayName: Run Payments with Stripe

0 commit comments

Comments
 (0)