@flopay/react 1.20.6 → 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.
@@ -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';
@@ -21,6 +21,18 @@ export interface FloPayRuntimeCheckoutProps {
21
21
  * "More payment options"; without them the checkout keeps the 1.x default layout.
22
22
  */
23
23
  paymentMethodLayout?: PaymentMethodLayoutRules;
24
+ /**
25
+ * The checkout layout, as in 1.x: `default` (the card form in view) or `buttons`. The runtime
26
+ * lays out the payment methods for it; left out, the runtime keeps the 1.x default.
27
+ */
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;
24
36
  /** The Flo-origin runtime script. */
25
37
  runtimeUrl: string;
26
38
  /** How long the runtime has to load before `onError` fires. Defaults to 10 seconds. */