Breaking changes
Removes the charges attribute from the PaymentIntent objectBreaking changes
What’s new
Removes the charges property on the PaymentIntent object. Use the latest_ property instead.
Impact
Lets you access the most recent charge associated with a PaymentIntent using latest_, instead of relying on the now-removed charges attribute. This simplifies the way you retrieve charge information for a PaymentIntent.
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.