#benoit-subscription-trial

1 messages · Page 1 of 1 (latest)

stable copperBOT
ivory plinth
#

Hi 👋

Can you share the API request ID for the request that creates this Subscription?

stable copperBOT
dense veldt
#

Hi !

#

Seems to be that one : req_GYtxqodddCyHmJ

ivory plinth
simple blade
#

benoit-subscription-trial

dense veldt
#

I never had to specify the trial period, as i have defined it when i created the plan (long time ago). It worked before i update my code to use the Stripe Payment Element form

simple blade
#

specifically this change:

When creating or updating subscriptions, the default value of trial_from_plan is now false, meaning that a subscription will not automatically inherit a plan’s trial_period_days. If a subscription is already trialing, switching to a new plan without specifying trial_from_plan will maintain the trial. We recommend setting an explicit trial per subscription instead of setting trials on plans.

#

My guess is that you recently upgraded your integration to use the most recent version of stripe-node which is pinned to the latest API version by default which would include this change from 5 years ago.

dense veldt
#

Indeed, i upgraded from v6 to v12.10.0

simple blade
#

Looking at your requests, you were already using that version back in June so it's not recent at least

#

But yeah when you switched you missed that the latest version is pinned to the latest API version and I assume you used to have a really old API version

#

That would apply to all your API requests which also would change the shape/behaviour

dense veldt
#

i was on the NPM Stripe v6 until this May

simple blade
dense veldt
#

Yes, i jumped to v12.10.0 this May

#

(But i never tried to subscribed to my old "trialed" plans, that's why i didn"t see my problem)

#

Could you tell we why the trial period is still possible to set via the Dashboard, if this trial period cannot be used by default when i subscribe to the plan via the API ?

simple blade
#

Mostly for old compatibility for old platforms/code that relies on this.

dense veldt
#

Ok, like mine until some month ago

#

Ok, i understand, i will do what must be done, thank you very much for your answers !

simple blade
#

Sure thing, sorry this was confusing, it's tough when you just many major versions at once without realizing the impact