@getopenpay/openpay-js 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
@@ -66,6 +66,10 @@ declare enum Blockchain {
66
66
 
67
67
  declare type BlockchainNetwork = keyof typeof Blockchain;
68
68
 
69
+ declare type CCSubmitParams = {
70
+ paymentRouteId?: string;
71
+ };
72
+
69
73
  declare type CdeConnection = {
70
74
  send: (data: CdeMessage) => Promise<unknown>;
71
75
  };
@@ -755,7 +759,7 @@ export declare class OpenPayForm {
755
759
  /**
756
760
  * Runs the common credit card flow
757
761
  */
758
- submitCard: () => void;
762
+ submitCard: (params?: CCSubmitParams) => void;
759
763
  getAvailablePaymentMethods: () => ({
760
764
  name: string;
761
765
  } | {
@@ -797,7 +801,7 @@ export declare class OpenPayForm {
797
801
  /**
798
802
  * Alias for submitCard
799
803
  */
800
- submit: () => void;
804
+ submit: (params?: CCSubmitParams) => void;
801
805
  destroy: () => void;
802
806
  /**
803
807
  * Updates form callbacks after initialization