#adelvalle-price-free
1 messages ยท Page 1 of 1 (latest)
@versed sigil what do you call "the free days" do you mean trial_period_days from the Plan API?
trial_period_days yes
but when i created the prices, there is an option where you can set th trial_period_days
correct it's not something we support on the Price API. It's been deprecated for 3+ years at this point
it works, it's just not something we show in that API
but it doesn't work because when i create the subscription, it does not include this value
and how can i know if any price has a trial_period_days?
that's the thing, that's why we completely deprecated this
we recommend to never do that and instead pass trial_period_days yourself on Subscription creation
so ignore what you have in the Dashboard, and change your code to explicitly set the trial duration you need
Ok
but
depends on the product you have selected, how you know if you have trial days or not?
you don't, again you store all of this yourself in your own systems/database, that's what we recommend to do today
OK OK!! thank you!!! ๐
sure, sorry for the hassle, definitely confusing that we keep asking for this in the Dashboard ๐ฆ
OKAY!! Thanks for the help
and another question
so, if i set the trialEnd in SubscriptionCreateParams
por example 90 days
90days to milisecons?
And have I set also setBillingCycleAnchor ??
both are necessary?