Breaking changes
Default customer creation in Checkout Session payment mode changed to if_required Breaking changes
What’s new
When creating a Checkout Session and specifying the mode as payment, the default value of customer_creation has changed from always to if_required.
Impact
This change gives you more flexibility in how customers are created. Instead of always creating a customer, the customer is only created if it’s required, reducing the unnecessary creation of a customer.
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: 2022-08-01
- 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.
