Breaking changes
Invoice payment failures now return a card_error when a charge is declined Breaking changes
What’s new
Updates invoice payment attempts to return a card_error when the charge is declined. This aligns /v1/invoices/{the related setting}/pay with /v1/charges.
Impact
This change aligns the error handling of invoice payment attempts with that of direct charges, returning a card_error when a charge is declined. You can now expect consistent error responses across different payment endpoints, improving error handling and debugging processes.
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: 2017-12-14
- 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.
