@coinflowlabs/react-native 4.2.4 → 4.2.5-SNAPSHOT1
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/build/CoinflowWebView.js +7 -1
- package/build/CoinflowWebView.js.map +1 -1
- package/package.json +1 -1
- package/build/CoinflowPurchase.d.ts +0 -4
- package/build/CoinflowPurchase.js +0 -20
- package/build/CoinflowPurchase.js.map +0 -1
- package/build/CoinflowPurchaseHistory.d.ts +0 -4
- package/build/CoinflowPurchaseHistory.js +0 -16
- package/build/CoinflowPurchaseHistory.js.map +0 -1
- package/build/CoinflowSkeleton.d.ts +0 -6
- package/build/CoinflowSkeleton.js +0 -96
- package/build/CoinflowSkeleton.js.map +0 -1
- package/build/CoinflowWebView.d.ts +0 -24
- package/build/CoinflowWithdraw.d.ts +0 -4
- package/build/CoinflowWithdraw.js +0 -16
- package/build/CoinflowWithdraw.js.map +0 -1
- package/build/CoinflowWithdrawHistory.d.ts +0 -4
- package/build/CoinflowWithdrawHistory.js +0 -16
- package/build/CoinflowWithdrawHistory.js.map +0 -1
- package/build/common/CoinflowLibMessageHandlers.d.ts +0 -35
- package/build/common/CoinflowLibMessageHandlers.js +0 -258
- package/build/common/CoinflowLibMessageHandlers.js.map +0 -1
- package/build/common/CoinflowTypes.d.ts +0 -423
- package/build/common/CoinflowTypes.js +0 -39
- package/build/common/CoinflowTypes.js.map +0 -1
- package/build/common/CoinflowUtils.d.ts +0 -24
- package/build/common/CoinflowUtils.js +0 -244
- package/build/common/CoinflowUtils.js.map +0 -1
- package/build/common/SolanaPeerDeps.d.ts +0 -5
- package/build/common/SolanaPeerDeps.js +0 -17
- package/build/common/SolanaPeerDeps.js.map +0 -1
- package/build/common/card-form/TokenEx.d.ts +0 -171
- package/build/common/card-form/TokenEx.js +0 -12
- package/build/common/card-form/TokenEx.js.map +0 -1
- package/build/common/card-form/tokenexHelpers.d.ts +0 -35
- package/build/common/card-form/tokenexHelpers.js +0 -210
- package/build/common/card-form/tokenexHelpers.js.map +0 -1
- package/build/common/index.d.ts +0 -10
- package/build/common/index.js +0 -11
- package/build/common/index.js.map +0 -1
- package/build/common/types/AnyObject.d.ts +0 -5
- package/build/common/types/AnyObject.js +0 -2
- package/build/common/types/AnyObject.js.map +0 -1
- package/build/common/types/CartitemCommon.d.ts +0 -163
- package/build/common/types/CartitemCommon.js +0 -2
- package/build/common/types/CartitemCommon.js.map +0 -1
- package/build/common/types/Subtotal.d.ts +0 -172
- package/build/common/types/Subtotal.js +0 -276
- package/build/common/types/Subtotal.js.map +0 -1
- package/build/common/types/cryptoCartItem.d.ts +0 -63
- package/build/common/types/cryptoCartItem.js +0 -2
- package/build/common/types/cryptoCartItem.js.map +0 -1
- package/build/common/types/giftCardCartItem.d.ts +0 -58
- package/build/common/types/giftCardCartItem.js +0 -2
- package/build/common/types/giftCardCartItem.js.map +0 -1
- package/build/common/types/moneyTopUpCartItem.d.ts +0 -44
- package/build/common/types/moneyTopUpCartItem.js +0 -2
- package/build/common/types/moneyTopUpCartItem.js.map +0 -1
- package/build/common/types/nftCartItem.d.ts +0 -99
- package/build/common/types/nftCartItem.js +0 -44
- package/build/common/types/nftCartItem.js.map +0 -1
- package/build/index.d.ts +0 -6
- package/build/index.js +0 -7
- package/build/index.js.map +0 -1
|
@@ -1,244 +0,0 @@
|
|
|
1
|
-
import { __awaiter, __generator } from "tslib";
|
|
2
|
-
import { web3, base58 } from './SolanaPeerDeps';
|
|
3
|
-
import LZString from 'lz-string';
|
|
4
|
-
import { Currency } from './types/Subtotal';
|
|
5
|
-
var CoinflowUtils = /** @class */ (function () {
|
|
6
|
-
function CoinflowUtils(env) {
|
|
7
|
-
this.env = env !== null && env !== void 0 ? env : 'prod';
|
|
8
|
-
if (this.env === 'prod')
|
|
9
|
-
this.url = 'https://api.coinflow.cash';
|
|
10
|
-
else if (this.env === 'local')
|
|
11
|
-
this.url = 'http://localhost:5000';
|
|
12
|
-
else
|
|
13
|
-
this.url = "https://api-".concat(this.env, ".coinflow.cash");
|
|
14
|
-
}
|
|
15
|
-
CoinflowUtils.prototype.getNSurePartnerId = function (merchantId) {
|
|
16
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
17
|
-
return __generator(this, function (_a) {
|
|
18
|
-
return [2 /*return*/, fetch(this.url + "/merchant/view/".concat(merchantId))
|
|
19
|
-
.then(function (response) { return response.json(); })
|
|
20
|
-
.then(function (json) { var _a; return ((_a = json.nSureSettings) === null || _a === void 0 ? void 0 : _a.nSurePartnerId) || json.nSurePartnerId; })
|
|
21
|
-
.catch(function (e) {
|
|
22
|
-
console.error(e);
|
|
23
|
-
return undefined;
|
|
24
|
-
})];
|
|
25
|
-
});
|
|
26
|
-
});
|
|
27
|
-
};
|
|
28
|
-
CoinflowUtils.getCoinflowBaseUrl = function (env) {
|
|
29
|
-
if (!env || env === 'prod')
|
|
30
|
-
return 'https://coinflow.cash';
|
|
31
|
-
// @ts-expect-error This is for testing
|
|
32
|
-
if (env === 'ngrok')
|
|
33
|
-
return 'https://coinflow.ngrok.app';
|
|
34
|
-
if (env === 'local')
|
|
35
|
-
return 'http://localhost:3000';
|
|
36
|
-
return "https://".concat(env, ".coinflow.cash");
|
|
37
|
-
};
|
|
38
|
-
CoinflowUtils.getCoinflowApiUrl = function (env) {
|
|
39
|
-
if (!env || env === 'prod')
|
|
40
|
-
return 'https://api.coinflow.cash';
|
|
41
|
-
if (env === 'local')
|
|
42
|
-
return 'http://localhost:5000';
|
|
43
|
-
return "https://api-".concat(env, ".coinflow.cash");
|
|
44
|
-
};
|
|
45
|
-
CoinflowUtils.getCoinflowUrl = function (_a) {
|
|
46
|
-
var _b;
|
|
47
|
-
var walletPubkey = _a.walletPubkey, sessionKey = _a.sessionKey, route = _a.route, routePrefix = _a.routePrefix, env = _a.env, subtotal = _a.subtotal, presentment = _a.presentment, transaction = _a.transaction, _c = _a.blockchain, blockchain = _c === void 0 ? 'solana' : _c, webhookInfo = _a.webhookInfo, email = _a.email, loaderBackground = _a.loaderBackground, handleHeightChangeId = _a.handleHeightChangeId, bankAccountLinkRedirect = _a.bankAccountLinkRedirect, additionalWallets = _a.additionalWallets, chargebackProtectionData = _a.chargebackProtectionData, merchantCss = _a.merchantCss, color = _a.color, rent = _a.rent, lockDefaultToken = _a.lockDefaultToken, tokens = _a.tokens, planCode = _a.planCode, disableApplePay = _a.disableApplePay, disableGooglePay = _a.disableGooglePay, customerInfo = _a.customerInfo, settlementType = _a.settlementType, lockAmount = _a.lockAmount, nativeSolToConvert = _a.nativeSolToConvert, theme = _a.theme, usePermit = _a.usePermit, transactionSigner = _a.transactionSigner, authOnly = _a.authOnly, deviceId = _a.deviceId, jwtToken = _a.jwtToken, origins = _a.origins, threeDsChallengePreference = _a.threeDsChallengePreference, supportEmail = _a.supportEmail, destinationAuthKey = _a.destinationAuthKey, allowedPaymentMethods = _a.allowedPaymentMethods;
|
|
48
|
-
var prefix = routePrefix
|
|
49
|
-
? "/".concat(routePrefix, "/").concat(blockchain)
|
|
50
|
-
: "/".concat(blockchain);
|
|
51
|
-
var url = new URL(prefix + route, CoinflowUtils.getCoinflowBaseUrl(env));
|
|
52
|
-
if (walletPubkey)
|
|
53
|
-
url.searchParams.append('pubkey', walletPubkey);
|
|
54
|
-
if (sessionKey)
|
|
55
|
-
url.searchParams.append('sessionKey', sessionKey);
|
|
56
|
-
if (transaction) {
|
|
57
|
-
url.searchParams.append('transaction', transaction);
|
|
58
|
-
}
|
|
59
|
-
if (subtotal) {
|
|
60
|
-
if ('cents' in subtotal) {
|
|
61
|
-
url.searchParams.append('cents', subtotal.cents.toString());
|
|
62
|
-
if ('currency' in subtotal) {
|
|
63
|
-
url.searchParams.append('currency', subtotal.currency.toString());
|
|
64
|
-
}
|
|
65
|
-
else {
|
|
66
|
-
url.searchParams.append('currency', Currency.USD);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
else {
|
|
70
|
-
url.searchParams.append('token', subtotal.address.toString());
|
|
71
|
-
url.searchParams.append('amount', subtotal.amount.toString());
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
if (presentment)
|
|
75
|
-
url.searchParams.append('presentment', presentment);
|
|
76
|
-
if (webhookInfo) {
|
|
77
|
-
url.searchParams.append('webhookInfo', LZString.compressToEncodedURIComponent(JSON.stringify(webhookInfo)));
|
|
78
|
-
}
|
|
79
|
-
if (theme) {
|
|
80
|
-
url.searchParams.append('theme', LZString.compressToEncodedURIComponent(JSON.stringify(theme)));
|
|
81
|
-
}
|
|
82
|
-
if (customerInfo) {
|
|
83
|
-
url.searchParams.append('customerInfo', LZString.compressToEncodedURIComponent(JSON.stringify(customerInfo)));
|
|
84
|
-
}
|
|
85
|
-
if (email) {
|
|
86
|
-
url.searchParams.append('email', email);
|
|
87
|
-
}
|
|
88
|
-
if (supportEmail)
|
|
89
|
-
url.searchParams.append('supportEmail', supportEmail);
|
|
90
|
-
if (tokens) {
|
|
91
|
-
url.searchParams.append('tokens', tokens.toString());
|
|
92
|
-
}
|
|
93
|
-
if (loaderBackground) {
|
|
94
|
-
url.searchParams.append('loaderBackground', loaderBackground);
|
|
95
|
-
}
|
|
96
|
-
if (handleHeightChangeId) {
|
|
97
|
-
url.searchParams.append('useHeightChange', handleHeightChangeId.toString());
|
|
98
|
-
}
|
|
99
|
-
if (bankAccountLinkRedirect) {
|
|
100
|
-
url.searchParams.append('bankAccountLinkRedirect', bankAccountLinkRedirect);
|
|
101
|
-
}
|
|
102
|
-
if (additionalWallets)
|
|
103
|
-
url.searchParams.append('additionalWallets', LZString.compressToEncodedURIComponent(JSON.stringify(additionalWallets)));
|
|
104
|
-
if (chargebackProtectionData)
|
|
105
|
-
url.searchParams.append('chargebackProtectionData', LZString.compressToEncodedURIComponent(JSON.stringify(chargebackProtectionData)));
|
|
106
|
-
if (deviceId) {
|
|
107
|
-
url.searchParams.append('deviceId', deviceId);
|
|
108
|
-
}
|
|
109
|
-
else {
|
|
110
|
-
if (typeof window !== 'undefined') {
|
|
111
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
112
|
-
// @ts-ignore
|
|
113
|
-
var deviceId_1 = (_b = window === null || window === void 0 ? void 0 : window.nSureSDK) === null || _b === void 0 ? void 0 : _b.getDeviceId();
|
|
114
|
-
if (deviceId_1)
|
|
115
|
-
url.searchParams.append('deviceId', deviceId_1);
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
if (merchantCss)
|
|
119
|
-
url.searchParams.append('merchantCss', merchantCss);
|
|
120
|
-
if (color)
|
|
121
|
-
url.searchParams.append('color', color);
|
|
122
|
-
if (rent)
|
|
123
|
-
url.searchParams.append('rent', rent.lamports.toString());
|
|
124
|
-
if (nativeSolToConvert)
|
|
125
|
-
url.searchParams.append('nativeSolToConvert', nativeSolToConvert.lamports.toString());
|
|
126
|
-
if (lockDefaultToken)
|
|
127
|
-
url.searchParams.append('lockDefaultToken', 'true');
|
|
128
|
-
if (planCode)
|
|
129
|
-
url.searchParams.append('planCode', planCode);
|
|
130
|
-
if (disableApplePay)
|
|
131
|
-
url.searchParams.append('disableApplePay', 'true');
|
|
132
|
-
if (disableGooglePay)
|
|
133
|
-
url.searchParams.append('disableGooglePay', 'true');
|
|
134
|
-
if (settlementType)
|
|
135
|
-
url.searchParams.append('settlementType', settlementType);
|
|
136
|
-
if (lockAmount)
|
|
137
|
-
url.searchParams.append('lockAmount', 'true');
|
|
138
|
-
if (usePermit === false)
|
|
139
|
-
url.searchParams.append('usePermit', 'false');
|
|
140
|
-
if (transactionSigner)
|
|
141
|
-
url.searchParams.append('transactionSigner', transactionSigner);
|
|
142
|
-
if (authOnly === true)
|
|
143
|
-
url.searchParams.append('authOnly', 'true');
|
|
144
|
-
if (jwtToken)
|
|
145
|
-
url.searchParams.append('jwtToken', jwtToken);
|
|
146
|
-
if (origins)
|
|
147
|
-
url.searchParams.append('origins', LZString.compressToEncodedURIComponent(JSON.stringify(origins)));
|
|
148
|
-
if (allowedPaymentMethods)
|
|
149
|
-
url.searchParams.append('allowedPaymentMethods', allowedPaymentMethods.join(','));
|
|
150
|
-
if (threeDsChallengePreference)
|
|
151
|
-
url.searchParams.append('threeDsChallengePreference', threeDsChallengePreference);
|
|
152
|
-
if (destinationAuthKey)
|
|
153
|
-
url.searchParams.append('destinationAuthKey', destinationAuthKey);
|
|
154
|
-
return url.toString();
|
|
155
|
-
};
|
|
156
|
-
CoinflowUtils.getTransaction = function (props) {
|
|
157
|
-
if (!props.blockchain)
|
|
158
|
-
return undefined;
|
|
159
|
-
return this.byBlockchain(props.blockchain, {
|
|
160
|
-
solana: function () {
|
|
161
|
-
if (!('transaction' in props))
|
|
162
|
-
return undefined;
|
|
163
|
-
var transaction = props.transaction;
|
|
164
|
-
if (!web3)
|
|
165
|
-
throw new Error('@solana/web3.js dependency is required for Solana');
|
|
166
|
-
if (!base58)
|
|
167
|
-
throw new Error('bs58 dependency is required for Solana');
|
|
168
|
-
if (!transaction)
|
|
169
|
-
return undefined;
|
|
170
|
-
return base58.encode(transaction.serialize({
|
|
171
|
-
requireAllSignatures: false,
|
|
172
|
-
verifySignatures: false,
|
|
173
|
-
}));
|
|
174
|
-
},
|
|
175
|
-
polygon: function () {
|
|
176
|
-
if (!('transaction' in props))
|
|
177
|
-
return undefined;
|
|
178
|
-
var transaction = props.transaction;
|
|
179
|
-
return LZString.compressToEncodedURIComponent(JSON.stringify(transaction));
|
|
180
|
-
},
|
|
181
|
-
eth: function () {
|
|
182
|
-
if (!('transaction' in props))
|
|
183
|
-
return undefined;
|
|
184
|
-
var transaction = props.transaction;
|
|
185
|
-
return LZString.compressToEncodedURIComponent(JSON.stringify(transaction));
|
|
186
|
-
},
|
|
187
|
-
base: function () {
|
|
188
|
-
if (!('transaction' in props))
|
|
189
|
-
return undefined;
|
|
190
|
-
var transaction = props.transaction;
|
|
191
|
-
return LZString.compressToEncodedURIComponent(JSON.stringify(transaction));
|
|
192
|
-
},
|
|
193
|
-
arbitrum: function () {
|
|
194
|
-
if (!('transaction' in props))
|
|
195
|
-
return undefined;
|
|
196
|
-
var transaction = props.transaction;
|
|
197
|
-
return LZString.compressToEncodedURIComponent(JSON.stringify(transaction));
|
|
198
|
-
},
|
|
199
|
-
user: function () {
|
|
200
|
-
return undefined;
|
|
201
|
-
},
|
|
202
|
-
})();
|
|
203
|
-
};
|
|
204
|
-
CoinflowUtils.byBlockchain = function (blockchain, args) {
|
|
205
|
-
switch (blockchain) {
|
|
206
|
-
case 'solana':
|
|
207
|
-
return args.solana;
|
|
208
|
-
case 'polygon':
|
|
209
|
-
return args.polygon;
|
|
210
|
-
case 'eth':
|
|
211
|
-
return args.eth;
|
|
212
|
-
case 'base':
|
|
213
|
-
return args.base;
|
|
214
|
-
case 'arbitrum':
|
|
215
|
-
return args.arbitrum;
|
|
216
|
-
case 'user':
|
|
217
|
-
return args.user;
|
|
218
|
-
default:
|
|
219
|
-
throw new Error('blockchain not supported!');
|
|
220
|
-
}
|
|
221
|
-
};
|
|
222
|
-
return CoinflowUtils;
|
|
223
|
-
}());
|
|
224
|
-
export { CoinflowUtils };
|
|
225
|
-
export function getCustomerName(info) {
|
|
226
|
-
if (!info)
|
|
227
|
-
return undefined;
|
|
228
|
-
var firstName, lastName;
|
|
229
|
-
if ('name' in info && info.name) {
|
|
230
|
-
firstName = info.name.split(' ')[0];
|
|
231
|
-
lastName = info.name.split(' ').slice(1).join(' ');
|
|
232
|
-
}
|
|
233
|
-
if ('firstName' in info && info.firstName)
|
|
234
|
-
firstName = info.firstName;
|
|
235
|
-
if ('lastName' in info && info.lastName)
|
|
236
|
-
lastName = info.lastName;
|
|
237
|
-
if (firstName && lastName)
|
|
238
|
-
return {
|
|
239
|
-
firstName: firstName,
|
|
240
|
-
lastName: lastName,
|
|
241
|
-
};
|
|
242
|
-
return undefined;
|
|
243
|
-
}
|
|
244
|
-
//# sourceMappingURL=CoinflowUtils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CoinflowUtils.js","sourceRoot":"","sources":["../../src/common/CoinflowUtils.ts"],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I,CAAC,IAAI;QAAE,OAAO,SAAS,CAAC;IAE5B,IAAI,SAA6B,EAAE,QAA4B,CAAC;IAChE,IAAI,MAAM,IAAI,IAAI,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC;QAChC,SAAS,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;QACpC,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACrD,CAAC;IAED,IAAI,WAAW,IAAI,IAAI,IAAI,IAAI,CAAC,SAAS;QAAE,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;IAEtE,IAAI,UAAU,IAAI,IAAI,IAAI,IAAI,CAAC,QAAQ;QAAE,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;IAElE,IAAI,SAAS,IAAI,QAAQ;QACvB,OAAO;YACL,SAAS,WAAA;YACT,QAAQ,UAAA;SACT,CAAC;IACJ,OAAO,SAAS,CAAC;AACnB,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
// This works in angular, but not react
|
|
2
|
-
// let web3: typeof import('@solana/web3.js') | undefined;
|
|
3
|
-
// let base58: typeof import('bs58') | undefined;
|
|
4
|
-
//
|
|
5
|
-
// try {
|
|
6
|
-
// web3 = require('@solana/web3.js');
|
|
7
|
-
// base58 = require('bs58');
|
|
8
|
-
// } catch (e) {}
|
|
9
|
-
//
|
|
10
|
-
// export {web3, base58};
|
|
11
|
-
// This works in react, but not angular
|
|
12
|
-
import * as SolanaWeb3Js from '@solana/web3.js';
|
|
13
|
-
import base58Imported from 'bs58';
|
|
14
|
-
var web3 = SolanaWeb3Js;
|
|
15
|
-
var base58 = base58Imported;
|
|
16
|
-
export { web3, base58 };
|
|
17
|
-
//# sourceMappingURL=SolanaPeerDeps.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SolanaPeerDeps.js","sourceRoot":"","sources":["../../src/common/SolanaPeerDeps.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,0DAA0D;AAC1D,iDAAiD;AACjD,EAAE;AACF,QAAQ;AACR,uCAAuC;AACvC,8BAA8B;AAC9B,iBAAiB;AACjB,EAAE;AACF,yBAAyB;AAEzB,uCAAuC;AACvC,OAAO,KAAK,YAAY,MAAM,iBAAiB,CAAC;AAChD,OAAO,cAAc,MAAM,MAAM,CAAC;AAElC,IAAM,IAAI,GAAoC,YAAY,CAAC;AAC3D,IAAM,MAAM,GAAsC,cAAc,CAAC;AACjE,OAAO,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC"}
|
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
import { CardType, CoinflowEnvs } from '../CoinflowTypes';
|
|
2
|
-
import type { Properties as CSSProperties } from 'csstype';
|
|
3
|
-
export declare const TokenExCardNumberIframeId = "tokenExCardNumber";
|
|
4
|
-
export declare const TokenExCvvContainerID = "tokenExCardCvv";
|
|
5
|
-
export interface TokenExIframe extends ReturnType<typeof TokenEx.Iframe> {
|
|
6
|
-
tokenize: () => Promise<TokenizationResponse>;
|
|
7
|
-
}
|
|
8
|
-
export declare const CARD_TYPE_MAPPING: Record<CardType, string>;
|
|
9
|
-
export interface TokenExIFrameConfiguration {
|
|
10
|
-
origin: string;
|
|
11
|
-
timestamp: string;
|
|
12
|
-
tokenExID: string;
|
|
13
|
-
tokenScheme: string;
|
|
14
|
-
authenticationKey: string;
|
|
15
|
-
pci: true;
|
|
16
|
-
token?: string;
|
|
17
|
-
use3DS?: boolean;
|
|
18
|
-
threeDSMethodNotificationUrl?: string;
|
|
19
|
-
}
|
|
20
|
-
export interface CardFormInputStyles {
|
|
21
|
-
base: CSSProperties | string;
|
|
22
|
-
placeholder?: CSSProperties | string;
|
|
23
|
-
focus?: CSSProperties | string;
|
|
24
|
-
error?: CSSProperties | string;
|
|
25
|
-
}
|
|
26
|
-
export type CoinflowCardTokenResponse = {
|
|
27
|
-
token: string;
|
|
28
|
-
};
|
|
29
|
-
export interface CoinflowCardNumberInputProps {
|
|
30
|
-
env: CoinflowEnvs;
|
|
31
|
-
css: CardFormInputStyles & {
|
|
32
|
-
cvv: CardFormInputStyles;
|
|
33
|
-
};
|
|
34
|
-
debug?: boolean;
|
|
35
|
-
origins: string[];
|
|
36
|
-
font?: string;
|
|
37
|
-
}
|
|
38
|
-
export interface CoinflowCvvOnlyInputProps {
|
|
39
|
-
token: string;
|
|
40
|
-
cardType: CardType;
|
|
41
|
-
env: CoinflowEnvs;
|
|
42
|
-
css: CardFormInputStyles & {
|
|
43
|
-
cvv: CardFormInputStyles;
|
|
44
|
-
};
|
|
45
|
-
debug?: boolean;
|
|
46
|
-
origins: string[];
|
|
47
|
-
font?: string;
|
|
48
|
-
}
|
|
49
|
-
export interface VersionDetail {
|
|
50
|
-
threeDSMethodURL: string;
|
|
51
|
-
acsStartProtocolVersion: string;
|
|
52
|
-
acsEndProtocolVersion: string;
|
|
53
|
-
threeDSServerStartVersion: string;
|
|
54
|
-
threeDSServerEndVersion?: string;
|
|
55
|
-
acsInfoInd: [string];
|
|
56
|
-
directoryServerID: string;
|
|
57
|
-
dsStartProtocolVersion: string;
|
|
58
|
-
dsEndProtocolVersion: string;
|
|
59
|
-
dsIdentifier: string;
|
|
60
|
-
threeDSServerTransID: string;
|
|
61
|
-
}
|
|
62
|
-
export interface TokenizationResponse {
|
|
63
|
-
cardType: string;
|
|
64
|
-
cvvIncluded: true;
|
|
65
|
-
firstSix: string;
|
|
66
|
-
lastFour: string;
|
|
67
|
-
referenceNumber: string;
|
|
68
|
-
token: string;
|
|
69
|
-
tokenHMAC: string;
|
|
70
|
-
recommended3dsVersion?: Record<string, string>;
|
|
71
|
-
threeDSecureResponse?: VersionDetail[];
|
|
72
|
-
}
|
|
73
|
-
declare global {
|
|
74
|
-
namespace TokenEx {
|
|
75
|
-
interface FraudServicesConfig {
|
|
76
|
-
useKount?: boolean;
|
|
77
|
-
kount?: {
|
|
78
|
-
merchantId?: string;
|
|
79
|
-
mode?: string;
|
|
80
|
-
anId?: string;
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
interface Config {
|
|
84
|
-
debug?: boolean;
|
|
85
|
-
enablePrettyFormat?: boolean;
|
|
86
|
-
maskInput?: boolean;
|
|
87
|
-
enableValidateOnBlur?: boolean;
|
|
88
|
-
enableAriaRequired?: boolean;
|
|
89
|
-
pci?: boolean;
|
|
90
|
-
cvvOnly?: boolean;
|
|
91
|
-
allowUnknownCardTypes?: boolean;
|
|
92
|
-
enableAutoComplete?: boolean;
|
|
93
|
-
returnAutoCompleteValues?: boolean;
|
|
94
|
-
returnKhash?: boolean;
|
|
95
|
-
returnWhash?: boolean;
|
|
96
|
-
enforceLuhnCompliance?: boolean;
|
|
97
|
-
use3DS?: boolean;
|
|
98
|
-
enableValidateOnKeyUp?: boolean;
|
|
99
|
-
enableValidateOnCvvKeyUp?: boolean;
|
|
100
|
-
expiresInSeconds?: number;
|
|
101
|
-
useExtendedBIN?: boolean;
|
|
102
|
-
inlineIframeJavaScript?: boolean;
|
|
103
|
-
iframeVersion?: number;
|
|
104
|
-
authenticationKey?: string;
|
|
105
|
-
origin?: string;
|
|
106
|
-
tokenExID?: string;
|
|
107
|
-
timestamp?: string;
|
|
108
|
-
tokenScheme?: string;
|
|
109
|
-
token?: string;
|
|
110
|
-
customDataLabel?: string;
|
|
111
|
-
customCvvDataLabel?: string;
|
|
112
|
-
title?: string;
|
|
113
|
-
cvvTitle?: string;
|
|
114
|
-
inputTitle?: string;
|
|
115
|
-
cvvInputTitle?: string;
|
|
116
|
-
cardMaxLengths?: {
|
|
117
|
-
visa?: number;
|
|
118
|
-
mastercard?: number;
|
|
119
|
-
americanExpress?: number;
|
|
120
|
-
discover?: number;
|
|
121
|
-
jcb?: number;
|
|
122
|
-
diners?: number;
|
|
123
|
-
};
|
|
124
|
-
fraudServices?: FraudServicesConfig;
|
|
125
|
-
threeDSMethodNotificationUrl?: string;
|
|
126
|
-
customDataTypes?: string | object;
|
|
127
|
-
cvvContainerID?: string;
|
|
128
|
-
cvvPlaceholder?: string;
|
|
129
|
-
cardType?: string;
|
|
130
|
-
forterSiteId?: string;
|
|
131
|
-
forterUsername?: string;
|
|
132
|
-
customRegEx?: string;
|
|
133
|
-
placeholder?: string;
|
|
134
|
-
inputType?: string;
|
|
135
|
-
inputMode?: string;
|
|
136
|
-
font?: string;
|
|
137
|
-
cvv?: boolean;
|
|
138
|
-
styles: {
|
|
139
|
-
base: string;
|
|
140
|
-
focus: string;
|
|
141
|
-
error: string;
|
|
142
|
-
placeholder: string;
|
|
143
|
-
cvv: {
|
|
144
|
-
base: string;
|
|
145
|
-
focus: string;
|
|
146
|
-
placeholder: string;
|
|
147
|
-
error: string;
|
|
148
|
-
};
|
|
149
|
-
};
|
|
150
|
-
}
|
|
151
|
-
interface IframeAPI {
|
|
152
|
-
load(): void;
|
|
153
|
-
on: (event: string, callback: (data?: any) => void) => void;
|
|
154
|
-
tokenize(): void;
|
|
155
|
-
validate(): void;
|
|
156
|
-
reset(): void;
|
|
157
|
-
blur(): void;
|
|
158
|
-
cvvBlur(): void;
|
|
159
|
-
focus(): void;
|
|
160
|
-
cvvFocus(): void;
|
|
161
|
-
remove(): void;
|
|
162
|
-
toggleMask(): void;
|
|
163
|
-
toggleCvvMask(): void;
|
|
164
|
-
setPAN(pan: string): void;
|
|
165
|
-
binLookup(): void;
|
|
166
|
-
validateConfig(): void;
|
|
167
|
-
setFraudServicesRequestDetails(data: string): void;
|
|
168
|
-
}
|
|
169
|
-
function Iframe(containerID: string, configuration: Config): IframeAPI;
|
|
170
|
-
}
|
|
171
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
// Type definitions for TokenEx iframe integration
|
|
2
|
-
var _a;
|
|
3
|
-
import { CardType } from '../CoinflowTypes';
|
|
4
|
-
export var TokenExCardNumberIframeId = 'tokenExCardNumber';
|
|
5
|
-
export var TokenExCvvContainerID = 'tokenExCardCvv';
|
|
6
|
-
export var CARD_TYPE_MAPPING = (_a = {},
|
|
7
|
-
_a[CardType.VISA] = 'visa',
|
|
8
|
-
_a[CardType.MASTERCARD] = 'masterCard',
|
|
9
|
-
_a[CardType.AMEX] = 'americanExpress',
|
|
10
|
-
_a[CardType.DISCOVER] = 'discover',
|
|
11
|
-
_a);
|
|
12
|
-
//# sourceMappingURL=TokenEx.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TokenEx.js","sourceRoot":"","sources":["../../../src/common/card-form/TokenEx.ts"],"names":[],"mappings":"AAAA,kDAAkD;;AAElD,OAAO,EAAC,QAAQ,EAAe,MAAM,kBAAkB,CAAC;AAGxD,MAAM,CAAC,IAAM,yBAAyB,GAAG,mBAAmB,CAAC;AAC7D,MAAM,CAAC,IAAM,qBAAqB,GAAG,gBAAgB,CAAC;AAKtD,MAAM,CAAC,IAAM,iBAAiB;IAC5B,GAAC,QAAQ,CAAC,IAAI,IAAG,MAAM;IACvB,GAAC,QAAQ,CAAC,UAAU,IAAG,YAAY;IACnC,GAAC,QAAQ,CAAC,IAAI,IAAG,iBAAiB;IAClC,GAAC,QAAQ,CAAC,QAAQ,IAAG,UAAU;OAChC,CAAC"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { TokenExIframe, TokenExIFrameConfiguration } from './TokenEx';
|
|
2
|
-
import { CardType, CoinflowEnvs } from '../CoinflowTypes';
|
|
3
|
-
export type MerchantIdOrCheckoutJwt = {
|
|
4
|
-
checkoutJwt: string;
|
|
5
|
-
} | {
|
|
6
|
-
merchantId: string;
|
|
7
|
-
};
|
|
8
|
-
export interface CommonDoInitializeTokenExIframeArgs {
|
|
9
|
-
css: string;
|
|
10
|
-
debug?: boolean;
|
|
11
|
-
font?: string;
|
|
12
|
-
origins: string[];
|
|
13
|
-
tokenExScriptLoaded: boolean;
|
|
14
|
-
env: CoinflowEnvs;
|
|
15
|
-
setCachedToken: (s: string | undefined) => void;
|
|
16
|
-
setLoaded: (b: boolean) => void;
|
|
17
|
-
}
|
|
18
|
-
export type DoInitializeTokenExIframeArgs = CommonDoInitializeTokenExIframeArgs & MerchantIdOrCheckoutJwt;
|
|
19
|
-
export type DoInitializeCvvOnlyTokenExIframeArgs = DoInitializeTokenExIframeArgs & {
|
|
20
|
-
token: string;
|
|
21
|
-
cardType: CardType;
|
|
22
|
-
};
|
|
23
|
-
export type GetIFrameConfigArgs = {
|
|
24
|
-
token?: string;
|
|
25
|
-
origins: string[];
|
|
26
|
-
env: CoinflowEnvs;
|
|
27
|
-
} & MerchantIdOrCheckoutJwt;
|
|
28
|
-
export declare function getIframeConfig(args: GetIFrameConfigArgs): Promise<TokenExIFrameConfiguration>;
|
|
29
|
-
export declare function setTokenExScriptTag({ env, setTokenExScriptLoaded, }: {
|
|
30
|
-
env: CoinflowEnvs;
|
|
31
|
-
setTokenExScriptLoaded: (b: boolean) => void;
|
|
32
|
-
}): void;
|
|
33
|
-
export declare function doInitializeCvvOnlyTokenExIframe(args: DoInitializeCvvOnlyTokenExIframeArgs): Promise<TokenExIframe | undefined>;
|
|
34
|
-
export declare function doInitializeTokenExIframe(args: DoInitializeTokenExIframeArgs): Promise<TokenExIframe | undefined>;
|
|
35
|
-
export declare function doInitializeTokenExCardOnlyIframe(args: DoInitializeTokenExIframeArgs): Promise<TokenExIframe | undefined>;
|