#Emanuel Unge
1 messages · Page 1 of 1 (latest)
Hi,
Are you looking for integrating this using FireBase:
https://stripe.com/docs/payments/checkout/free-trials
I am using your extention
ext-firestore-stripe-payments-createCheckoutSession
trial_period_days doesn't seem to be used anywhere
I am not sure if it's supported or not
That parameter is not supported via that extension. You'd use trial_from_plan (https://github.com/stripe/stripe-firebase-extensions/blob/next/firestore-stripe-payments/functions/src/index.ts#L134) instead
Means you need to explicitly set the trial value on the associated price via the Dashboard:
I saw that option, but since it said Legacy i figured it might get deprecated
Any plans to change this to the new system?
It may, but there's no plans and nothing like that would be removed without an API version
No, because the client-side nature of the extension opens up trial abuse vectors (e.g. could create a Checkout Session with a 999 day trial)
Ok, so I need to setup the free trial for each price (i have many currencies) and then call the trial from plan = true when creating the checkout?
There's various issues on the repo about this
is there a way to update prices using API so I can automate this?
A quick suggestion could be a metadata document in firestore or something that holds additional information such as trial
Pretty sure that's a Dashboard only field