@getopenpay/openpay-js-react 0.1.19-alpha.c318266 → 0.1.21-alpha.4b7874e
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/.tsbuildinfo +1 -1
- package/dist/index.d.ts +8 -0
- package/dist/index.js +1043 -874
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ApplePayOption } from '@stripe/stripe-js/dist/stripe-js/elements/apple-pay';
|
|
1
2
|
import { FC } from 'react';
|
|
2
3
|
import { z } from 'zod';
|
|
3
4
|
|
|
@@ -46,6 +47,9 @@ declare const CardPlaceholder = z.object({
|
|
|
46
47
|
declare type CardPlaceholder = z.infer<typeof CardPlaceholder>;
|
|
47
48
|
|
|
48
49
|
declare type CustomInitParams = {
|
|
50
|
+
// You can put custom params for your init flows here
|
|
51
|
+
|
|
52
|
+
// For stripe link
|
|
49
53
|
stripeLink?: {
|
|
50
54
|
/**
|
|
51
55
|
* The height of the Stripe Link button. By default, the height of the buttons are 44px.
|
|
@@ -93,6 +97,7 @@ export declare const ElementsForm: FC<ElementsFormPropsReact>;
|
|
|
93
97
|
|
|
94
98
|
export declare type ElementsFormChildrenProps = {
|
|
95
99
|
submit: () => void;
|
|
100
|
+
submitWith: (method: SubmitMethod) => void;
|
|
96
101
|
applePay: PaymentRequestStatus;
|
|
97
102
|
googlePay: PaymentRequestStatus;
|
|
98
103
|
stripeLink: StripeLinkController | null;
|
|
@@ -188,6 +193,7 @@ export declare type PaymentRequestStartParams = {
|
|
|
188
193
|
overridePaymentRequest?: {
|
|
189
194
|
amount: Amount;
|
|
190
195
|
pending: boolean;
|
|
196
|
+
stripeApplePay?: ApplePayOption;
|
|
191
197
|
};
|
|
192
198
|
};
|
|
193
199
|
|
|
@@ -205,6 +211,8 @@ declare type StripeLinkController = {
|
|
|
205
211
|
waitForButtonToMount: () => Promise<HTMLElement>;
|
|
206
212
|
};
|
|
207
213
|
|
|
214
|
+
declare type SubmitMethod = 'pockyt-paypal';
|
|
215
|
+
|
|
208
216
|
export declare const useOpenPayElements: () => ElementsContextValue;
|
|
209
217
|
|
|
210
218
|
export { }
|