#Prince

1 messages · Page 1 of 1 (latest)

mental tigerBOT
astral inlet
#

hi

sleek burrow
#

Hi! Not sure I follow. Trials aren't set on a price object

astral inlet
#

i am using this below code to get trial days from current price object

#

price.getRecurring().getTrialPeriodDays();

astral inlet
sleek burrow
astral inlet
#

but does stripe has changed the price object, because i have used the above code before and that gives me the trial days but now i am getting null. could you please explain more on this?

sleek burrow
astral inlet
#

no i have used this before, it's working fine but now i am getting error

#

check this subscription id -> sub_1M0PtDKmlDsDVSTggiQCyiB2

#

it has a trial days under price, if you check his subscription object

sleek burrow
#

Ah, looks like trial_period_days on prices is no longer a recommended approach. Trials should be added to subscriptions instead

astral inlet
#

so now the only solution is to use trial_start and trial_end?

sleek burrow