Enables automatic payment methods by default for PaymentIntents and SetupIntentsBreaking changes
What’s new![](https://b.stripecdn.com/docs-statics-srv/assets/fcc3a1c24df6fcffface6110ca4963de.svg)
PaymentIntents and SetupIntents now have automatic_
enabled by default, which allows you to configure payment method settings from the Dashboard. The previous default was to accept only card payments when both payment_
and automatic_
were not specified. For more information, see the upgrade guide.
- When confirming a PaymentIntent, you’re now required to provide a
return_
, unlessurl off_
.session=true - When confirming a PaymentIntent, you can’t use
error_
. Useon_ requires_ action payment_
withmethod_ types error_
if you want to fail payment attempts when PaymentIntents transition intoon_ requires_ action requires_
.action - When confirming a SetupIntent, you’re now required to provide a
return_
.url - You can bypass the
return_
requirement usingurl automatic_
, this will automatically filter payment methods that require redirect even if they’re enabled in the Dashboard.payment_ methods[allow_ redirects]=never
Impact![](https://b.stripecdn.com/docs-statics-srv/assets/fcc3a1c24df6fcffface6110ca4963de.svg)
PaymentIntents and SetupIntents now use automatic payment methods by default, allowing for configuration through the Stripe Dashboard.