Comments (5)
Great, I'm planning to add this to the next release early next week.
from stripe-firebase-extensions.
Thanks, @oshima819, for outlining your use case.
Would setting trial_from_plan:false
work for you:
const docRef = await db
.collection("${param:CUSTOMERS_COLLECTION}")
.doc(currentUser)
.collection("checkout_sessions")
.add({
price: "price_1GqIC8HYgolSBA35zoTTN2Zl",
trial_from_plan: false,
success_url: window.location.origin,
cancel_url: window.location.origin,
});
This way you can check if they have a previous subscription, and if so you set trial_from_plan:false
. Would that dynamic work for you?
Note: this doesn't work today, but I'd be happy to make it possible if that's a suitable solution for you.
from stripe-firebase-extensions.
Yes, that's fine.
from stripe-firebase-extensions.
Thanks
from stripe-firebase-extensions.
This has been added to the next release which should go live either Wednesday or Thursday PT time.
from stripe-firebase-extensions.
Related Issues (20)
- Interacting with subscriptions in firestore-stripe-web-sdk
- Error installing HOT 1
- Extension requires deprecated feature of Stripe to support free trials for subscriptions HOT 4
- Embedded Payment Form
- Error: No such customer: 'cus_....' HOT 1
- extension double-charging customers for old invoices?!
- getStripePayments -> ERROR FirebaseError: Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore HOT 5
- Firestore Stripe Payments Does Not Collect Address as Expected
- invoice.upcoming failed: Value for argument "documentPath" is not a valid resource path. Path must be a non-empty string. HOT 4
- Please allow a way to update or re-sync firestore customers collection customer object with stripe dashboard
- Starting point for a web app to use the stripe / firebase extension
- Metadata missing with line item payments HOT 3
- Cannot read properties of null (reading 'client_secret')
- Upgrade node version >= 18 HOT 1
- Add support for pausing a subscription when trial ends without a payment method
- migrate to @caiyongji/firestore-stripe-payments
- Customer Phone keeps getting deleted after subscription dele
- Feat(firestore-stripe-payments): Upgrade Api to 8.16.2023
- Automatic tax is not being set to agree with user's actual settings
- Price sub collection is really a good practice ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stripe-firebase-extensions.