dolibarr/htdocs/stripe
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
..
admin Merge branch '23.0' of git@github.com:Dolibarr/dolibarr.git into develop 2026-04-30 14:57:57 +02:00
ajax add baseline exclude for phpstan (#31632) 2024-11-04 23:53:20 +01:00
class fix(stripe): use automatic_payment_methods when STRIPE_USE_INTENT_WITH_AUTOMATIC_CONFIRMATION=2 (#38578) 2026-06-09 03:22:39 +02:00
lib Clean code 2025-11-18 12:03:23 +01:00
charge.php Qual: Fix PHPStan notices (#38064) 2026-05-11 01:26:15 +02:00
config.php Add doc comment, and add field date_reception in commande_fournisseur 2025-08-17 01:45:34 +02:00
payout.php fix phpstan errors blocking action baseline (#37189) 2026-02-11 00:52:15 +01:00
transaction.php fix phpstan errors blocking action baseline (#37189) 2026-02-11 00:52:15 +01:00