@flopay/react 1.18.0 → 1.19.0
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 +38 -0
- package/dist/flopay-checkout.d.ts +12 -2
- package/dist/index.cjs +9 -9
- package/dist/index.mjs +7 -7
- package/dist/split-card-form.d.ts +11 -1
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AVSFieldConfig, BeforeButtonClickEvent, CardFieldPlaceholders, CheckoutButtonMethod, CheckoutSession, DeclineEvent, FloPayPaymentCancelEvent, GatewayEnvironment, InlineSessionPatch, PaymentMethodLayoutRules, PaymentResult, PayPalProviderObjectType, TokenizedBody, WalletPresentation } from '@flopay/shared';
|
|
1
|
+
import type { AVSFieldConfig, BeforeButtonClickEvent, CardFieldLabels, CardFieldPlaceholders, CheckoutButtonMethod, CheckoutSession, DeclineEvent, FloPayPaymentCancelEvent, GatewayEnvironment, InlineSessionPatch, PaymentMethodLayoutRules, PaymentResult, PayPalProviderObjectType, TokenizedBody, WalletPresentation } from '@flopay/shared';
|
|
2
2
|
import { FloPayError } from '@flopay/shared';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { type MaybePromise } from './buyer-identity-fallback.js';
|
|
@@ -264,6 +264,16 @@ export interface SplitCardFormProps {
|
|
|
264
264
|
* Only applies on the vault card path; an older hosted form ignores it.
|
|
265
265
|
*/
|
|
266
266
|
showCardBrandIcons?: boolean;
|
|
267
|
+
/**
|
|
268
|
+
* Show the visible labels above the hosted card fields. Omitted sends nothing,
|
|
269
|
+
* so the form looks as it does today. Vault card path only.
|
|
270
|
+
*/
|
|
271
|
+
showCardFieldLabels?: boolean;
|
|
272
|
+
/**
|
|
273
|
+
* Replace the text of the labels (`number`, `expiry`, `cvv`, `name`). Only the
|
|
274
|
+
* fields you set are sent. Vault card path only.
|
|
275
|
+
*/
|
|
276
|
+
cardFieldLabels?: CardFieldLabels;
|
|
267
277
|
/**
|
|
268
278
|
* Placeholder text for the hosted card fields (`number`, `expiry`, `cvv`,
|
|
269
279
|
* `name`), each optional. Only the fields given are sent; the rest keep the
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flopay/react",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.19.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"dist"
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@flopay/js": "1.
|
|
40
|
-
"@flopay/shared": "1.
|
|
39
|
+
"@flopay/js": "1.19.0",
|
|
40
|
+
"@flopay/shared": "1.19.0",
|
|
41
41
|
"@paypal/paypal-js": "^11.3.0",
|
|
42
42
|
"@stripe/react-stripe-js": "^7.1.0",
|
|
43
43
|
"@stripe/stripe-js": "^10.3.0"
|