Adds network advice and decline codes
What’s new
When a charge is declined, two new error codes are now part of the response. The network_decline_code provides more information from the card network about why the charge was declined. The network_advice_code provides more information about how to handle the decline.
Changes
| Parameters | Change | Resources or endpoints |
|---|---|---|
| network_advice_code network_decline_code | Added | Charge. outcome Invoice. last_finalization_error PaymentIntent. last_payment_error + 3 more SetupAttempt. setup_error SetupIntent. last_setup_error StripeError |
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: 2024-12-18. acacia
- 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.
