Breaking changes
Customers now have a source field that accepts a source or card, and updates related event types Breaking changes
What’s new
Replaces the cards and default_card properties on the Customer object with sources and default_source. Both properties can represent Card objects, as before, and Source objects with an object value of card. Older API versions return both the new and old properties on Customer. Replaces the customer.card.* and customer.bank_account.* events with customer.source.*.
Impact
Lets you work with a more flexible and comprehensive representation of payment methods for customers
Changes
| Parameters | Change | Resources or endpoints |
|---|---|---|
| default_source sources | Added | Customer |
| cards default_card | Removed | Customer |
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: 2015-02-18
- 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.
