@coinflowlabs/vue 0.1.0 → 0.2.1
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/README.md +52 -0
- package/dist/coinflow-vue.js +2417 -2271
- package/dist/coinflow-vue.umd.cjs +12 -7
- package/dist/components/CoinflowIframe.vue.d.ts +34 -0
- package/dist/components/CoinflowPurchaseProtection.vue.d.ts +24 -0
- package/dist/components/card-form/CoinflowCardNumberInput.vue.d.ts +0 -1
- package/dist/components/card-form/CoinflowCardNumberOnlyInput.vue.d.ts +46 -0
- package/dist/components/mobile-wallet/CoinflowApplePayButton.vue.d.ts +237 -0
- package/dist/components/mobile-wallet/CoinflowGooglePayButton.vue.d.ts +237 -0
- package/dist/components/mobile-wallet/MobileWalletButton.vue.d.ts +221 -0
- package/dist/index.d.ts +6 -1
- package/dist/lib/common/CoinflowTypes.d.ts +2 -1
- package/package.json +4 -3
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { PropType } from "vue";
|
|
2
|
+
import { CoinflowIFrameProps, IFrameMessageHandlers } from "../lib/common";
|
|
3
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
4
|
+
args: {
|
|
5
|
+
type: PropType<CoinflowIFrameProps & IFrameMessageHandlers>;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
}, unknown, unknown, {
|
|
9
|
+
url(): string;
|
|
10
|
+
}, {
|
|
11
|
+
sendMessage(message: string): void;
|
|
12
|
+
handleIframeMessages({ data, origin }: {
|
|
13
|
+
data: string;
|
|
14
|
+
origin: string;
|
|
15
|
+
}): void;
|
|
16
|
+
listenForMessage(isResponseValid: (response: string) => boolean): Promise<string>;
|
|
17
|
+
sendAndReceiveMessage(message: string, isResponseValid: (response: string) => boolean): Promise<string>;
|
|
18
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
19
|
+
onMessage({ data, origin }: {
|
|
20
|
+
data: string;
|
|
21
|
+
origin: string;
|
|
22
|
+
}): true;
|
|
23
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
24
|
+
args: {
|
|
25
|
+
type: PropType<CoinflowIFrameProps & IFrameMessageHandlers>;
|
|
26
|
+
required: true;
|
|
27
|
+
};
|
|
28
|
+
}>> & {
|
|
29
|
+
onOnMessage?: ((args_0: {
|
|
30
|
+
data: string;
|
|
31
|
+
origin: string;
|
|
32
|
+
}) => any) | undefined;
|
|
33
|
+
}, {}, {}>;
|
|
34
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { PropType } from "vue";
|
|
2
|
+
import { CoinflowEnvs } from "../lib/common";
|
|
3
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
4
|
+
args: {
|
|
5
|
+
type: PropType<{
|
|
6
|
+
env: CoinflowEnvs;
|
|
7
|
+
merchantId: string;
|
|
8
|
+
}>;
|
|
9
|
+
required: true;
|
|
10
|
+
};
|
|
11
|
+
}, {
|
|
12
|
+
partnerId: import("vue").Ref<string | undefined>;
|
|
13
|
+
applicationId: () => "9JBW2RHC7JNJN8ZQ" | "SANDBOX_CTCE4XK53ZW0R7V1";
|
|
14
|
+
sdkUrl: () => "https://sdk.nsureapi.com/sdk.js" | "https://sdk.nsureapi.com/sdk-sandbox.js";
|
|
15
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
16
|
+
args: {
|
|
17
|
+
type: PropType<{
|
|
18
|
+
env: CoinflowEnvs;
|
|
19
|
+
merchantId: string;
|
|
20
|
+
}>;
|
|
21
|
+
required: true;
|
|
22
|
+
};
|
|
23
|
+
}>>, {}, {}>;
|
|
24
|
+
export default _sfc_main;
|
|
@@ -34,7 +34,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
34
34
|
validateConfig: () => void;
|
|
35
35
|
setFraudServicesRequestDetails: (data: string) => void;
|
|
36
36
|
} | undefined>;
|
|
37
|
-
tokenExScriptLoaded: import("vue").Ref<boolean>;
|
|
38
37
|
getToken: () => Promise<CoinflowCardTokenResponse>;
|
|
39
38
|
css: () => string;
|
|
40
39
|
readonly TokenExCardNumberIframeId: string;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { CoinflowCardNumberInputProps, CoinflowCardTokenResponse } from "../../lib/common";
|
|
2
|
+
import { PropType } from "vue";
|
|
3
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
4
|
+
args: {
|
|
5
|
+
type: PropType<CoinflowCardNumberInputProps>;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
}, {
|
|
9
|
+
tokenExIframe: import("vue").Ref<{
|
|
10
|
+
tokenize: () => Promise<import("../../lib/common").TokenizationResponse>;
|
|
11
|
+
load: () => void;
|
|
12
|
+
on: (event: string, callback: (data?: any) => void) => void;
|
|
13
|
+
validate: () => void;
|
|
14
|
+
reset: () => void;
|
|
15
|
+
blur: () => void;
|
|
16
|
+
cvvBlur: () => void;
|
|
17
|
+
focus: () => void;
|
|
18
|
+
cvvFocus: () => void;
|
|
19
|
+
remove: () => void;
|
|
20
|
+
toggleMask: () => void;
|
|
21
|
+
toggleCvvMask: () => void;
|
|
22
|
+
setPAN: (pan: string) => void;
|
|
23
|
+
binLookup: () => void;
|
|
24
|
+
validateConfig: () => void;
|
|
25
|
+
setFraudServicesRequestDetails: (data: string) => void;
|
|
26
|
+
} | undefined>;
|
|
27
|
+
initializeTokenExCardOnlyIframe: ({ css, fontFamily, debug, origins, }: Omit<{
|
|
28
|
+
css: string;
|
|
29
|
+
debug?: boolean | undefined;
|
|
30
|
+
fontFamily?: string | undefined;
|
|
31
|
+
origins: string[] | undefined;
|
|
32
|
+
tokenExScriptLoaded: boolean;
|
|
33
|
+
env: import("../../lib/common").CoinflowEnvs;
|
|
34
|
+
setCachedToken: (s: string | undefined) => void;
|
|
35
|
+
setLoaded: (b: boolean) => void;
|
|
36
|
+
}, "env" | "setCachedToken" | "setLoaded" | "tokenExScriptLoaded">) => Promise<import("../../lib/common").TokenExIframe | undefined>;
|
|
37
|
+
getToken: () => Promise<CoinflowCardTokenResponse>;
|
|
38
|
+
css: () => string;
|
|
39
|
+
readonly TokenExCardNumberIframeId: string;
|
|
40
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
41
|
+
args: {
|
|
42
|
+
type: PropType<CoinflowCardNumberInputProps>;
|
|
43
|
+
required: true;
|
|
44
|
+
};
|
|
45
|
+
}>>, {}, {}>;
|
|
46
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
/// <reference types="@solana/web3.js" />
|
|
2
|
+
import { PropType } from "vue";
|
|
3
|
+
import { CoinflowPurchaseProps } from "../../lib/common";
|
|
4
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
5
|
+
args: {
|
|
6
|
+
type: PropType<CoinflowPurchaseProps & {
|
|
7
|
+
color: 'white' | 'black';
|
|
8
|
+
}>;
|
|
9
|
+
required: true;
|
|
10
|
+
};
|
|
11
|
+
}, {
|
|
12
|
+
MobileWalletButton: import("vue").DefineComponent<{
|
|
13
|
+
args: {
|
|
14
|
+
type: PropType<CoinflowPurchaseProps & {
|
|
15
|
+
color: "white" | "black";
|
|
16
|
+
}>;
|
|
17
|
+
required: true;
|
|
18
|
+
};
|
|
19
|
+
route: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
required: true;
|
|
22
|
+
};
|
|
23
|
+
}, {
|
|
24
|
+
onSuccess: import("../../lib/common").OnSuccessMethod | undefined;
|
|
25
|
+
iframeProps: () => {
|
|
26
|
+
walletPubkey: string | null | undefined;
|
|
27
|
+
transaction: undefined;
|
|
28
|
+
routePrefix: string;
|
|
29
|
+
route: string;
|
|
30
|
+
wallet: import("../../lib/common").SolanaWallet;
|
|
31
|
+
partialSigners?: import("@solana/web3.js").Signer[] | undefined;
|
|
32
|
+
debugTx?: boolean | undefined;
|
|
33
|
+
connection: import("@solana/web3.js").Connection;
|
|
34
|
+
blockchain: "solana";
|
|
35
|
+
token?: string | import("@solana/web3.js").PublicKey | undefined;
|
|
36
|
+
rent?: {
|
|
37
|
+
lamports: string | number;
|
|
38
|
+
} | undefined;
|
|
39
|
+
nativeSolToConvert?: {
|
|
40
|
+
lamports: string | number;
|
|
41
|
+
} | undefined;
|
|
42
|
+
amount?: string | number | undefined;
|
|
43
|
+
onSuccess?: import("../../lib/common").OnSuccessMethod | undefined;
|
|
44
|
+
webhookInfo?: object | undefined;
|
|
45
|
+
email?: string | undefined;
|
|
46
|
+
chargebackProtectionData?: import("../../lib/common").ChargebackProtectionData | undefined;
|
|
47
|
+
planCode?: string | undefined;
|
|
48
|
+
disableApplePay?: boolean | undefined;
|
|
49
|
+
disableGooglePay?: boolean | undefined;
|
|
50
|
+
customerInfo?: import("../../lib/common").CustomerInfo | undefined;
|
|
51
|
+
settlementType?: import("../../lib/common").SettlementType | undefined;
|
|
52
|
+
authOnly?: boolean | undefined;
|
|
53
|
+
deviceId?: string | undefined;
|
|
54
|
+
jwtToken?: string | undefined;
|
|
55
|
+
origins?: string[] | undefined;
|
|
56
|
+
merchantId: string;
|
|
57
|
+
env?: import("../../lib/common").CoinflowEnvs | undefined;
|
|
58
|
+
loaderBackground?: string | undefined;
|
|
59
|
+
handleHeightChange?: ((height: string) => void) | undefined;
|
|
60
|
+
theme?: import("../../lib/common").MerchantTheme | undefined;
|
|
61
|
+
color: "white" | "black";
|
|
62
|
+
} | {
|
|
63
|
+
walletPubkey: string | null | undefined;
|
|
64
|
+
transaction: undefined;
|
|
65
|
+
routePrefix: string;
|
|
66
|
+
route: string;
|
|
67
|
+
wallet: import("../../lib/common").NearWallet;
|
|
68
|
+
blockchain: "near";
|
|
69
|
+
action?: import("../../lib/common").NearFtTransferCallAction | undefined;
|
|
70
|
+
nearDeposit?: string | undefined;
|
|
71
|
+
amount?: string | number | undefined;
|
|
72
|
+
onSuccess?: import("../../lib/common").OnSuccessMethod | undefined;
|
|
73
|
+
webhookInfo?: object | undefined;
|
|
74
|
+
email?: string | undefined;
|
|
75
|
+
chargebackProtectionData?: import("../../lib/common").ChargebackProtectionData | undefined;
|
|
76
|
+
planCode?: string | undefined;
|
|
77
|
+
disableApplePay?: boolean | undefined;
|
|
78
|
+
disableGooglePay?: boolean | undefined;
|
|
79
|
+
customerInfo?: import("../../lib/common").CustomerInfo | undefined;
|
|
80
|
+
settlementType?: import("../../lib/common").SettlementType | undefined;
|
|
81
|
+
authOnly?: boolean | undefined;
|
|
82
|
+
deviceId?: string | undefined;
|
|
83
|
+
jwtToken?: string | undefined;
|
|
84
|
+
origins?: string[] | undefined;
|
|
85
|
+
merchantId: string;
|
|
86
|
+
env?: import("../../lib/common").CoinflowEnvs | undefined;
|
|
87
|
+
loaderBackground?: string | undefined;
|
|
88
|
+
handleHeightChange?: ((height: string) => void) | undefined;
|
|
89
|
+
theme?: import("../../lib/common").MerchantTheme | undefined;
|
|
90
|
+
color: "white" | "black";
|
|
91
|
+
} | {
|
|
92
|
+
walletPubkey: string | null | undefined;
|
|
93
|
+
transaction: undefined;
|
|
94
|
+
routePrefix: string;
|
|
95
|
+
route: string;
|
|
96
|
+
blockchain: "polygon";
|
|
97
|
+
token?: string | undefined;
|
|
98
|
+
wallet: import("../../lib/common").EthWallet;
|
|
99
|
+
amount?: string | number | undefined;
|
|
100
|
+
onSuccess?: import("../../lib/common").OnSuccessMethod | undefined;
|
|
101
|
+
webhookInfo?: object | undefined;
|
|
102
|
+
email?: string | undefined;
|
|
103
|
+
chargebackProtectionData?: import("../../lib/common").ChargebackProtectionData | undefined;
|
|
104
|
+
planCode?: string | undefined;
|
|
105
|
+
disableApplePay?: boolean | undefined;
|
|
106
|
+
disableGooglePay?: boolean | undefined;
|
|
107
|
+
customerInfo?: import("../../lib/common").CustomerInfo | undefined;
|
|
108
|
+
settlementType?: import("../../lib/common").SettlementType | undefined;
|
|
109
|
+
authOnly?: boolean | undefined;
|
|
110
|
+
deviceId?: string | undefined;
|
|
111
|
+
jwtToken?: string | undefined;
|
|
112
|
+
origins?: string[] | undefined;
|
|
113
|
+
merchantId: string;
|
|
114
|
+
env?: import("../../lib/common").CoinflowEnvs | undefined;
|
|
115
|
+
loaderBackground?: string | undefined;
|
|
116
|
+
handleHeightChange?: ((height: string) => void) | undefined;
|
|
117
|
+
theme?: import("../../lib/common").MerchantTheme | undefined;
|
|
118
|
+
color: "white" | "black";
|
|
119
|
+
} | {
|
|
120
|
+
walletPubkey: string | null | undefined;
|
|
121
|
+
transaction: undefined;
|
|
122
|
+
routePrefix: string;
|
|
123
|
+
route: string;
|
|
124
|
+
blockchain: "eth";
|
|
125
|
+
token?: string | undefined;
|
|
126
|
+
wallet: import("../../lib/common").EthWallet;
|
|
127
|
+
amount?: string | number | undefined;
|
|
128
|
+
onSuccess?: import("../../lib/common").OnSuccessMethod | undefined;
|
|
129
|
+
webhookInfo?: object | undefined;
|
|
130
|
+
email?: string | undefined;
|
|
131
|
+
chargebackProtectionData?: import("../../lib/common").ChargebackProtectionData | undefined;
|
|
132
|
+
planCode?: string | undefined;
|
|
133
|
+
disableApplePay?: boolean | undefined;
|
|
134
|
+
disableGooglePay?: boolean | undefined;
|
|
135
|
+
customerInfo?: import("../../lib/common").CustomerInfo | undefined;
|
|
136
|
+
settlementType?: import("../../lib/common").SettlementType | undefined;
|
|
137
|
+
authOnly?: boolean | undefined;
|
|
138
|
+
deviceId?: string | undefined;
|
|
139
|
+
jwtToken?: string | undefined;
|
|
140
|
+
origins?: string[] | undefined;
|
|
141
|
+
merchantId: string;
|
|
142
|
+
env?: import("../../lib/common").CoinflowEnvs | undefined;
|
|
143
|
+
loaderBackground?: string | undefined;
|
|
144
|
+
handleHeightChange?: ((height: string) => void) | undefined;
|
|
145
|
+
theme?: import("../../lib/common").MerchantTheme | undefined;
|
|
146
|
+
color: "white" | "black";
|
|
147
|
+
} | {
|
|
148
|
+
walletPubkey: string | null | undefined;
|
|
149
|
+
transaction: undefined;
|
|
150
|
+
routePrefix: string;
|
|
151
|
+
route: string;
|
|
152
|
+
blockchain: "base";
|
|
153
|
+
token?: string | undefined;
|
|
154
|
+
wallet: import("../../lib/common").EthWallet;
|
|
155
|
+
amount?: string | number | undefined;
|
|
156
|
+
onSuccess?: import("../../lib/common").OnSuccessMethod | undefined;
|
|
157
|
+
webhookInfo?: object | undefined;
|
|
158
|
+
email?: string | undefined;
|
|
159
|
+
chargebackProtectionData?: import("../../lib/common").ChargebackProtectionData | undefined;
|
|
160
|
+
planCode?: string | undefined;
|
|
161
|
+
disableApplePay?: boolean | undefined;
|
|
162
|
+
disableGooglePay?: boolean | undefined;
|
|
163
|
+
customerInfo?: import("../../lib/common").CustomerInfo | undefined;
|
|
164
|
+
settlementType?: import("../../lib/common").SettlementType | undefined;
|
|
165
|
+
authOnly?: boolean | undefined;
|
|
166
|
+
deviceId?: string | undefined;
|
|
167
|
+
jwtToken?: string | undefined;
|
|
168
|
+
origins?: string[] | undefined;
|
|
169
|
+
merchantId: string;
|
|
170
|
+
env?: import("../../lib/common").CoinflowEnvs | undefined;
|
|
171
|
+
loaderBackground?: string | undefined;
|
|
172
|
+
handleHeightChange?: ((height: string) => void) | undefined;
|
|
173
|
+
theme?: import("../../lib/common").MerchantTheme | undefined;
|
|
174
|
+
color: "white" | "black";
|
|
175
|
+
};
|
|
176
|
+
messageHandlers: () => {
|
|
177
|
+
handleHeightChange: ((height: string) => void) | undefined;
|
|
178
|
+
onSuccess: import("../../lib/common").OnSuccessMethod | undefined;
|
|
179
|
+
handleSendTransaction: (transaction: string) => Promise<string>;
|
|
180
|
+
handleSignMessage?: ((message: string) => Promise<string>) | undefined;
|
|
181
|
+
handleSignTransaction?: ((transaction: string) => Promise<string>) | undefined;
|
|
182
|
+
};
|
|
183
|
+
handleMessage: ({ data }: {
|
|
184
|
+
data: string;
|
|
185
|
+
}) => void;
|
|
186
|
+
CoinflowIFrame: import("vue").DefineComponent<{
|
|
187
|
+
args: {
|
|
188
|
+
type: PropType<import("../../lib/common").CoinflowIFrameProps & import("../../lib/common").IFrameMessageHandlers>;
|
|
189
|
+
required: true;
|
|
190
|
+
};
|
|
191
|
+
}, unknown, unknown, {
|
|
192
|
+
url(): string;
|
|
193
|
+
}, {
|
|
194
|
+
sendMessage(message: string): void;
|
|
195
|
+
handleIframeMessages({ data, origin }: {
|
|
196
|
+
data: string;
|
|
197
|
+
origin: string;
|
|
198
|
+
}): void;
|
|
199
|
+
listenForMessage(isResponseValid: (response: string) => boolean): Promise<string>;
|
|
200
|
+
sendAndReceiveMessage(message: string, isResponseValid: (response: string) => boolean): Promise<string>;
|
|
201
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
202
|
+
onMessage({ data, origin }: {
|
|
203
|
+
data: string;
|
|
204
|
+
origin: string;
|
|
205
|
+
}): true;
|
|
206
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
207
|
+
args: {
|
|
208
|
+
type: PropType<import("../../lib/common").CoinflowIFrameProps & import("../../lib/common").IFrameMessageHandlers>;
|
|
209
|
+
required: true;
|
|
210
|
+
};
|
|
211
|
+
}>> & {
|
|
212
|
+
onOnMessage?: ((args_0: {
|
|
213
|
+
data: string;
|
|
214
|
+
origin: string;
|
|
215
|
+
}) => any) | undefined;
|
|
216
|
+
}, {}, {}>;
|
|
217
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
218
|
+
args: {
|
|
219
|
+
type: PropType<CoinflowPurchaseProps & {
|
|
220
|
+
color: "white" | "black";
|
|
221
|
+
}>;
|
|
222
|
+
required: true;
|
|
223
|
+
};
|
|
224
|
+
route: {
|
|
225
|
+
type: StringConstructor;
|
|
226
|
+
required: true;
|
|
227
|
+
};
|
|
228
|
+
}>>, {}, {}>;
|
|
229
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
230
|
+
args: {
|
|
231
|
+
type: PropType<CoinflowPurchaseProps & {
|
|
232
|
+
color: 'white' | 'black';
|
|
233
|
+
}>;
|
|
234
|
+
required: true;
|
|
235
|
+
};
|
|
236
|
+
}>>, {}, {}>;
|
|
237
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
/// <reference types="@solana/web3.js" />
|
|
2
|
+
import { PropType } from "vue";
|
|
3
|
+
import { CoinflowPurchaseProps } from "../../lib/common";
|
|
4
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
5
|
+
args: {
|
|
6
|
+
type: PropType<CoinflowPurchaseProps & {
|
|
7
|
+
color: 'white' | 'black';
|
|
8
|
+
}>;
|
|
9
|
+
required: true;
|
|
10
|
+
};
|
|
11
|
+
}, {
|
|
12
|
+
MobileWalletButton: import("vue").DefineComponent<{
|
|
13
|
+
args: {
|
|
14
|
+
type: PropType<CoinflowPurchaseProps & {
|
|
15
|
+
color: "white" | "black";
|
|
16
|
+
}>;
|
|
17
|
+
required: true;
|
|
18
|
+
};
|
|
19
|
+
route: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
required: true;
|
|
22
|
+
};
|
|
23
|
+
}, {
|
|
24
|
+
onSuccess: import("../../lib/common").OnSuccessMethod | undefined;
|
|
25
|
+
iframeProps: () => {
|
|
26
|
+
walletPubkey: string | null | undefined;
|
|
27
|
+
transaction: undefined;
|
|
28
|
+
routePrefix: string;
|
|
29
|
+
route: string;
|
|
30
|
+
wallet: import("../../lib/common").SolanaWallet;
|
|
31
|
+
partialSigners?: import("@solana/web3.js").Signer[] | undefined;
|
|
32
|
+
debugTx?: boolean | undefined;
|
|
33
|
+
connection: import("@solana/web3.js").Connection;
|
|
34
|
+
blockchain: "solana";
|
|
35
|
+
token?: string | import("@solana/web3.js").PublicKey | undefined;
|
|
36
|
+
rent?: {
|
|
37
|
+
lamports: string | number;
|
|
38
|
+
} | undefined;
|
|
39
|
+
nativeSolToConvert?: {
|
|
40
|
+
lamports: string | number;
|
|
41
|
+
} | undefined;
|
|
42
|
+
amount?: string | number | undefined;
|
|
43
|
+
onSuccess?: import("../../lib/common").OnSuccessMethod | undefined;
|
|
44
|
+
webhookInfo?: object | undefined;
|
|
45
|
+
email?: string | undefined;
|
|
46
|
+
chargebackProtectionData?: import("../../lib/common").ChargebackProtectionData | undefined;
|
|
47
|
+
planCode?: string | undefined;
|
|
48
|
+
disableApplePay?: boolean | undefined;
|
|
49
|
+
disableGooglePay?: boolean | undefined;
|
|
50
|
+
customerInfo?: import("../../lib/common").CustomerInfo | undefined;
|
|
51
|
+
settlementType?: import("../../lib/common").SettlementType | undefined;
|
|
52
|
+
authOnly?: boolean | undefined;
|
|
53
|
+
deviceId?: string | undefined;
|
|
54
|
+
jwtToken?: string | undefined;
|
|
55
|
+
origins?: string[] | undefined;
|
|
56
|
+
merchantId: string;
|
|
57
|
+
env?: import("../../lib/common").CoinflowEnvs | undefined;
|
|
58
|
+
loaderBackground?: string | undefined;
|
|
59
|
+
handleHeightChange?: ((height: string) => void) | undefined;
|
|
60
|
+
theme?: import("../../lib/common").MerchantTheme | undefined;
|
|
61
|
+
color: "white" | "black";
|
|
62
|
+
} | {
|
|
63
|
+
walletPubkey: string | null | undefined;
|
|
64
|
+
transaction: undefined;
|
|
65
|
+
routePrefix: string;
|
|
66
|
+
route: string;
|
|
67
|
+
wallet: import("../../lib/common").NearWallet;
|
|
68
|
+
blockchain: "near";
|
|
69
|
+
action?: import("../../lib/common").NearFtTransferCallAction | undefined;
|
|
70
|
+
nearDeposit?: string | undefined;
|
|
71
|
+
amount?: string | number | undefined;
|
|
72
|
+
onSuccess?: import("../../lib/common").OnSuccessMethod | undefined;
|
|
73
|
+
webhookInfo?: object | undefined;
|
|
74
|
+
email?: string | undefined;
|
|
75
|
+
chargebackProtectionData?: import("../../lib/common").ChargebackProtectionData | undefined;
|
|
76
|
+
planCode?: string | undefined;
|
|
77
|
+
disableApplePay?: boolean | undefined;
|
|
78
|
+
disableGooglePay?: boolean | undefined;
|
|
79
|
+
customerInfo?: import("../../lib/common").CustomerInfo | undefined;
|
|
80
|
+
settlementType?: import("../../lib/common").SettlementType | undefined;
|
|
81
|
+
authOnly?: boolean | undefined;
|
|
82
|
+
deviceId?: string | undefined;
|
|
83
|
+
jwtToken?: string | undefined;
|
|
84
|
+
origins?: string[] | undefined;
|
|
85
|
+
merchantId: string;
|
|
86
|
+
env?: import("../../lib/common").CoinflowEnvs | undefined;
|
|
87
|
+
loaderBackground?: string | undefined;
|
|
88
|
+
handleHeightChange?: ((height: string) => void) | undefined;
|
|
89
|
+
theme?: import("../../lib/common").MerchantTheme | undefined;
|
|
90
|
+
color: "white" | "black";
|
|
91
|
+
} | {
|
|
92
|
+
walletPubkey: string | null | undefined;
|
|
93
|
+
transaction: undefined;
|
|
94
|
+
routePrefix: string;
|
|
95
|
+
route: string;
|
|
96
|
+
blockchain: "polygon";
|
|
97
|
+
token?: string | undefined;
|
|
98
|
+
wallet: import("../../lib/common").EthWallet;
|
|
99
|
+
amount?: string | number | undefined;
|
|
100
|
+
onSuccess?: import("../../lib/common").OnSuccessMethod | undefined;
|
|
101
|
+
webhookInfo?: object | undefined;
|
|
102
|
+
email?: string | undefined;
|
|
103
|
+
chargebackProtectionData?: import("../../lib/common").ChargebackProtectionData | undefined;
|
|
104
|
+
planCode?: string | undefined;
|
|
105
|
+
disableApplePay?: boolean | undefined;
|
|
106
|
+
disableGooglePay?: boolean | undefined;
|
|
107
|
+
customerInfo?: import("../../lib/common").CustomerInfo | undefined;
|
|
108
|
+
settlementType?: import("../../lib/common").SettlementType | undefined;
|
|
109
|
+
authOnly?: boolean | undefined;
|
|
110
|
+
deviceId?: string | undefined;
|
|
111
|
+
jwtToken?: string | undefined;
|
|
112
|
+
origins?: string[] | undefined;
|
|
113
|
+
merchantId: string;
|
|
114
|
+
env?: import("../../lib/common").CoinflowEnvs | undefined;
|
|
115
|
+
loaderBackground?: string | undefined;
|
|
116
|
+
handleHeightChange?: ((height: string) => void) | undefined;
|
|
117
|
+
theme?: import("../../lib/common").MerchantTheme | undefined;
|
|
118
|
+
color: "white" | "black";
|
|
119
|
+
} | {
|
|
120
|
+
walletPubkey: string | null | undefined;
|
|
121
|
+
transaction: undefined;
|
|
122
|
+
routePrefix: string;
|
|
123
|
+
route: string;
|
|
124
|
+
blockchain: "eth";
|
|
125
|
+
token?: string | undefined;
|
|
126
|
+
wallet: import("../../lib/common").EthWallet;
|
|
127
|
+
amount?: string | number | undefined;
|
|
128
|
+
onSuccess?: import("../../lib/common").OnSuccessMethod | undefined;
|
|
129
|
+
webhookInfo?: object | undefined;
|
|
130
|
+
email?: string | undefined;
|
|
131
|
+
chargebackProtectionData?: import("../../lib/common").ChargebackProtectionData | undefined;
|
|
132
|
+
planCode?: string | undefined;
|
|
133
|
+
disableApplePay?: boolean | undefined;
|
|
134
|
+
disableGooglePay?: boolean | undefined;
|
|
135
|
+
customerInfo?: import("../../lib/common").CustomerInfo | undefined;
|
|
136
|
+
settlementType?: import("../../lib/common").SettlementType | undefined;
|
|
137
|
+
authOnly?: boolean | undefined;
|
|
138
|
+
deviceId?: string | undefined;
|
|
139
|
+
jwtToken?: string | undefined;
|
|
140
|
+
origins?: string[] | undefined;
|
|
141
|
+
merchantId: string;
|
|
142
|
+
env?: import("../../lib/common").CoinflowEnvs | undefined;
|
|
143
|
+
loaderBackground?: string | undefined;
|
|
144
|
+
handleHeightChange?: ((height: string) => void) | undefined;
|
|
145
|
+
theme?: import("../../lib/common").MerchantTheme | undefined;
|
|
146
|
+
color: "white" | "black";
|
|
147
|
+
} | {
|
|
148
|
+
walletPubkey: string | null | undefined;
|
|
149
|
+
transaction: undefined;
|
|
150
|
+
routePrefix: string;
|
|
151
|
+
route: string;
|
|
152
|
+
blockchain: "base";
|
|
153
|
+
token?: string | undefined;
|
|
154
|
+
wallet: import("../../lib/common").EthWallet;
|
|
155
|
+
amount?: string | number | undefined;
|
|
156
|
+
onSuccess?: import("../../lib/common").OnSuccessMethod | undefined;
|
|
157
|
+
webhookInfo?: object | undefined;
|
|
158
|
+
email?: string | undefined;
|
|
159
|
+
chargebackProtectionData?: import("../../lib/common").ChargebackProtectionData | undefined;
|
|
160
|
+
planCode?: string | undefined;
|
|
161
|
+
disableApplePay?: boolean | undefined;
|
|
162
|
+
disableGooglePay?: boolean | undefined;
|
|
163
|
+
customerInfo?: import("../../lib/common").CustomerInfo | undefined;
|
|
164
|
+
settlementType?: import("../../lib/common").SettlementType | undefined;
|
|
165
|
+
authOnly?: boolean | undefined;
|
|
166
|
+
deviceId?: string | undefined;
|
|
167
|
+
jwtToken?: string | undefined;
|
|
168
|
+
origins?: string[] | undefined;
|
|
169
|
+
merchantId: string;
|
|
170
|
+
env?: import("../../lib/common").CoinflowEnvs | undefined;
|
|
171
|
+
loaderBackground?: string | undefined;
|
|
172
|
+
handleHeightChange?: ((height: string) => void) | undefined;
|
|
173
|
+
theme?: import("../../lib/common").MerchantTheme | undefined;
|
|
174
|
+
color: "white" | "black";
|
|
175
|
+
};
|
|
176
|
+
messageHandlers: () => {
|
|
177
|
+
handleHeightChange: ((height: string) => void) | undefined;
|
|
178
|
+
onSuccess: import("../../lib/common").OnSuccessMethod | undefined;
|
|
179
|
+
handleSendTransaction: (transaction: string) => Promise<string>;
|
|
180
|
+
handleSignMessage?: ((message: string) => Promise<string>) | undefined;
|
|
181
|
+
handleSignTransaction?: ((transaction: string) => Promise<string>) | undefined;
|
|
182
|
+
};
|
|
183
|
+
handleMessage: ({ data }: {
|
|
184
|
+
data: string;
|
|
185
|
+
}) => void;
|
|
186
|
+
CoinflowIFrame: import("vue").DefineComponent<{
|
|
187
|
+
args: {
|
|
188
|
+
type: PropType<import("../../lib/common").CoinflowIFrameProps & import("../../lib/common").IFrameMessageHandlers>;
|
|
189
|
+
required: true;
|
|
190
|
+
};
|
|
191
|
+
}, unknown, unknown, {
|
|
192
|
+
url(): string;
|
|
193
|
+
}, {
|
|
194
|
+
sendMessage(message: string): void;
|
|
195
|
+
handleIframeMessages({ data, origin }: {
|
|
196
|
+
data: string;
|
|
197
|
+
origin: string;
|
|
198
|
+
}): void;
|
|
199
|
+
listenForMessage(isResponseValid: (response: string) => boolean): Promise<string>;
|
|
200
|
+
sendAndReceiveMessage(message: string, isResponseValid: (response: string) => boolean): Promise<string>;
|
|
201
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
202
|
+
onMessage({ data, origin }: {
|
|
203
|
+
data: string;
|
|
204
|
+
origin: string;
|
|
205
|
+
}): true;
|
|
206
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
207
|
+
args: {
|
|
208
|
+
type: PropType<import("../../lib/common").CoinflowIFrameProps & import("../../lib/common").IFrameMessageHandlers>;
|
|
209
|
+
required: true;
|
|
210
|
+
};
|
|
211
|
+
}>> & {
|
|
212
|
+
onOnMessage?: ((args_0: {
|
|
213
|
+
data: string;
|
|
214
|
+
origin: string;
|
|
215
|
+
}) => any) | undefined;
|
|
216
|
+
}, {}, {}>;
|
|
217
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
218
|
+
args: {
|
|
219
|
+
type: PropType<CoinflowPurchaseProps & {
|
|
220
|
+
color: "white" | "black";
|
|
221
|
+
}>;
|
|
222
|
+
required: true;
|
|
223
|
+
};
|
|
224
|
+
route: {
|
|
225
|
+
type: StringConstructor;
|
|
226
|
+
required: true;
|
|
227
|
+
};
|
|
228
|
+
}>>, {}, {}>;
|
|
229
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
230
|
+
args: {
|
|
231
|
+
type: PropType<CoinflowPurchaseProps & {
|
|
232
|
+
color: 'white' | 'black';
|
|
233
|
+
}>;
|
|
234
|
+
required: true;
|
|
235
|
+
};
|
|
236
|
+
}>>, {}, {}>;
|
|
237
|
+
export default _sfc_main;
|