@flopay/react 1.20.7 → 1.20.8
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/dist/flopay-runtime-checkout.d.ts +8 -1
- package/dist/index.cjs +8 -8
- package/dist/index.mjs +6 -6
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CheckoutRuntimeEvent } from '@flopay/js';
|
|
1
|
+
import type { CheckoutRuntimeAutomaticPayment, CheckoutRuntimeEvent } from '@flopay/js';
|
|
2
2
|
import type { PaymentMethodLayoutRules } from '@flopay/shared';
|
|
3
3
|
import { FloPayError } from '@flopay/shared';
|
|
4
4
|
import type { ReactElement } from 'react';
|
|
@@ -26,6 +26,13 @@ export interface FloPayRuntimeCheckoutProps {
|
|
|
26
26
|
* lays out the payment methods for it; left out, the runtime keeps the 1.x default.
|
|
27
27
|
*/
|
|
28
28
|
layout?: 'default' | 'buttons';
|
|
29
|
+
/**
|
|
30
|
+
* Automatic or confirm saved payment, as the 1.x automatic payment button: the runtime shows
|
|
31
|
+
* the pay control and runs the whole saved payment when the buyer clicks it. `getSession` is
|
|
32
|
+
* called in this page at click time; the runtime always calls the one in the latest render.
|
|
33
|
+
* A new `mode`, or adding or removing `getSession`, mounts the checkout again.
|
|
34
|
+
*/
|
|
35
|
+
automaticPayment?: CheckoutRuntimeAutomaticPayment;
|
|
29
36
|
/** The Flo-origin runtime script. */
|
|
30
37
|
runtimeUrl: string;
|
|
31
38
|
/** How long the runtime has to load before `onError` fires. Defaults to 10 seconds. */
|