FR: Create checkout session with trial from the Prices API
See original GitHub issueFeature request
firestore-stripe-subscriptions
Is your feature request related to a problem? Please describe.
trial_from_plan
has been deprecated and doesn’t work anymore with Checkout. There is no way to create a checkout session with a trial.
Describe the solution you’d like
Allow to set subscription_data.trial_end
or subscription_data.trial_period_days
in the checkout_session document. Maybe set the whole subscription_data
object
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Create a Checkout Session – curl - Stripe API reference
A list of items the customer is purchasing. Use this parameter to pass one-time or recurring Prices. For payment mode, there is a...
Read more >trial period in Checkout session in Stripe - Stack Overflow
You've got the right idea with trial_end , it just needs to be a child parameter under subscription_data .
Read more >Try before you buy: adding a trial period to subscriptions
What this code does is create a Checkout session for a subscription, for a single product referenced by its price ID.
Read more >SessionCreateParams (stripe-java 22.3.0 API)
Configure whether a Checkout Session creates a Customer during Session confirmation. ... Generate a post-purchase Invoice for one-time payments.
Read more >Set up future payments with Checkout - YouTube
... payment details using Checkout's setup mode, which stores the payment method on file for future payments using the Setup Intents API.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Is there a way to add a trial to the subscription checkout session? Bumping this, as I’m not sure I see a way to do this in
createCheckoutSession
.While it has been marked as legacy, it still works as expected
subscription_data
should not be set via the client-side as it could be modified by a malicious party.Going to leave this open as we’ll have to find a solution for it eventually.