@idonatedev/idonate-sdk 1.0.17 → 1.0.18
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/tokenize/CardConnectTokenizer.d.ts +51 -0
- package/dist/tokenize/CardConnectTokenizer.js +713 -0
- package/dist/tokenize/SpreedlyTokenizer.d.ts +92 -0
- package/dist/tokenize/SpreedlyTokenizer.js +1144 -0
- package/dist/tokenize/Tokenizer.d.ts +37 -0
- package/dist/tokenize/Tokenizer.js +183 -0
- package/dist/tokenize/spreedly-secure.d.ts +8 -0
- package/dist/tokenize/spreedly-secure.js +43 -0
- package/dist/tokenize/styles.d.ts +4 -0
- package/dist/tokenize/styles.js +51 -0
- package/dist/tokenize/tokenizer-constants.d.ts +62 -0
- package/dist/tokenize/tokenizer-constants.js +65 -0
- package/dist/tokenize/tokenizer-utils.d.ts +19 -0
- package/dist/tokenize/tokenizer-utils.js +156 -0
- package/dist/tokenize/types.d.ts +144 -0
- package/dist/tokenize/types.js +30 -0
- package/dist/typeAdapters.d.ts +1 -0
- package/dist/typeAdapters.js +1 -0
- package/dist/types.d.ts +1 -0
- package/package.json +1 -1
- package/umd/idonate-sdk.js +1 -1
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { Tokenizer } from './Tokenizer';
|
|
2
|
+
import { PaymentData, PaymentToken, ValidationResult, PaymentGateway, TokenizerContainer } from './types';
|
|
3
|
+
import { TokenizeCardConnectBankAccountResult } from '../types';
|
|
4
|
+
import ConfigHandler from '../config-handler';
|
|
5
|
+
export declare class CardConnectTokenizer extends Tokenizer {
|
|
6
|
+
private iframeUrl;
|
|
7
|
+
private containerId;
|
|
8
|
+
private layout;
|
|
9
|
+
private iframe;
|
|
10
|
+
private messageHandler?;
|
|
11
|
+
private expectedOrigin;
|
|
12
|
+
private isReady;
|
|
13
|
+
private currentValidationState;
|
|
14
|
+
private containerEl?;
|
|
15
|
+
private routingNumberEl?;
|
|
16
|
+
private accountNumberEl?;
|
|
17
|
+
private accountTypeEl?;
|
|
18
|
+
private enableTestMode;
|
|
19
|
+
private cachedTokenResult?;
|
|
20
|
+
private tokenizationPromise?;
|
|
21
|
+
private tokenizationResolve?;
|
|
22
|
+
private tokenizationReject?;
|
|
23
|
+
private constructor();
|
|
24
|
+
static create(gateway: PaymentGateway, container: TokenizerContainer, config: {
|
|
25
|
+
organizationId: string;
|
|
26
|
+
embedId: string;
|
|
27
|
+
clientConfig: ConfigHandler;
|
|
28
|
+
}): Promise<CardConnectTokenizer>;
|
|
29
|
+
private createInternalElements;
|
|
30
|
+
private createCreditCardFields;
|
|
31
|
+
private createBankAccountFields;
|
|
32
|
+
private init;
|
|
33
|
+
tokenize(paymentData: PaymentData): Promise<PaymentToken>;
|
|
34
|
+
private tokenizeCardInternal;
|
|
35
|
+
private tokenizeBankAccountInternal;
|
|
36
|
+
validate(): Promise<ValidationResult>;
|
|
37
|
+
private validateCardInternal;
|
|
38
|
+
private validateBankAccountInternal;
|
|
39
|
+
clear(): void;
|
|
40
|
+
focus(field: 'cardNumber' | 'cvv' | 'expiry' | 'routingNumber' | 'accountNumber'): void;
|
|
41
|
+
destroy(): void;
|
|
42
|
+
hasToken(): boolean;
|
|
43
|
+
getToken(): PaymentToken | null;
|
|
44
|
+
get tokenizationMode(): 'auto' | 'manual';
|
|
45
|
+
private handleMessage;
|
|
46
|
+
private handleValidationMessage;
|
|
47
|
+
private static generateIframeUrl;
|
|
48
|
+
private static createIframe;
|
|
49
|
+
private static generateCardConnectCss;
|
|
50
|
+
static tokenizeBankAccount(routingNumber: string, accountNumber: string, config: ConfigHandler): Promise<TokenizeCardConnectBankAccountResult>;
|
|
51
|
+
}
|