@getopenpay/openpay-js 0.2.33 → 0.2.35
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 +8 -2
- package/dist/index.es.js +335 -287
- package/dist/index.umd.js +27 -16
- package/package.json +1 -1
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
|
};
|
|
@@ -689,6 +693,7 @@ export declare class OpenPayForm {
|
|
|
689
693
|
readonly baseUrl: string;
|
|
690
694
|
readonly formCallbacks: FormCallbacks;
|
|
691
695
|
private registeredElements;
|
|
696
|
+
private isDestroyed;
|
|
692
697
|
private eventHandler;
|
|
693
698
|
private connectionManager;
|
|
694
699
|
static ojsFlows: typeof OjsFlows;
|
|
@@ -755,7 +760,8 @@ export declare class OpenPayForm {
|
|
|
755
760
|
/**
|
|
756
761
|
* Runs the common credit card flow
|
|
757
762
|
*/
|
|
758
|
-
submitCard: () => void;
|
|
763
|
+
submitCard: (params?: CCSubmitParams) => void;
|
|
764
|
+
private isValidFormInstance;
|
|
759
765
|
getAvailablePaymentMethods: () => ({
|
|
760
766
|
name: string;
|
|
761
767
|
} | {
|
|
@@ -797,7 +803,7 @@ export declare class OpenPayForm {
|
|
|
797
803
|
/**
|
|
798
804
|
* Alias for submitCard
|
|
799
805
|
*/
|
|
800
|
-
submit: () => void;
|
|
806
|
+
submit: (params?: CCSubmitParams) => void;
|
|
801
807
|
destroy: () => void;
|
|
802
808
|
/**
|
|
803
809
|
* Updates form callbacks after initialization
|