#hiroki-trial period

1 messages · Page 1 of 1 (latest)

bleak cosmos
#

Hi, how are you creating your subscriptions? Through the dashboard or using the API?

grim slate
#

@bleak cosmos I'm using API since I have to configure some stuff such as proration_behavior.

bleak cosmos
#

in that case you would need to implement the logic from your end to handle that case and use the trial_period_days to give access to trial period to the first customer

grim slate
#

@bleak cosmos
Let me clarify.

Customer A will subscribe to the Price, which starts the trial_period_days(or other variations). At this point, Customer A has Subscription of quantity 1, which is in trialing status.

Then Customer A adds the quantity. At this point, in my understanding, Customer A has a Subscription of quantity 2, both in status according to the payment result.

bleak cosmos
#

how are they adding the quantity?

grim slate
#

@bleak cosmos Customers add/remove quantity through our UI, by which our system send API(s) requests to Stripe.

#

What I want to know is whether Stripe natively supports this flow where some of the quantities are "pardoned"(?) for a preset period of time.

#

Or do we have to abandon Stripe's trial flow and build our own logic, where Stripe thinks the Customer has Subscription of n-1 until the trial period ends and we manually increase the quantity?

bleak cosmos
#

Yes we don't have support out-of-the-box for your flow but using the API you could easily create a subscription with multiple items (for the same price) having trial periods different, instead of increasing the quantity of the same product

grim slate
#

@bleak cosmos
That never occured to me!
But it says when I try to add a Price, trial period per Price is no longer recommended.

pliant warren
#

@grim slate Can you share what you're referring to?

grim slate
#

@pliant warren This is the modal that shows up when I click "Add another Price" on Product detail page.

When I hover the "legacy" info next to "Add free trial", it shows a tooltip that says "Setting a default trial period per Price is no longer recommended and is incompatible Checkout and quotes. Free trials can be set per Subscription or quote instead".

pliant warren
#

Hmm, it does work with Checkout (it's just not encouraged). You'd need to pass this parameter when creating your Checkout Session: subscription_data.trial_from_plan: true

grim slate
#

What I'm concerned is that it says no longer recommended, which in my experience, is equivalent to "you could, but we're not responsible for the repercussion that it might cause".

If it works it's fine. We're not using Checkout or quote, at least explicitly (I don't completely understand how it's processed on Stripe though) We're using setup intent and then starting the preset price subscription "off-session", so we can do any APi parameters as long as it works, even a little hacky workarounds if that's what it takes.

In our case,

  1. Customer record is created
  2. SetupIntnt records the payment method (on-session)
  3. later behind the scene (with explict conscent from customer), we create Subscription that has Price w/ trial period
  4. From then on, Customer adds the quantity, we actually add a different Price that doesn't have trial period

Does this sound decent?

pliant warren
#

What I'm concerned is that it says no longer recommended, which in my experience, is equivalent to "you could, but we're not responsible for the repercussion that it might cause".
Yep, as stated it is considered deprecated but no plans to remove it

#

Does this sound decent?
Yep, that sounds like a pretty standard flow!

grim slate
#

@pliant warren
Thank you!
Then we're doing it like this.

pliant warren
#

Perfect!