Breaking changes
Adds new decline codes to the PaymentIntent and PaymentMethod APIsBreaking changes
What’s new
Adds the following decline codes to the PaymentIntent and PaymentMethod APIs:
payment_intent_ payment_ attempt_ expired payment_method_ customer_ decline payment_method_ provider_ timeout payment_method_ not_ available payment_method_ provider_ decline
Impact
Lets you accurately identify additional reasons for PaymentIntent or PaymentMethod declines, improving error handling.
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-11-15
- 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.
Learn more about Stripe API upgrades.