@getopenpay/openpay-js-react 0.2.33 → 0.2.34

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
@@ -100,6 +100,10 @@ declare const CardPlaceholder = z.object({
100
100
 
101
101
  declare type CardPlaceholder = z.infer<typeof CardPlaceholder>;
102
102
 
103
+ declare type CCSubmitParams = {
104
+ paymentRouteId?: string;
105
+ };
106
+
103
107
  declare type CommonSubmitSettings = {
104
108
  defaultFieldValues?: DefaultFieldValues;
105
109
  };
@@ -190,7 +194,7 @@ declare type ElementsContextValue = {
190
194
  export declare const ElementsForm: FC<ElementsFormPropsReact>;
191
195
 
192
196
  export declare type ElementsFormChildrenProps = {
193
- submit: () => void;
197
+ submit: (params?: CCSubmitParams) => void;
194
198
  submitWith: <T extends SubmitMethod>(method: T, settings?: SubmitSettings<T>) => void | Promise<void>;
195
199
  applePay: PaymentRequestStatus;
196
200
  googlePay: PaymentRequestStatus;