Breaking changes
Subscriptions now default to not defining their trial periods depending on a planBreaking changes
What’s new
When creating or updating subscriptions, the default value of trial_ is now false, meaning that a subscription no longer automatically inherits a plan’s trial_. If a subscription is already trialing, switching to a new plan without specifying trial_ maintains the trial. We recommend setting an explicit trial per subscription instead of setting trials on plans.
Impact
This change alters the default behavior for subscription trials, no longer automatically inheriting trial periods from plans. You must now explicitly set trial_ to true if they want to use a plan’s trial period, or set trial periods directly on subscriptions.
Upgrade
- View your current API version in Workbench.
- If you use an SDK, upgrade to the corresponding SDK version for this API version.
- If you don’t use an SDK, update your API requests to include
Stripe-Version: 2018-05-21
- If you don’t use an SDK, update your API requests to include
- Upgrade the API version used for webhook endpoints.
- Test your integration against the new version.
- If you use Connect, test your Connect integration.
- In Workbench, perform the upgrade. You can roll back the version for 72 hours.
Learn more about Stripe API upgrades.