dolibarr/htdocs/stripe/class
dzprod befb024146
fix(stripe): use automatic_payment_methods when STRIPE_USE_INTENT_WITH_AUTOMATIC_CONFIRMATION=2 (#38578)
* fix(stripe): use automatic_payment_methods when STRIPE_USE_INTENT_WITH_AUTOMATIC_CONFIRMATION=2

When using PaymentElement (mode 2), building PaymentIntent with an explicit
payment_method_types list (card only) and setup_future_usage=on_session
prevents redirect-based methods (Klarna, Bancontact, iDEAL, etc.) from appearing.

Switch to automatic_payment_methods: {enabled: true} in this mode so Stripe
respects Dashboard payment method settings. Terminal mode is explicitly excluded
as it is incompatible with automatic methods.

No new constant introduced — behavior is derived from the existing
STRIPE_USE_INTENT_WITH_AUTOMATIC_CONFIRMATION setting.

* fix: replace spaces with tabs in terminal block

* fix: replace spaces with tabs in terminal block

* fix: replace spaces with tabs in terminal block

* fix: replace spaces with tabs in terminal block
2026-06-09 03:22:39 +02:00
..
actions_stripe.class.php CI 2026-03-15 11:52:13 +01:00
stripe.class.php fix(stripe): use automatic_payment_methods when STRIPE_USE_INTENT_WITH_AUTOMATIC_CONFIRMATION=2 (#38578) 2026-06-09 03:22:39 +02:00