* 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
Lot/serial numbers can legitimately contain a '/'. GETPOST sanitizing types
aZ09 / aZ09comma wipe any value containing such a char, so the lot was lost on
stock correction/transfer/add and could not be found by barcode scan in
shipment and inventory. Use alphanohtml instead, which keeps '/' while still
stripping HTML/quotes; the value is escaped before any SQL use.
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
* Revise copyright details and clean up comments
Updated copyright information and removed commented example code.
* Remove space
---------
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
Co-authored-by: Alexandre SPANGARO <aspangaro.dolibarr@gmail.com>
When refreshing an expired OAuth2 access token (XOAUTH2 auth mode),
the default HTTP client used by \OAuth\ServiceFactory may not work
in environments where stream-based HTTP calls are restricted (e.g.
Docker containers with allow_url_fopen disabled or limited outbound
stream access).
Explicitly set CurlClient as the HTTP client for the ServiceFactory
in both the SMTPS and SwiftMailer send paths so that token refresh
requests reliably use cURL, which is available and functional in
standard PHP environments.
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
When MEMBER_NEWFORM_FORCECOUNTRYCODE is set to a country code string (e.g. 'ET'),
getDolGlobalInt() converts it to 0 and silently ignores the fallback GETPOSTINT('country_id'),
causing a "Country is required" validation error even though the constant is defined.
Also fix the view section which used getCountry() mode '2' (returns ISO code string)
instead of mode '3' (returns rowid integer), making select_country() unable to pre-select
the forced country.
Both cases now use getCountry(..., '3', ...) which correctly resolves both ISO codes
and numeric IDs to a rowid.
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>