@coinflowlabs/vue 2.0.0 → 3.0.0
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/coinflow-vue.js +2785 -2815
- package/dist/coinflow-vue.umd.cjs +11 -11
- package/dist/components/CoinflowPurchase.vue.d.ts +40 -58
- package/dist/components/CoinflowWithdraw.vue.d.ts +8 -41
- package/dist/lib/common/CoinflowLibMessageHandlers.d.ts +9 -2
- package/dist/lib/common/CoinflowTypes.d.ts +19 -33
- package/dist/lib/common/CoinflowUtils.d.ts +2 -2
- package/package.json +1 -1
|
@@ -8,9 +8,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
8
8
|
}>, {}, {}, {
|
|
9
9
|
handleHeightChangeId(): string;
|
|
10
10
|
iframeProps(): {
|
|
11
|
-
walletPubkey: string | null | undefined;
|
|
12
|
-
route: string;
|
|
13
11
|
transaction: string | undefined;
|
|
12
|
+
route: string;
|
|
13
|
+
routePrefix?: string | undefined;
|
|
14
|
+
walletPubkey: string | null | undefined;
|
|
14
15
|
wallet: import('..').SolanaWallet;
|
|
15
16
|
partialSigners?: import('@solana/web3.js').Signer[];
|
|
16
17
|
debugTx?: boolean;
|
|
@@ -24,8 +25,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
24
25
|
};
|
|
25
26
|
redemptionCheck?: boolean;
|
|
26
27
|
subtotal?: import('..').Subtotal;
|
|
28
|
+
checkoutVersion?: "v2" | "v3";
|
|
27
29
|
useNativeSubtotal?: boolean;
|
|
28
30
|
presentment?: import('..').Currency;
|
|
31
|
+
inlineCryptoCheckout?: boolean;
|
|
29
32
|
onSuccess?: import('..').OnSuccessMethod;
|
|
30
33
|
sessionKey?: string;
|
|
31
34
|
onAuthDeclined?: import('..').OnAuthDeclinedMethod;
|
|
@@ -60,15 +63,18 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
60
63
|
theme?: import('..').MerchantTheme;
|
|
61
64
|
supportEmail?: string;
|
|
62
65
|
} | {
|
|
63
|
-
walletPubkey: string | null | undefined;
|
|
64
|
-
route: string;
|
|
65
66
|
transaction: string | undefined;
|
|
67
|
+
route: string;
|
|
68
|
+
routePrefix?: string | undefined;
|
|
69
|
+
walletPubkey: string | null | undefined;
|
|
66
70
|
sessionKey: string;
|
|
67
71
|
wallet?: undefined;
|
|
68
72
|
blockchain?: import('..').CoinflowBlockchain | undefined;
|
|
69
73
|
subtotal?: import('..').Subtotal;
|
|
74
|
+
checkoutVersion?: "v2" | "v3";
|
|
70
75
|
useNativeSubtotal?: boolean;
|
|
71
76
|
presentment?: import('..').Currency;
|
|
77
|
+
inlineCryptoCheckout?: boolean;
|
|
72
78
|
onSuccess?: import('..').OnSuccessMethod;
|
|
73
79
|
onAuthDeclined?: import('..').OnAuthDeclinedMethod;
|
|
74
80
|
onInputError?: import('..').OnInputErrorMethod;
|
|
@@ -102,14 +108,17 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
102
108
|
theme?: import('..').MerchantTheme;
|
|
103
109
|
supportEmail?: string;
|
|
104
110
|
} | {
|
|
105
|
-
walletPubkey: string | null | undefined;
|
|
106
|
-
route: string;
|
|
107
111
|
transaction: string | undefined;
|
|
112
|
+
route: string;
|
|
113
|
+
routePrefix?: string | undefined;
|
|
114
|
+
walletPubkey: string | null | undefined;
|
|
108
115
|
blockchain: "polygon";
|
|
109
116
|
wallet: import('..').EthWallet;
|
|
110
117
|
subtotal?: import('..').Subtotal;
|
|
118
|
+
checkoutVersion?: "v2" | "v3";
|
|
111
119
|
useNativeSubtotal?: boolean;
|
|
112
120
|
presentment?: import('..').Currency;
|
|
121
|
+
inlineCryptoCheckout?: boolean;
|
|
113
122
|
onSuccess?: import('..').OnSuccessMethod;
|
|
114
123
|
sessionKey?: string;
|
|
115
124
|
onAuthDeclined?: import('..').OnAuthDeclinedMethod;
|
|
@@ -144,14 +153,17 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
144
153
|
theme?: import('..').MerchantTheme;
|
|
145
154
|
supportEmail?: string;
|
|
146
155
|
} | {
|
|
147
|
-
walletPubkey: string | null | undefined;
|
|
148
|
-
route: string;
|
|
149
156
|
transaction: string | undefined;
|
|
157
|
+
route: string;
|
|
158
|
+
routePrefix?: string | undefined;
|
|
159
|
+
walletPubkey: string | null | undefined;
|
|
150
160
|
blockchain: "eth";
|
|
151
161
|
wallet: import('..').EthWallet;
|
|
152
162
|
subtotal?: import('..').Subtotal;
|
|
163
|
+
checkoutVersion?: "v2" | "v3";
|
|
153
164
|
useNativeSubtotal?: boolean;
|
|
154
165
|
presentment?: import('..').Currency;
|
|
166
|
+
inlineCryptoCheckout?: boolean;
|
|
155
167
|
onSuccess?: import('..').OnSuccessMethod;
|
|
156
168
|
sessionKey?: string;
|
|
157
169
|
onAuthDeclined?: import('..').OnAuthDeclinedMethod;
|
|
@@ -186,14 +198,17 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
186
198
|
theme?: import('..').MerchantTheme;
|
|
187
199
|
supportEmail?: string;
|
|
188
200
|
} | {
|
|
189
|
-
walletPubkey: string | null | undefined;
|
|
190
|
-
route: string;
|
|
191
201
|
transaction: string | undefined;
|
|
202
|
+
route: string;
|
|
203
|
+
routePrefix?: string | undefined;
|
|
204
|
+
walletPubkey: string | null | undefined;
|
|
192
205
|
blockchain: "base";
|
|
193
206
|
wallet: import('..').EthWallet;
|
|
194
207
|
subtotal?: import('..').Subtotal;
|
|
208
|
+
checkoutVersion?: "v2" | "v3";
|
|
195
209
|
useNativeSubtotal?: boolean;
|
|
196
210
|
presentment?: import('..').Currency;
|
|
211
|
+
inlineCryptoCheckout?: boolean;
|
|
197
212
|
onSuccess?: import('..').OnSuccessMethod;
|
|
198
213
|
sessionKey?: string;
|
|
199
214
|
onAuthDeclined?: import('..').OnAuthDeclinedMethod;
|
|
@@ -228,14 +243,17 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
228
243
|
theme?: import('..').MerchantTheme;
|
|
229
244
|
supportEmail?: string;
|
|
230
245
|
} | {
|
|
231
|
-
walletPubkey: string | null | undefined;
|
|
232
|
-
route: string;
|
|
233
246
|
transaction: string | undefined;
|
|
247
|
+
route: string;
|
|
248
|
+
routePrefix?: string | undefined;
|
|
249
|
+
walletPubkey: string | null | undefined;
|
|
234
250
|
blockchain: "arbitrum";
|
|
235
251
|
wallet: import('..').EthWallet;
|
|
236
252
|
subtotal?: import('..').Subtotal;
|
|
253
|
+
checkoutVersion?: "v2" | "v3";
|
|
237
254
|
useNativeSubtotal?: boolean;
|
|
238
255
|
presentment?: import('..').Currency;
|
|
256
|
+
inlineCryptoCheckout?: boolean;
|
|
239
257
|
onSuccess?: import('..').OnSuccessMethod;
|
|
240
258
|
sessionKey?: string;
|
|
241
259
|
onAuthDeclined?: import('..').OnAuthDeclinedMethod;
|
|
@@ -270,56 +288,17 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
270
288
|
theme?: import('..').MerchantTheme;
|
|
271
289
|
supportEmail?: string;
|
|
272
290
|
} | {
|
|
273
|
-
walletPubkey: string | null | undefined;
|
|
274
|
-
route: string;
|
|
275
291
|
transaction: string | undefined;
|
|
276
|
-
wallet: import('..').StellarWallet;
|
|
277
|
-
blockchain: "stellar";
|
|
278
|
-
subtotal?: import('..').Subtotal;
|
|
279
|
-
useNativeSubtotal?: boolean;
|
|
280
|
-
presentment?: import('..').Currency;
|
|
281
|
-
onSuccess?: import('..').OnSuccessMethod;
|
|
282
|
-
sessionKey?: string;
|
|
283
|
-
onAuthDeclined?: import('..').OnAuthDeclinedMethod;
|
|
284
|
-
onInputError?: import('..').OnInputErrorMethod;
|
|
285
|
-
onInputValid?: import('..').OnInputValidMethod;
|
|
286
|
-
webhookInfo?: {
|
|
287
|
-
[key: string]: any;
|
|
288
|
-
};
|
|
289
|
-
email?: string;
|
|
290
|
-
chargebackProtectionData?: import('..').ChargebackProtectionData;
|
|
291
|
-
chargebackProtectionAccountType?: import('..').ChargebackProtectionAccountType;
|
|
292
|
-
planCode?: string;
|
|
293
|
-
allowedPaymentMethods?: import('..').PaymentMethods[];
|
|
294
|
-
allowedCardFunding?: import('..').CardFunding[];
|
|
295
|
-
customerInfo?: import('..').CustomerInfo;
|
|
296
|
-
settlementType?: import('..').SettlementType;
|
|
297
|
-
authOnly?: boolean;
|
|
298
|
-
isZeroAuthorization?: boolean;
|
|
299
|
-
zeroAuthorizationConfig?: import('..').ZeroAuthorizationConfig;
|
|
300
|
-
partialUsdcChecked?: boolean;
|
|
301
|
-
deviceId?: string;
|
|
302
|
-
jwtToken?: string;
|
|
303
|
-
origins?: string[];
|
|
304
|
-
threeDsChallengePreference?: import('..').ThreeDsChallengePreference;
|
|
305
|
-
destinationAuthKey?: string;
|
|
306
|
-
accountFundingTransaction?: import('..').AccountFundingTransaction;
|
|
307
|
-
depositAmounts?: number[];
|
|
308
|
-
merchantId: string;
|
|
309
|
-
env?: import('..').CoinflowEnvs;
|
|
310
|
-
loaderBackground?: string;
|
|
311
|
-
handleHeightChange?: (height: string) => void;
|
|
312
|
-
theme?: import('..').MerchantTheme;
|
|
313
|
-
supportEmail?: string;
|
|
314
|
-
} | {
|
|
315
|
-
walletPubkey: string | null | undefined;
|
|
316
292
|
route: string;
|
|
317
|
-
|
|
293
|
+
routePrefix?: string | undefined;
|
|
294
|
+
walletPubkey: string | null | undefined;
|
|
318
295
|
blockchain: "monad";
|
|
319
296
|
wallet: import('..').EthWallet;
|
|
320
297
|
subtotal?: import('..').Subtotal;
|
|
298
|
+
checkoutVersion?: "v2" | "v3";
|
|
321
299
|
useNativeSubtotal?: boolean;
|
|
322
300
|
presentment?: import('..').Currency;
|
|
301
|
+
inlineCryptoCheckout?: boolean;
|
|
323
302
|
onSuccess?: import('..').OnSuccessMethod;
|
|
324
303
|
sessionKey?: string;
|
|
325
304
|
onAuthDeclined?: import('..').OnAuthDeclinedMethod;
|
|
@@ -354,14 +333,17 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
354
333
|
theme?: import('..').MerchantTheme;
|
|
355
334
|
supportEmail?: string;
|
|
356
335
|
} | {
|
|
357
|
-
walletPubkey: string | null | undefined;
|
|
358
|
-
route: string;
|
|
359
336
|
transaction: string | undefined;
|
|
337
|
+
route: string;
|
|
338
|
+
routePrefix?: string | undefined;
|
|
339
|
+
walletPubkey: string | null | undefined;
|
|
360
340
|
blockchain: "tempo";
|
|
361
341
|
wallet: import('..').EthWallet;
|
|
362
342
|
subtotal?: import('..').Subtotal;
|
|
343
|
+
checkoutVersion?: "v2" | "v3";
|
|
363
344
|
useNativeSubtotal?: boolean;
|
|
364
345
|
presentment?: import('..').Currency;
|
|
346
|
+
inlineCryptoCheckout?: boolean;
|
|
365
347
|
onSuccess?: import('..').OnSuccessMethod;
|
|
366
348
|
sessionKey?: string;
|
|
367
349
|
onAuthDeclined?: import('..').OnAuthDeclinedMethod;
|
|
@@ -408,7 +390,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
408
390
|
handleSendTransaction: (transaction: string) => Promise<string>;
|
|
409
391
|
handleSignMessage?: ((message: string) => Promise<string>) | undefined;
|
|
410
392
|
handleSignTransaction?: ((transaction: string) => Promise<string>) | undefined;
|
|
411
|
-
handleOverlay?: ((state:
|
|
393
|
+
handleOverlay?: ((state: import('..').OverlayState) => void) | undefined;
|
|
412
394
|
};
|
|
413
395
|
}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
414
396
|
args: {
|
|
@@ -20,7 +20,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
20
20
|
bankAccountLinkRedirect?: string;
|
|
21
21
|
additionalWallets?: {
|
|
22
22
|
wallet: string;
|
|
23
|
-
blockchain: "solana" | "eth" | "polygon" | "base" | "arbitrum" | "monad" | "tempo"
|
|
23
|
+
blockchain: "solana" | "eth" | "polygon" | "base" | "arbitrum" | "monad" | "tempo";
|
|
24
24
|
}[];
|
|
25
25
|
lockAmount?: boolean;
|
|
26
26
|
transactionSigner?: string;
|
|
@@ -55,7 +55,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
55
55
|
bankAccountLinkRedirect?: string;
|
|
56
56
|
additionalWallets?: {
|
|
57
57
|
wallet: string;
|
|
58
|
-
blockchain: "solana" | "eth" | "polygon" | "base" | "arbitrum" | "monad" | "tempo"
|
|
58
|
+
blockchain: "solana" | "eth" | "polygon" | "base" | "arbitrum" | "monad" | "tempo";
|
|
59
59
|
}[];
|
|
60
60
|
lockAmount?: boolean;
|
|
61
61
|
transactionSigner?: string;
|
|
@@ -89,7 +89,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
89
89
|
bankAccountLinkRedirect?: string;
|
|
90
90
|
additionalWallets?: {
|
|
91
91
|
wallet: string;
|
|
92
|
-
blockchain: "solana" | "eth" | "polygon" | "base" | "arbitrum" | "monad" | "tempo"
|
|
92
|
+
blockchain: "solana" | "eth" | "polygon" | "base" | "arbitrum" | "monad" | "tempo";
|
|
93
93
|
}[];
|
|
94
94
|
lockAmount?: boolean;
|
|
95
95
|
transactionSigner?: string;
|
|
@@ -123,7 +123,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
123
123
|
bankAccountLinkRedirect?: string;
|
|
124
124
|
additionalWallets?: {
|
|
125
125
|
wallet: string;
|
|
126
|
-
blockchain: "solana" | "eth" | "polygon" | "base" | "arbitrum" | "monad" | "tempo"
|
|
126
|
+
blockchain: "solana" | "eth" | "polygon" | "base" | "arbitrum" | "monad" | "tempo";
|
|
127
127
|
}[];
|
|
128
128
|
lockAmount?: boolean;
|
|
129
129
|
transactionSigner?: string;
|
|
@@ -157,7 +157,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
157
157
|
bankAccountLinkRedirect?: string;
|
|
158
158
|
additionalWallets?: {
|
|
159
159
|
wallet: string;
|
|
160
|
-
blockchain: "solana" | "eth" | "polygon" | "base" | "arbitrum" | "monad" | "tempo"
|
|
160
|
+
blockchain: "solana" | "eth" | "polygon" | "base" | "arbitrum" | "monad" | "tempo";
|
|
161
161
|
}[];
|
|
162
162
|
lockAmount?: boolean;
|
|
163
163
|
transactionSigner?: string;
|
|
@@ -191,40 +191,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
191
191
|
bankAccountLinkRedirect?: string;
|
|
192
192
|
additionalWallets?: {
|
|
193
193
|
wallet: string;
|
|
194
|
-
blockchain: "solana" | "eth" | "polygon" | "base" | "arbitrum" | "monad" | "tempo"
|
|
195
|
-
}[];
|
|
196
|
-
lockAmount?: boolean;
|
|
197
|
-
transactionSigner?: string;
|
|
198
|
-
origins?: string[];
|
|
199
|
-
sessionKey?: string;
|
|
200
|
-
allowedWithdrawSpeeds?: import('..').WithdrawSpeed[];
|
|
201
|
-
userLocation?: {
|
|
202
|
-
lat: number;
|
|
203
|
-
lng: number;
|
|
204
|
-
};
|
|
205
|
-
appReturnUrl?: string;
|
|
206
|
-
merchantId: string;
|
|
207
|
-
env?: import('..').CoinflowEnvs;
|
|
208
|
-
loaderBackground?: string;
|
|
209
|
-
blockchain: "stellar";
|
|
210
|
-
handleHeightChange?: (height: string) => void;
|
|
211
|
-
theme?: import('..').MerchantTheme;
|
|
212
|
-
supportEmail?: string;
|
|
213
|
-
wallet: import('..').StellarWallet;
|
|
214
|
-
} | {
|
|
215
|
-
walletPubkey: string | null | undefined;
|
|
216
|
-
route: string;
|
|
217
|
-
transaction: undefined;
|
|
218
|
-
onSuccess?: import('..').OnSuccessMethod;
|
|
219
|
-
onAccountLinkError?: import('..').OnAccountLinkErrorMethod;
|
|
220
|
-
tokens?: string[];
|
|
221
|
-
lockDefaultToken?: boolean;
|
|
222
|
-
amount?: number;
|
|
223
|
-
email?: string;
|
|
224
|
-
bankAccountLinkRedirect?: string;
|
|
225
|
-
additionalWallets?: {
|
|
226
|
-
wallet: string;
|
|
227
|
-
blockchain: "solana" | "eth" | "polygon" | "base" | "arbitrum" | "monad" | "tempo" | "stellar";
|
|
194
|
+
blockchain: "solana" | "eth" | "polygon" | "base" | "arbitrum" | "monad" | "tempo";
|
|
228
195
|
}[];
|
|
229
196
|
lockAmount?: boolean;
|
|
230
197
|
transactionSigner?: string;
|
|
@@ -258,7 +225,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
258
225
|
bankAccountLinkRedirect?: string;
|
|
259
226
|
additionalWallets?: {
|
|
260
227
|
wallet: string;
|
|
261
|
-
blockchain: "solana" | "eth" | "polygon" | "base" | "arbitrum" | "monad" | "tempo"
|
|
228
|
+
blockchain: "solana" | "eth" | "polygon" | "base" | "arbitrum" | "monad" | "tempo";
|
|
262
229
|
}[];
|
|
263
230
|
lockAmount?: boolean;
|
|
264
231
|
transactionSigner?: string;
|
|
@@ -292,7 +259,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
292
259
|
handleSendTransaction: (transaction: string) => Promise<string>;
|
|
293
260
|
handleSignMessage?: ((message: string) => Promise<string>) | undefined;
|
|
294
261
|
handleSignTransaction?: ((transaction: string) => Promise<string>) | undefined;
|
|
295
|
-
handleOverlay?: ((state:
|
|
262
|
+
handleOverlay?: ((state: import('..').OverlayState) => void) | undefined;
|
|
296
263
|
};
|
|
297
264
|
}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
298
265
|
args: {
|
|
@@ -32,9 +32,9 @@ export interface IFrameMessageHandlers {
|
|
|
32
32
|
onAccountLinkError?: OnAccountLinkErrorMethod | undefined;
|
|
33
33
|
/**
|
|
34
34
|
* Called when the iframe opens/closes an in-page overlay (e.g. the PayPal
|
|
35
|
-
* approval modal).
|
|
35
|
+
* approval modal).
|
|
36
36
|
*/
|
|
37
|
-
handleOverlay?: (state:
|
|
37
|
+
handleOverlay?: (state: OverlayState) => void;
|
|
38
38
|
}
|
|
39
39
|
export declare enum IFrameMessageMethods {
|
|
40
40
|
SignMessage = "signMessage",
|
|
@@ -53,6 +53,13 @@ export declare enum IFrameMessageMethods {
|
|
|
53
53
|
Overlay = "overlay",
|
|
54
54
|
UpdateSubtotal = "updateSubtotal"
|
|
55
55
|
}
|
|
56
|
+
export declare enum HostMessageMethods {
|
|
57
|
+
OverlayOffset = "overlayOffset"
|
|
58
|
+
}
|
|
59
|
+
export declare enum OverlayState {
|
|
60
|
+
Open = "open",
|
|
61
|
+
Close = "close"
|
|
62
|
+
}
|
|
56
63
|
export declare function getWalletPubkey(input: Pick<CoinflowPurchaseProps, 'wallet' | 'blockchain'>): string | null | undefined;
|
|
57
64
|
export declare function handleIFrameMessage(rawMessage: string, handlers: IFrameMessageHandlers, handleHeightChangeId: string | number): Promise<string> | void;
|
|
58
65
|
export declare function getHandlers(props: Pick<CoinflowPurchaseProps, 'wallet' | 'blockchain' | 'onSuccess' | 'onAuthDeclined' | 'onInputError' | 'onInputValid'> & {
|
|
@@ -144,7 +144,7 @@ export interface SplitNameCustomerInfo extends BaseCustomerInfo {
|
|
|
144
144
|
}
|
|
145
145
|
export type CustomerInfo = SplitNameCustomerInfo | NameCustomerInfo;
|
|
146
146
|
/** Coinflow Types **/
|
|
147
|
-
export type CoinflowBlockchain = 'solana' | 'eth' | 'polygon' | 'base' | 'arbitrum' | '
|
|
147
|
+
export type CoinflowBlockchain = 'solana' | 'eth' | 'polygon' | 'base' | 'arbitrum' | 'monad' | 'tempo' | 'user';
|
|
148
148
|
export type CoinflowEnvs = 'prod' | 'staging' | 'sandbox' | 'local';
|
|
149
149
|
export interface CoinflowTypes {
|
|
150
150
|
merchantId: string;
|
|
@@ -243,12 +243,6 @@ export type EthWallet = {
|
|
|
243
243
|
}>;
|
|
244
244
|
signMessage: (message: string) => Promise<string>;
|
|
245
245
|
};
|
|
246
|
-
export interface StellarWallet {
|
|
247
|
-
address: string | null;
|
|
248
|
-
sendTransaction: (base64Xdr: string) => Promise<string>;
|
|
249
|
-
signTransaction: (base64Xdr: string) => Promise<string>;
|
|
250
|
-
signMessage: (message: string) => Promise<string>;
|
|
251
|
-
}
|
|
252
246
|
/** History **/
|
|
253
247
|
export interface CoinflowSolanaHistoryProps extends CoinflowTypes {
|
|
254
248
|
wallet: SolanaWallet;
|
|
@@ -275,17 +269,13 @@ export interface CoinflowBaseHistoryProps extends CoinflowEvmHistoryProps {
|
|
|
275
269
|
export interface CoinflowArbitrumHistoryProps extends CoinflowEvmHistoryProps {
|
|
276
270
|
blockchain: 'arbitrum';
|
|
277
271
|
}
|
|
278
|
-
export interface CoinflowStellarHistoryProps extends CoinflowTypes {
|
|
279
|
-
wallet: StellarWallet;
|
|
280
|
-
blockchain: 'stellar';
|
|
281
|
-
}
|
|
282
272
|
export interface CoinflowMonadHistoryProps extends CoinflowEvmHistoryProps {
|
|
283
273
|
blockchain: 'monad';
|
|
284
274
|
}
|
|
285
275
|
export interface CoinflowTempoHistoryProps extends CoinflowEvmHistoryProps {
|
|
286
276
|
blockchain: 'tempo';
|
|
287
277
|
}
|
|
288
|
-
export type CoinflowHistoryProps = CoinflowSolanaHistoryProps | CoinflowPolygonHistoryProps | CoinflowEthHistoryProps | CoinflowBaseHistoryProps | CoinflowArbitrumHistoryProps |
|
|
278
|
+
export type CoinflowHistoryProps = CoinflowSolanaHistoryProps | CoinflowPolygonHistoryProps | CoinflowEthHistoryProps | CoinflowBaseHistoryProps | CoinflowArbitrumHistoryProps | CoinflowMonadHistoryProps | CoinflowTempoHistoryProps | CoinflowSessionKeyHistoryProps;
|
|
289
279
|
type Bytes = ArrayLike<number>;
|
|
290
280
|
type BytesLike = Bytes | string;
|
|
291
281
|
/**
|
|
@@ -370,21 +360,25 @@ export interface CoinflowCommonPaymentIntentProps extends Omit<CoinflowTypes, 'b
|
|
|
370
360
|
* End-user wallet used for wallet-authenticated payment-intent checkout flows.
|
|
371
361
|
*
|
|
372
362
|
* Required when the target payment intent type depends on a customer wallet
|
|
373
|
-
* (for example: EVM/Solana
|
|
363
|
+
* (for example: EVM/Solana transaction intents or credits/USDC signing flows).
|
|
374
364
|
*
|
|
375
365
|
* The wallet implementation must match the active blockchain.
|
|
376
366
|
*/
|
|
377
367
|
wallet?: WalletTypes;
|
|
378
|
-
blockchain?: 'solana' | 'eth' | 'polygon' | 'base' | 'arbitrum' | '
|
|
368
|
+
blockchain?: 'solana' | 'eth' | 'polygon' | 'base' | 'arbitrum' | 'monad';
|
|
379
369
|
}
|
|
380
370
|
export interface CoinflowCommonPurchaseProps extends CoinflowTypes {
|
|
381
371
|
subtotal?: Subtotal;
|
|
372
|
+
/** @hidden */
|
|
373
|
+
checkoutVersion?: 'v2' | 'v3';
|
|
382
374
|
/**
|
|
383
375
|
* When true, the Apple Pay button skips the totals (fee quote) fetch and
|
|
384
376
|
* charges exactly the `subtotal` passed to the component.
|
|
385
377
|
*/
|
|
386
378
|
useNativeSubtotal?: boolean;
|
|
387
379
|
presentment?: Currency;
|
|
380
|
+
/** @hidden */
|
|
381
|
+
inlineCryptoCheckout?: boolean;
|
|
388
382
|
onSuccess?: OnSuccessMethod;
|
|
389
383
|
sessionKey?: string;
|
|
390
384
|
onAuthDeclined?: OnAuthDeclinedMethod;
|
|
@@ -522,18 +516,13 @@ export interface CoinflowBasePurchaseProps extends CoinflowEvmPurchaseProps {
|
|
|
522
516
|
export interface CoinflowArbitrumPurchaseProps extends CoinflowEvmPurchaseProps {
|
|
523
517
|
blockchain: 'arbitrum';
|
|
524
518
|
}
|
|
525
|
-
export interface CoinflowStellarPurchaseProps extends CoinflowCommonPurchaseProps {
|
|
526
|
-
wallet: StellarWallet;
|
|
527
|
-
transaction?: string;
|
|
528
|
-
blockchain: 'stellar';
|
|
529
|
-
}
|
|
530
519
|
export interface CoinflowMonadPurchaseProps extends CoinflowEvmPurchaseProps {
|
|
531
520
|
blockchain: 'monad';
|
|
532
521
|
}
|
|
533
522
|
export interface CoinflowTempoPurchaseProps extends CoinflowEvmPurchaseProps {
|
|
534
523
|
blockchain: 'tempo';
|
|
535
524
|
}
|
|
536
|
-
export type CoinflowPurchaseProps = CoinflowSolanaPurchaseProps | CoinflowSessionKeyPurchaseProps | CoinflowPolygonPurchaseProps | CoinflowEthPurchaseProps | CoinflowBasePurchaseProps | CoinflowArbitrumPurchaseProps |
|
|
525
|
+
export type CoinflowPurchaseProps = CoinflowSolanaPurchaseProps | CoinflowSessionKeyPurchaseProps | CoinflowPolygonPurchaseProps | CoinflowEthPurchaseProps | CoinflowBasePurchaseProps | CoinflowArbitrumPurchaseProps | CoinflowMonadPurchaseProps | CoinflowTempoPurchaseProps;
|
|
537
526
|
/** Withdraw **/
|
|
538
527
|
export interface CoinflowCommonWithdrawProps extends CoinflowTypes {
|
|
539
528
|
onSuccess?: OnSuccessMethod;
|
|
@@ -545,7 +534,7 @@ export interface CoinflowCommonWithdrawProps extends CoinflowTypes {
|
|
|
545
534
|
bankAccountLinkRedirect?: string;
|
|
546
535
|
additionalWallets?: {
|
|
547
536
|
wallet: string;
|
|
548
|
-
blockchain: 'solana' | 'eth' | 'polygon' | 'base' | 'arbitrum' | 'monad' | 'tempo'
|
|
537
|
+
blockchain: 'solana' | 'eth' | 'polygon' | 'base' | 'arbitrum' | 'monad' | 'tempo';
|
|
549
538
|
}[];
|
|
550
539
|
lockAmount?: boolean;
|
|
551
540
|
transactionSigner?: string;
|
|
@@ -587,7 +576,7 @@ export interface CoinflowCommonWithdrawProps extends CoinflowTypes {
|
|
|
587
576
|
*/
|
|
588
577
|
appReturnUrl?: string;
|
|
589
578
|
}
|
|
590
|
-
export type WalletTypes = SolanaWallet | EthWallet
|
|
579
|
+
export type WalletTypes = SolanaWallet | EthWallet;
|
|
591
580
|
export interface SolanaWalletProps {
|
|
592
581
|
wallet: SolanaWallet;
|
|
593
582
|
connection: Connection;
|
|
@@ -616,11 +605,6 @@ export interface ArbitrumWalletProps {
|
|
|
616
605
|
blockchain: 'arbitrum';
|
|
617
606
|
}
|
|
618
607
|
export type CoinflowArbitrumWithdrawProps = CoinflowEvmWithdrawProps & ArbitrumWalletProps;
|
|
619
|
-
export interface StellarWalletProps {
|
|
620
|
-
wallet: StellarWallet;
|
|
621
|
-
blockchain: 'stellar';
|
|
622
|
-
}
|
|
623
|
-
export type CoinflowStellarWithdrawProps = CoinflowCommonWithdrawProps & StellarWalletProps;
|
|
624
608
|
export interface MonadWalletProps {
|
|
625
609
|
blockchain: 'monad';
|
|
626
610
|
}
|
|
@@ -629,7 +613,7 @@ export interface TempoWalletProps {
|
|
|
629
613
|
blockchain: 'tempo';
|
|
630
614
|
}
|
|
631
615
|
export type CoinflowTempoWithdrawProps = CoinflowEvmWithdrawProps & TempoWalletProps;
|
|
632
|
-
export type CoinflowWithdrawProps = CoinflowSolanaWithdrawProps | CoinflowEthWithdrawProps | CoinflowPolygonWithdrawProps | CoinflowBaseWithdrawProps | CoinflowArbitrumWithdrawProps |
|
|
616
|
+
export type CoinflowWithdrawProps = CoinflowSolanaWithdrawProps | CoinflowEthWithdrawProps | CoinflowPolygonWithdrawProps | CoinflowBaseWithdrawProps | CoinflowArbitrumWithdrawProps | CoinflowMonadWithdrawProps | CoinflowTempoWithdrawProps;
|
|
633
617
|
export interface CommonEvmRedeem {
|
|
634
618
|
/**
|
|
635
619
|
* Whether the UI should wait
|
|
@@ -690,9 +674,7 @@ export interface SafeMintRedeem extends NormalRedeem {
|
|
|
690
674
|
nftContract?: string;
|
|
691
675
|
}
|
|
692
676
|
/**
|
|
693
|
-
*
|
|
694
|
-
*
|
|
695
|
-
* The contract mints the NFT to msg.sender (which is the Coinflow contract), the Coinflow contract picks up the returned NFT ID, and fwd's the NFT to the end user's wallet.
|
|
677
|
+
* @deprecated No longer supported: requests with `type: 'returned'` are rejected with a 400. Use {@link SafeMintRedeem}, {@link KnownTokenIdRedeem} or {@link NormalRedeem} instead.
|
|
696
678
|
*/
|
|
697
679
|
export interface ReturnedTokenIdRedeem extends NormalRedeem {
|
|
698
680
|
type: 'returned';
|
|
@@ -772,7 +754,7 @@ export interface CoinflowBankLinkProps extends Pick<CoinflowTypes, 'merchantId'
|
|
|
772
754
|
*/
|
|
773
755
|
onAccountLinkError?: OnAccountLinkErrorMethod | undefined;
|
|
774
756
|
}
|
|
775
|
-
export interface CoinflowIFrameProps extends Omit<CoinflowTypes, 'merchantId' | 'handleHeightChange'>, Pick<CoinflowCommonPurchaseProps, 'chargebackProtectionData' | 'chargebackProtectionAccountType' | 'webhookInfo' | 'subtotal' | 'useNativeSubtotal' | 'presentment' | 'customerInfo' | 'settlementType' | 'email' | 'planCode' | 'deviceId' | 'jwtToken' | 'origins' | 'threeDsChallengePreference' | 'allowedPaymentMethods' | 'allowedCardFunding' | 'accountFundingTransaction' | 'partialUsdcChecked' | 'isZeroAuthorization' | 'zeroAuthorizationConfig' | 'depositAmounts'>, Pick<CoinflowCommonWithdrawProps, 'bankAccountLinkRedirect' | 'additionalWallets' | 'transactionSigner' | 'amount' | 'lockAmount' | 'lockDefaultToken' | 'origins' | 'allowedWithdrawSpeeds'>, Pick<CoinflowEvmPurchaseProps, 'authOnly'>, Pick<CoinflowSolanaPurchaseProps, 'rent' | 'nativeSolToConvert' | 'destinationAuthKey'>, WithGeo {
|
|
757
|
+
export interface CoinflowIFrameProps extends Omit<CoinflowTypes, 'merchantId' | 'handleHeightChange'>, Pick<CoinflowCommonPurchaseProps, 'chargebackProtectionData' | 'chargebackProtectionAccountType' | 'webhookInfo' | 'subtotal' | 'useNativeSubtotal' | 'presentment' | 'inlineCryptoCheckout' | 'customerInfo' | 'settlementType' | 'email' | 'planCode' | 'deviceId' | 'jwtToken' | 'origins' | 'threeDsChallengePreference' | 'allowedPaymentMethods' | 'allowedCardFunding' | 'accountFundingTransaction' | 'partialUsdcChecked' | 'isZeroAuthorization' | 'zeroAuthorizationConfig' | 'depositAmounts'>, Pick<CoinflowCommonWithdrawProps, 'bankAccountLinkRedirect' | 'additionalWallets' | 'transactionSigner' | 'amount' | 'lockAmount' | 'lockDefaultToken' | 'origins' | 'allowedWithdrawSpeeds'>, Pick<CoinflowEvmPurchaseProps, 'authOnly'>, Pick<CoinflowSolanaPurchaseProps, 'rent' | 'nativeSolToConvert' | 'destinationAuthKey'>, WithGeo {
|
|
776
758
|
walletPubkey: string | null | undefined;
|
|
777
759
|
sessionKey?: string;
|
|
778
760
|
route: string;
|
|
@@ -822,7 +804,7 @@ export interface CoinflowIntentsIFrameProps {
|
|
|
822
804
|
origins?: string[];
|
|
823
805
|
deviceId?: string;
|
|
824
806
|
walletPubkey?: string | undefined | null;
|
|
825
|
-
blockchain?: 'solana' | 'eth' | 'polygon' | 'base' | 'arbitrum' | '
|
|
807
|
+
blockchain?: 'solana' | 'eth' | 'polygon' | 'base' | 'arbitrum' | 'monad';
|
|
826
808
|
}
|
|
827
809
|
export declare enum CardType {
|
|
828
810
|
VISA = "VISA",
|
|
@@ -872,4 +854,8 @@ export interface RecipientAftInfo {
|
|
|
872
854
|
documentReference?: string;
|
|
873
855
|
}
|
|
874
856
|
export declare const RN_REDIRECT_MESSAGE_NAME = "rnredirect";
|
|
857
|
+
export declare enum RedirectFlow {
|
|
858
|
+
Venmo = "venmo",
|
|
859
|
+
Plaid = "plaid"
|
|
860
|
+
}
|
|
875
861
|
export {};
|
|
@@ -12,12 +12,13 @@ export declare class CoinflowUtils {
|
|
|
12
12
|
env?: CoinflowEnvs;
|
|
13
13
|
}): boolean;
|
|
14
14
|
static getCoinflowApiUrl(env?: CoinflowEnvs): string;
|
|
15
|
-
static getCoinflowUrl({ walletPubkey, sessionKey, route, routePrefix, env, subtotal, useNativeSubtotal, presentment, transaction, blockchain, webhookInfo, email, loaderBackground, handleHeightChangeId, bankAccountLinkRedirect, additionalWallets, chargebackProtectionData, chargebackProtectionAccountType, merchantCss, color, rent, lockDefaultToken, tokens, planCode, disableApplePay, disableGooglePay, customerInfo, settlementType, amount, lockAmount, nativeSolToConvert, theme, usePermit, transactionSigner, authOnly, deviceId, jwtToken, origins, threeDsChallengePreference, supportEmail, destinationAuthKey, allowedPaymentMethods, allowedCardFunding, accountFundingTransaction, partialUsdcChecked, allowedWithdrawSpeeds, isZeroAuthorization, zeroAuthorizationConfig, userLocation, appReturnUrl, depositAmounts, ownerOverride, bridgeId, bankLinkOnly, baseUrl, }: CoinflowIFrameProps & {
|
|
15
|
+
static getCoinflowUrl({ walletPubkey, sessionKey, route, routePrefix, env, subtotal, useNativeSubtotal, presentment, inlineCryptoCheckout, transaction, blockchain, webhookInfo, email, loaderBackground, handleHeightChangeId, bankAccountLinkRedirect, additionalWallets, chargebackProtectionData, chargebackProtectionAccountType, merchantCss, color, rent, lockDefaultToken, tokens, planCode, disableApplePay, disableGooglePay, customerInfo, settlementType, amount, lockAmount, nativeSolToConvert, theme, usePermit, transactionSigner, authOnly, deviceId, jwtToken, origins, threeDsChallengePreference, supportEmail, destinationAuthKey, allowedPaymentMethods, allowedCardFunding, accountFundingTransaction, partialUsdcChecked, allowedWithdrawSpeeds, isZeroAuthorization, zeroAuthorizationConfig, userLocation, appReturnUrl, depositAmounts, ownerOverride, bridgeId, bankLinkOnly, baseUrl, }: CoinflowIFrameProps & {
|
|
16
16
|
baseUrl?: string;
|
|
17
17
|
} & WithGeo): string;
|
|
18
18
|
static getCoinflowIntentsUrl({ baseUrl, route, color, theme, env, origins, deviceId, merchantCss, loaderBackground, handleHeightChangeId, }: CoinflowIntentsIFrameProps & {
|
|
19
19
|
baseUrl?: string;
|
|
20
20
|
}): string;
|
|
21
|
+
static getPurchaseRoute({ merchantId, checkoutVersion, }: Pick<CoinflowPurchaseProps, 'merchantId' | 'checkoutVersion'>): Pick<CoinflowIFrameProps, 'route' | 'routePrefix'>;
|
|
21
22
|
static getTransaction(props: CoinflowPurchaseProps): string | undefined;
|
|
22
23
|
static byBlockchain<T>(blockchain: CoinflowBlockchain, args: {
|
|
23
24
|
solana: T;
|
|
@@ -25,7 +26,6 @@ export declare class CoinflowUtils {
|
|
|
25
26
|
polygon: T;
|
|
26
27
|
base: T;
|
|
27
28
|
arbitrum: T;
|
|
28
|
-
stellar: T;
|
|
29
29
|
monad: T;
|
|
30
30
|
tempo: T;
|
|
31
31
|
user: T;
|