#adelvalle-price-free

1 messages ยท Page 1 of 1 (latest)

prisma condor
#

@versed sigil what do you call "the free days" do you mean trial_period_days from the Plan API?

versed sigil
#

trial_period_days yes

#

but when i created the prices, there is an option where you can set th trial_period_days

prisma condor
#

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

versed sigil
#

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?

prisma condor
#

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

versed sigil
#

Ok

#

but

#

depends on the product you have selected, how you know if you have trial days or not?

prisma condor
#

you don't, again you store all of this yourself in your own systems/database, that's what we recommend to do today

versed sigil
#

OK OK!! thank you!!! ๐Ÿ™‚

prisma condor
#

sure, sorry for the hassle, definitely confusing that we keep asking for this in the Dashboard ๐Ÿ˜ฆ

versed sigil
#

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?

prisma condor
#

well trial_end is a unix timestamp so not in milliseconds

#

And billing_cycle_anchor serves a completely different purpose