@getopenpay/openpay-js-react 0.2.7 → 0.2.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/.tsbuildinfo +1 -1
- package/dist/index.d.ts +12 -5
- package/dist/index.js +527 -519
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -68,6 +68,10 @@ declare const CardPlaceholder = z.object({
|
|
|
68
68
|
|
|
69
69
|
declare type CardPlaceholder = z.infer<typeof CardPlaceholder>;
|
|
70
70
|
|
|
71
|
+
declare type CommonSubmitSettings = {
|
|
72
|
+
defaultFieldValues?: DefaultFieldValues;
|
|
73
|
+
};
|
|
74
|
+
|
|
71
75
|
declare type CustomInitParams = {
|
|
72
76
|
// You can put custom params for your init flows here
|
|
73
77
|
|
|
@@ -257,6 +261,12 @@ export declare type PaymentRequestStatus = {
|
|
|
257
261
|
startFlow: (params?: PaymentRequestStartParams) => Promise<void>;
|
|
258
262
|
};
|
|
259
263
|
|
|
264
|
+
declare type ProcessorSpecificSubmitSettings<T extends SubmitMethod = SubmitMethod> = {
|
|
265
|
+
'pockyt-paypal': { useRedirectFlow?: boolean };
|
|
266
|
+
'airwallex-google-pay': AirwallexGooglePayFlowCustomParams;
|
|
267
|
+
'airwallex-apple-pay': AirwallexApplePayFlowCustomParams;
|
|
268
|
+
}[T];
|
|
269
|
+
|
|
260
270
|
declare type PRStatuses = Record<PaymentRequestProvider, PaymentRequestStatus>;
|
|
261
271
|
|
|
262
272
|
declare type StripeLinkController = {
|
|
@@ -267,11 +277,8 @@ declare type StripeLinkController = {
|
|
|
267
277
|
|
|
268
278
|
declare type SubmitMethod = 'pockyt-paypal' | 'airwallex-google-pay' | 'airwallex-apple-pay';
|
|
269
279
|
|
|
270
|
-
declare type SubmitSettings<T extends SubmitMethod = SubmitMethod> =
|
|
271
|
-
|
|
272
|
-
'airwallex-google-pay': AirwallexGooglePayFlowCustomParams;
|
|
273
|
-
'airwallex-apple-pay': AirwallexApplePayFlowCustomParams;
|
|
274
|
-
}[T];
|
|
280
|
+
declare type SubmitSettings<T extends SubmitMethod = SubmitMethod> = ProcessorSpecificSubmitSettings<T> &
|
|
281
|
+
CommonSubmitSettings;
|
|
275
282
|
|
|
276
283
|
export declare const useOpenPayElements: () => ElementsContextValue;
|
|
277
284
|
|