@flopay/react 1.4.21 → 1.4.23
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 +7 -2
- package/dist/index.cjs +8 -8
- package/dist/index.d.cts +10 -3
- package/dist/index.d.ts +10 -3
- package/dist/index.mjs +8 -8
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -123,6 +123,11 @@ count as success while pending. Completion fires only after verification says
|
|
|
123
123
|
the card is usable; decline, validation, retryable technical failure, and
|
|
124
124
|
unmount cancellation remain separate outcomes.
|
|
125
125
|
|
|
126
|
+
Submission feedback matches checkout: the same processing overlay covers the
|
|
127
|
+
form from the buyer's submit ("SAVING CARD...") and flips to "CARD SAVED"
|
|
128
|
+
(held briefly before `onComplete`) or "CARD NOT SAVED" with the decline
|
|
129
|
+
message (cleared automatically so the buyer can retry in place).
|
|
130
|
+
|
|
126
131
|
Saved-card listing, setup-session creation, and deletion remain authenticated
|
|
127
132
|
merchant REST calls. Replacement is composition: complete setup for the new
|
|
128
133
|
card, then ask your server to delete the old card. `FloPayCardSetup` deliberately
|
|
@@ -284,7 +289,7 @@ legacy props will be removed in `2.0`.
|
|
|
284
289
|
|
|
285
290
|
#### Theming
|
|
286
291
|
|
|
287
|
-
`FloPayCheckout`, `FloPayAutomaticPaymentButton`, and `
|
|
292
|
+
`FloPayCheckout`, `FloPayAutomaticPaymentButton`, `SplitCardForm`, and `FloPayCardSetup` accept a single `theme` prop that maps to a coherent `{appearance, buttonsLayout}` bundle in `@flopay/shared`'s `THEMES` map. (`FloPayCardSetup` styles only the hosted vault widget — there are no surrounding Stripe Elements on that surface — and unlike the checkout components it defaults to `'modern-light'` rather than `'classic'`.) One value styles non-card Stripe Elements, the React-rendered wrapper and AVS inputs, the hosted vault widget, and — for `FloPayAutomaticPaymentButton` — the fallback modal that opens when a saved-payment charge can't complete silently.
|
|
288
293
|
|
|
289
294
|
| `theme` | Aesthetic |
|
|
290
295
|
|---|---|
|
|
@@ -831,7 +836,7 @@ function PaymentStatus() {
|
|
|
831
836
|
| `nonce` | `string` | Required session-bound read/capture token. |
|
|
832
837
|
| `billingApiUrl` | `string?` | Billing API base URL; defaults through normal FloPay environment resolution. |
|
|
833
838
|
| `telemetry` | `boolean?` | Privacy-safe operational telemetry; set `false` to opt out. |
|
|
834
|
-
| `theme` | `VaultCardThemeColors?` |
|
|
839
|
+
| `theme` | `ThemeId \| VaultCardThemeColors?` | High-level theme id (same values as `FloPayCheckout`, resolved through the same bundle) or raw hosted-widget colors. Defaults to `'modern-light'`; `'classic'` keeps the historic FloPay look. |
|
|
835
840
|
| `containerStyle` | `React.CSSProperties?` | Inline styles for the hosted-widget container. |
|
|
836
841
|
| `loading` | `React.ReactNode?` | Content shown while the session and hosted widget load. |
|
|
837
842
|
| `onReady` | `() => void` | Hosted widget is mounted and accepting input. |
|