@coinflowlabs/vue 1.19.2 → 2.0.1-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/README.md +4 -0
- package/dist/coinflow-vue.js +6543 -6839
- package/dist/coinflow-vue.umd.cjs +17 -17
- package/dist/components/CoinflowPurchase.vue.d.ts +8 -41
- package/dist/components/CoinflowWithdraw.vue.d.ts +7 -40
- package/dist/components/card-form/CoinflowCardFormV2.vue.d.ts +4 -1
- package/dist/index.d.ts +1 -49
- package/dist/lib/common/CoinflowFraudProtectionHeader.d.ts +11 -0
- package/dist/lib/common/CoinflowTypes.d.ts +23 -30
- package/dist/lib/common/CoinflowUtils.d.ts +1 -2
- package/dist/lib/common/card-form/cardFieldValidationError.d.ts +2 -0
- package/dist/lib/common/index.d.ts +2 -2
- package/dist/lib/common/types/L2L3Data.d.ts +82 -0
- package/package.json +1 -1
- package/dist/components/card-form/CoinflowCardNumberInput.vue.d.ts +0 -17
- package/dist/components/card-form/CoinflowCardNumberOnlyInput.vue.d.ts +0 -17
- package/dist/components/card-form/CoinflowCvvInput.vue.d.ts +0 -2
- package/dist/components/card-form/CoinflowCvvOnlyInput.vue.d.ts +0 -17
- package/dist/components/card-form/useCardformIframe.d.ts +0 -48
- package/dist/lib/common/card-form/TokenEx.d.ts +0 -72
- package/dist/lib/common/card-form/tokenexHelpers.d.ts +0 -35
- package/dist/testing/CardFormTest.vue.d.ts +0 -25
- package/dist/testing/SavedCardFormTest.vue.d.ts +0 -25
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { PropType } from 'vue';
|
|
2
|
-
import { CoinflowCardTokenResponse, CoinflowCvvOnlyInputProps, MerchantIdOrCheckoutJwt } from '../../lib/common';
|
|
3
|
-
declare function getToken(): Promise<CoinflowCardTokenResponse>;
|
|
4
|
-
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
5
|
-
args: {
|
|
6
|
-
type: PropType<CoinflowCvvOnlyInputProps & MerchantIdOrCheckoutJwt>;
|
|
7
|
-
required: true;
|
|
8
|
-
};
|
|
9
|
-
}>, {
|
|
10
|
-
getToken: typeof getToken;
|
|
11
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
12
|
-
args: {
|
|
13
|
-
type: PropType<CoinflowCvvOnlyInputProps & MerchantIdOrCheckoutJwt>;
|
|
14
|
-
required: true;
|
|
15
|
-
};
|
|
16
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
17
|
-
export default _default;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { doInitializeCvvOnlyTokenExIframe, doInitializeTokenExCardOnlyIframe, doInitializeTokenExIframe, setTokenExScriptTag, TokenExIframe, CoinflowEnvs, MerchantIdOrCheckoutJwt } from '../../lib/common';
|
|
2
|
-
declare const useCardFormIframe: (props: {
|
|
3
|
-
env: CoinflowEnvs;
|
|
4
|
-
} & MerchantIdOrCheckoutJwt) => {
|
|
5
|
-
tokenExIframe: import('vue').Ref<{
|
|
6
|
-
tokenize: () => Promise<import('../..').TokenizationResponse>;
|
|
7
|
-
load: () => void;
|
|
8
|
-
on: (event: string, callback: (data?: any) => void) => void;
|
|
9
|
-
validate: () => void;
|
|
10
|
-
reset: () => void;
|
|
11
|
-
blur: () => void;
|
|
12
|
-
cvvBlur: () => void;
|
|
13
|
-
focus: () => void;
|
|
14
|
-
cvvFocus: () => void;
|
|
15
|
-
remove: () => void;
|
|
16
|
-
toggleMask: () => void;
|
|
17
|
-
toggleCvvMask: () => void;
|
|
18
|
-
setPAN: (pan: string) => void;
|
|
19
|
-
binLookup: () => void;
|
|
20
|
-
validateConfig: () => void;
|
|
21
|
-
setFraudServicesRequestDetails: (data: string) => void;
|
|
22
|
-
} | undefined, TokenExIframe | {
|
|
23
|
-
tokenize: () => Promise<import('../..').TokenizationResponse>;
|
|
24
|
-
load: () => void;
|
|
25
|
-
on: (event: string, callback: (data?: any) => void) => void;
|
|
26
|
-
validate: () => void;
|
|
27
|
-
reset: () => void;
|
|
28
|
-
blur: () => void;
|
|
29
|
-
cvvBlur: () => void;
|
|
30
|
-
focus: () => void;
|
|
31
|
-
cvvFocus: () => void;
|
|
32
|
-
remove: () => void;
|
|
33
|
-
toggleMask: () => void;
|
|
34
|
-
toggleCvvMask: () => void;
|
|
35
|
-
setPAN: (pan: string) => void;
|
|
36
|
-
binLookup: () => void;
|
|
37
|
-
validateConfig: () => void;
|
|
38
|
-
setFraudServicesRequestDetails: (data: string) => void;
|
|
39
|
-
} | undefined>;
|
|
40
|
-
initializeTokenExIframe: (args: Omit<Parameters<typeof doInitializeTokenExIframe>[0], "env" | "tokenExScriptLoaded" | "setCachedToken" | "setLoaded">) => Promise<TokenExIframe | undefined>;
|
|
41
|
-
initializeCvvOnlyTokenExIframe: (args: Omit<Parameters<typeof doInitializeCvvOnlyTokenExIframe>[0], "env" | "tokenExScriptLoaded" | "setCachedToken" | "setLoaded">) => Promise<TokenExIframe | undefined>;
|
|
42
|
-
initializeTokenExCardOnlyIframe: (args: Omit<Parameters<typeof doInitializeTokenExCardOnlyIframe>[0], "env" | "tokenExScriptLoaded" | "setCachedToken" | "setLoaded">) => Promise<TokenExIframe | undefined>;
|
|
43
|
-
loaded: import('vue').Ref<boolean, boolean>;
|
|
44
|
-
cachedToken: import('vue').Ref<string | undefined, string | undefined>;
|
|
45
|
-
setTokenExScriptTag: typeof setTokenExScriptTag;
|
|
46
|
-
tokenExScriptLoaded: import('vue').Ref<boolean, boolean>;
|
|
47
|
-
};
|
|
48
|
-
export default useCardFormIframe;
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { CardType, CoinflowEnvs } from '../CoinflowTypes';
|
|
2
|
-
import { 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
|
-
}
|
|
@@ -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>;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
2
|
-
cardNumberInput: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
3
|
-
args: {
|
|
4
|
-
type: import('vue').PropType<import('..').CoinflowCardNumberInputProps & import('..').MerchantIdOrCheckoutJwt>;
|
|
5
|
-
required: true;
|
|
6
|
-
};
|
|
7
|
-
}>> & Readonly<{}>, {
|
|
8
|
-
getToken: () => Promise<import('..').CoinflowCardTokenResponse>;
|
|
9
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
10
|
-
P: {};
|
|
11
|
-
B: {};
|
|
12
|
-
D: {};
|
|
13
|
-
C: {};
|
|
14
|
-
M: {};
|
|
15
|
-
Defaults: {};
|
|
16
|
-
}, Readonly<import('vue').ExtractPropTypes<{
|
|
17
|
-
args: {
|
|
18
|
-
type: import('vue').PropType<import('..').CoinflowCardNumberInputProps & import('..').MerchantIdOrCheckoutJwt>;
|
|
19
|
-
required: true;
|
|
20
|
-
};
|
|
21
|
-
}>> & Readonly<{}>, {
|
|
22
|
-
getToken: () => Promise<import('..').CoinflowCardTokenResponse>;
|
|
23
|
-
}, {}, {}, {}, {}> | null;
|
|
24
|
-
}, HTMLDivElement>;
|
|
25
|
-
export default _default;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
2
|
-
cvvOnlyInput: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
3
|
-
args: {
|
|
4
|
-
type: import('vue').PropType<import('..').CoinflowCvvOnlyInputProps & import('..').MerchantIdOrCheckoutJwt>;
|
|
5
|
-
required: true;
|
|
6
|
-
};
|
|
7
|
-
}>> & Readonly<{}>, {
|
|
8
|
-
getToken: () => Promise<import('..').CoinflowCardTokenResponse>;
|
|
9
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
10
|
-
P: {};
|
|
11
|
-
B: {};
|
|
12
|
-
D: {};
|
|
13
|
-
C: {};
|
|
14
|
-
M: {};
|
|
15
|
-
Defaults: {};
|
|
16
|
-
}, Readonly<import('vue').ExtractPropTypes<{
|
|
17
|
-
args: {
|
|
18
|
-
type: import('vue').PropType<import('..').CoinflowCvvOnlyInputProps & import('..').MerchantIdOrCheckoutJwt>;
|
|
19
|
-
required: true;
|
|
20
|
-
};
|
|
21
|
-
}>> & Readonly<{}>, {
|
|
22
|
-
getToken: () => Promise<import('..').CoinflowCardTokenResponse>;
|
|
23
|
-
}, {}, {}, {}, {}> | null;
|
|
24
|
-
}, HTMLDivElement>;
|
|
25
|
-
export default _default;
|