@getopenpay/openpay-js-react 0.1.20-alpha.c891c7b → 0.1.21-alpha.b1155fc

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/index.d.ts CHANGED
@@ -47,6 +47,9 @@ declare const CardPlaceholder = z.object({
47
47
  declare type CardPlaceholder = z.infer<typeof CardPlaceholder>;
48
48
 
49
49
  declare type CustomInitParams = {
50
+ // You can put custom params for your init flows here
51
+
52
+ // For stripe link
50
53
  stripeLink?: {
51
54
  /**
52
55
  * The height of the Stripe Link button. By default, the height of the buttons are 44px.
@@ -94,6 +97,7 @@ export declare const ElementsForm: FC<ElementsFormPropsReact>;
94
97
 
95
98
  export declare type ElementsFormChildrenProps = {
96
99
  submit: () => void;
100
+ submitWith: (method: SubmitMethod) => void;
97
101
  applePay: PaymentRequestStatus;
98
102
  googlePay: PaymentRequestStatus;
99
103
  stripeLink: StripeLinkController | null;
@@ -207,6 +211,8 @@ declare type StripeLinkController = {
207
211
  waitForButtonToMount: () => Promise<HTMLElement>;
208
212
  };
209
213
 
214
+ declare type SubmitMethod = 'pockyt-paypal';
215
+
210
216
  export declare const useOpenPayElements: () => ElementsContextValue;
211
217
 
212
218
  export { }