question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

FR: Create checkout session with trial from the Prices API

See original GitHub issue

Feature 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:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
dijourcommented, Aug 23, 2021

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.

1reaction
thorsten-stripecommented, Nov 25, 2020

While it has been marked as legacy, it still works as expected image

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found