@flopay/react 1.9.21 → 1.9.22

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
@@ -626,6 +626,13 @@ Checkout errors reach `onError` (and the `error` render prop) as `FloPayError` v
626
626
  | `stored_payment_method_unsupported` | `api_error` | The backend-selected saved method cannot be used for this transaction. Show the supplied buyer-safe instruction and let the buyer choose another method. |
627
627
  | `InvalidPaymentProcessResponse` | `api_error` | Saved-payment processing returned a response the SDK could not use. |
628
628
 
629
+ Every `external_payment_method_failed` keeps that code and the existing buyer
630
+ message. Its optional `details` object contains only bounded support fields:
631
+ `providerCode`, `popupBlocked`, `inAppBrowser`, `appFamily`, `popupCapability`,
632
+ and optional `presentationMode`. `providerCode` is sanitized and falls back to
633
+ `external_payment_method_failed`; raw provider messages, URLs, user agents,
634
+ credentials, payment identifiers, and customer data are never exposed.
635
+
629
636
  A `validation_error` is also reported when both `showStripe` and `showPayPal` are false with no PayPal gateway, or when a session advertises no supported gateway. When saving the AVS billing address is rejected with a `4xx`, `onError` receives the parsed billing API error while the message shows inline; the buyer corrects it for the next attempt.
630
637
 
631
638
  `FloPayCardSetup` reports failures to `onError` as `FloPayCardSetupError`, which adds `retryable`. Network, rate-limit, `5xx`, card-form timeout, and unexpected failures are retryable; validation failures are not.