Breaking changes
Adds specific error codes for failed Klarna paymentsBreaking changes
What’s new
Adds more specific error codes to the PaymentIntent API for when a Klarna payment fails:
payment_method_ customer_ decline payment_method_ not_ available payment_method_ provider_ decline payment_intent_ payment_ attempt_ expired
Impact
Adding specific error codes for when a Klarna payment fails gives you more detailed information about why the payment failed, enabling better 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: 2023-08-16
- 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.