Breaking changes
Renames the allowed_source_types field for sources to payment_method_types Breaking changes
What’s new
Renames allowed_source_types to payment_method_types.
Impact
Update your code to use the new parameter name when specifying acceptable payment methods for a transaction. This modification provides more consistent terminology aligned with the broader concept of payment methods.
Changes
| Parameters | Change | Resources or endpoints |
|---|---|---|
| allowed_source_types | Removed | Checkout. Session#create PaymentIntent PaymentIntent#confirm + 2 more PaymentIntent#create PaymentIntent#update |
| payment_method_types | Added | PaymentIntent |
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: 2019-02-11
- 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.
