Removes deprecated Payment Intents, Setup Intents, and Sources methods from Stripe.js
Removes several deprecated methods from Stripe.js in favor of equivalent methods with clearer naming and improved functionality. The following methods have been removed and will throw an error if called:
Removes deprecated Payment Intents, Setup Intents, and Sources methods from Stripe.js: from its source to your code
docs.stripe.comquote checked
behaviour change
Your codeby hand
Nemotron fixes
In its own wordsmatches the page ✓
| [Removes deprecated Payment Intents, Setup Intents, and Sources methods from Stripe.js](https://docs.stripe.com/changelog/dahlia/2026-03-25/remove-legacy-stripejs-methods.md) | Payments | Breaking | stripejs |
Replace confirmSetupIntent with the more explicit confirmCardSetup.
javascript
// Before (deprecated)
stripe.confirmSetupIntent(clientSecret, {
payment_method: {
card: cardElement,
},
});
// After
stripe.confirmCardSetup(clientSecret, {
payment_method: {
card: cardElement,
},
});
### Sources API methods
If your code uses methods like createSource and retrieveSource from the legacy Sources API, migrate your integration to use the Payment Methods API instead.
The Payment Methods API provides better support for payment methods, reusability, and compliance requirements.