@flopay/react 1.9.7 → 1.9.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -650,6 +650,12 @@ catalog. If the draft already contains an email, that claim also attaches the
650
650
  buyer. Otherwise it deliberately omits `accountData` and returns a complete,
651
651
  still-anonymous session (`buyerIdentified: false`).
652
652
 
653
+ The optional `createSession.timeoutMs` value is applied independently to both
654
+ phases (12 seconds each by default). The shell POST stops its deadline as soon
655
+ as the shell is usable, and the initial catalogue claim PATCH starts with a
656
+ fresh signal and the full budget. Opting out of detached creation keeps the
657
+ one-shot request's single total deadline.
658
+
653
659
  `FloPayCheckout` renders from the shell, so the hosted card form mounts and
654
660
  becomes interactive without waiting for either the claim or Stripe.js — Stripe
655
661
  wallets, APMs and PayPal load in parallel with the catalog claim and appear
@@ -1046,6 +1052,22 @@ Stripe and PayPal SDK load/runtime failures emit `provider_runtime`. Inline
1046
1052
  `validation_rejected` / `payment_declined` outcomes and never carry
1047
1053
  `failureCategory`.
1048
1054
 
1055
+ If Stripe.js cannot initialize after `FloPayCheckout` resolves a full session,
1056
+ the checkout no longer hides a provider-independent payment surface. A
1057
+ vault-capable session continues with the hosted card form, and Direct PayPal
1058
+ continues when the session advertises it; Stripe wallets and APMs are omitted.
1059
+ The degraded surface exposes one **Retry payment methods** action. It retries
1060
+ only provider initialization and never repeats session read/create/claim,
1061
+ automatic checkout, intent creation, or payment processing. A failed retry is
1062
+ not offered again during that mount, and cards or Direct PayPal remain usable.
1063
+
1064
+ When neither the hosted card form nor Direct PayPal can render, `onError` and
1065
+ the `error` render prop receive a `FloPayError` with code
1066
+ `CheckoutInitializationFailed`. The default error surface uses fixed buyer-safe
1067
+ copy. Raw provider messages are never placed in the DOM or merchant callback.
1068
+ Existing-session transport and malformed-response failures are separately
1069
+ reported at `session_read`; expected session outcomes remain non-alerting.
1070
+
1049
1071
  Direct PayPal script and unusable-namespace failures remain
1050
1072
  `PROVIDER_LOAD_FAILED` at `provider_load`. Once PayPal reports the button as
1051
1073
  eligible, a pre-ready `onError` or rejected `render()` is instead