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

cancel/resume/update subscriptions directly from firestore-stripe-payments #606

Open
Mullerr1995 opened this issue Feb 1, 2024 · 0 comments

Comments

@Mullerr1995
Copy link

Feature request

  • Extension name: firestore-stripe-payments

Is your feature request related to a problem? Please describe.

I'd like to be able to cancel/resume/update customer subscriptions directly from my web app, without redirecting the user to the Stripe Customer Portal.

Describe the solution you'd like

It'd be neat to have a cloud function (or multiple cloud functions) that come with the extension, and allow for the modification of customer subscriptions. The extension already stores the subscription IDs in firestore, which could be used as an input to the cloud function, in addition to any other arguments for the given API call. For reference, here is the Stripe API doc for the operations I'd like to use:
https://stripe.com/docs/api/subscriptions/update
https://stripe.com/docs/api/subscriptions/cancel
https://stripe.com/docs/api/subscriptions/resume

Describe alternatives you've considered

Currently, the only way I can see to make this happen, is to use the Stripe API directly, essentially circumventing the firestore-stripe-payments extension. The Stripe Customer Portal (which can currently be reached via the extension's firestore-stripe-payments-createPortalLink cloud function) offers limited functionality in this regard, and forces the user to leave the original app, which is not always desired.

If my problem can be resolved with the current functionalities of the extension, please point me in the right direction, and consider the feature request resolved.
Thank you for any assistance provided!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants