Breaking changes
Failed invoice payments now return an HTTP errorBreaking changes
What’s new
Updates the Pay invoice call to return an error when the charge isn’t successful. Previously, the API would return a 200 status and set the invoice’s paid property to false.
Impact
The Pay invoice call now returns an error for unsuccessful charges, improving error handling and consistency.
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: 2013-02-11
- 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.