@adyen/adyen-web 5.30.1 → 5.31.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/adyen.css +3 -4
- package/dist/adyen.css.map +1 -1
- package/dist/adyen.js +1 -1
- package/dist/adyen.js.map +1 -1
- package/dist/cjs/adyen.css +3 -4
- package/dist/cjs/adyen.css.map +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/es/adyen.css +3 -4
- package/dist/es/adyen.css.map +1 -1
- package/dist/es/index.js +1 -1
- package/dist/es.modern/adyen.css +3 -4
- package/dist/es.modern/adyen.css.map +1 -1
- package/dist/es.modern/index.js +1 -1
- package/dist/types/components/BcmcMobile/BcmcMobile.d.ts +2 -0
- package/dist/types/components/Card/components/CardInput/components/CardFieldsWrapper.d.ts +2 -1
- package/dist/types/components/Card/components/CardInput/defaultProps.d.ts +1 -0
- package/dist/types/components/Card/components/CardInput/types.d.ts +3 -2
- package/dist/types/components/Card/components/CardInput/utils.d.ts +2 -8
- package/dist/types/components/Card/components/ClickToPay/components/CtPCards/CtPCardsList/CtPCardsList.d.ts +2 -1
- package/dist/types/components/Card/components/ClickToPay/models/ShopperCard.d.ts +1 -0
- package/dist/types/components/Card/components/ClickToPay/services/sdks/types.d.ts +1 -0
- package/dist/types/components/Card/components/ClickToPay/services/utils.d.ts +1 -0
- package/dist/types/components/Dropin/Dropin.d.ts +1 -3
- package/dist/types/components/DuitNow/DuitNow.d.ts +2 -0
- package/dist/types/components/GooglePay/GooglePay.d.ts +1 -1
- package/dist/types/components/GooglePay/components/GooglePayButton.d.ts +1 -0
- package/dist/types/components/GooglePay/types.d.ts +1 -0
- package/dist/types/components/Oxxo/Oxxo.d.ts +4 -9
- package/dist/types/components/Oxxo/Oxxo.spec.d.ts +1 -0
- package/dist/types/components/Oxxo/types.d.ts +5 -0
- package/dist/types/components/PayNow/PayNow.d.ts +2 -0
- package/dist/types/components/Pix/Pix.d.ts +7 -56
- package/dist/types/components/Pix/PixInput/PixInput.d.ts +2 -7
- package/dist/types/components/Pix/PixInput/types.d.ts +26 -0
- package/dist/types/components/Pix/types.d.ts +8 -13
- package/dist/types/components/PromptPay/PromptPay.d.ts +2 -0
- package/dist/types/components/Swish/Swish.d.ts +2 -0
- package/dist/types/components/ThreeDS2/ThreeDS2Challenge.d.ts +1 -2
- package/dist/types/components/ThreeDS2/config.d.ts +1 -2
- package/dist/types/components/ThreeDS2/types.d.ts +2 -2
- package/dist/types/components/WeChat/WeChat.d.ts +2 -0
- package/dist/types/components/helpers/QRLoaderContainer.d.ts +2 -0
- package/dist/types/components/internal/Address/Address.d.ts +1 -0
- package/dist/types/components/internal/Address/constants.d.ts +1 -8
- package/dist/types/components/internal/Address/validate.d.ts +7 -0
- package/dist/types/components/internal/IFrame/Iframe.d.ts +3 -10
- package/dist/types/components/types.d.ts +1 -0
- package/dist/types/core/RiskModule/constants.d.ts +0 -6
- package/dist/types/utils/get-process-message-handler.d.ts +1 -2
- package/package.json +9 -9
- package/dist/types/components/Card/components/ClickToPay/components/CtPCards/CtPEmptyCardsList/CtPEmptyCardsList.d.ts +0 -4
- package/dist/types/components/Card/components/ClickToPay/components/CtPCards/CtPEmptyCardsList/index.d.ts +0 -1
|
@@ -10,7 +10,9 @@ declare class BCMCMobileElement extends QRLoaderContainer {
|
|
|
10
10
|
shouldRedirectOnMobile: boolean;
|
|
11
11
|
qrCodeImage?: string;
|
|
12
12
|
paymentData?: string;
|
|
13
|
+
introduction: string;
|
|
13
14
|
instructions?: string;
|
|
15
|
+
copyBtn?: boolean;
|
|
14
16
|
session?: import("../../core/CheckoutSession/CheckoutSession").default;
|
|
15
17
|
onChange?: (state: any, element: import("../UIElement").UIElement<any>) => void;
|
|
16
18
|
onValid?: (state: any, element: import("../UIElement").UIElement<any>) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h } from 'preact';
|
|
2
|
-
export declare const CardFieldsWrapper: ({ data, valid, errors, handleChangeFor, sfpState, setFocusOn, collateErrors, errorFieldId, cvcPolicy, focusedElement, hasInstallments, handleInstallments, showAmountsInInstallments, brandsIcons, mergedSRErrors, moveFocus, showPanel, handleErrorPanelFocus, formData, formErrors, formValid, expiryDatePolicy, dualBrandSelectElements, extensions, selectedBrandValue, showKCP, showBrazilianSSN, socialSecurityNumber, handleOnStoreDetails, billingAddress, handleAddress, billingAddressRef, partialAddressSchema, amount, billingAddressRequired, billingAddressRequiredFields, billingAddressAllowedCountries, brandsConfiguration, enableStoreDetails, hasCVC, hasHolderName, holderNameRequired, installmentOptions, placeholders, positionHolderNameOnTop, showBrandIcon, showBrandsUnderCardNumber, iOSFocusedField }: {
|
|
2
|
+
export declare const CardFieldsWrapper: ({ data, valid, errors, handleChangeFor, sfpState, setFocusOn, collateErrors, errorFieldId, cvcPolicy, focusedElement, hasInstallments, handleInstallments, showAmountsInInstallments, brandsIcons, mergedSRErrors, moveFocus, showPanel, handleErrorPanelFocus, formData, formErrors, formValid, expiryDatePolicy, dualBrandSelectElements, extensions, selectedBrandValue, showKCP, showBrazilianSSN, socialSecurityNumber, handleOnStoreDetails, billingAddress, handleAddress, billingAddressRef, partialAddressSchema, amount, billingAddressRequired, billingAddressRequiredFields, billingAddressAllowedCountries, billingAddressValidationRules, brandsConfiguration, enableStoreDetails, hasCVC, hasHolderName, holderNameRequired, installmentOptions, placeholders, positionHolderNameOnTop, showBrandIcon, showBrandsUnderCardNumber, iOSFocusedField }: {
|
|
3
3
|
data: any;
|
|
4
4
|
valid: any;
|
|
5
5
|
errors: any;
|
|
@@ -37,6 +37,7 @@ export declare const CardFieldsWrapper: ({ data, valid, errors, handleChangeFor,
|
|
|
37
37
|
billingAddressRequired: any;
|
|
38
38
|
billingAddressRequiredFields: any;
|
|
39
39
|
billingAddressAllowedCountries: any;
|
|
40
|
+
billingAddressValidationRules?: any;
|
|
40
41
|
brandsConfiguration: any;
|
|
41
42
|
enableStoreDetails: any;
|
|
42
43
|
hasCVC: any;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Language from '../../../../language/Language';
|
|
2
2
|
import { BinLookupResponse, BrandConfiguration, CardBrandsConfiguration, CardConfiguration, DualBrandSelectElement } from '../../types';
|
|
3
|
-
import { PaymentAmount } from '../../../../types';
|
|
3
|
+
import { AddressData, PaymentAmount } from '../../../../types';
|
|
4
4
|
import { InstallmentOptions } from './components/types';
|
|
5
5
|
import { ValidationResult } from '../../../internal/PersonalDetails/types';
|
|
6
6
|
import { CVCPolicyType, DatePolicyType } from '../../../internal/SecuredFields/lib/types';
|
|
@@ -31,7 +31,7 @@ export interface CardInputErrorState {
|
|
|
31
31
|
}
|
|
32
32
|
export interface CardInputDataState {
|
|
33
33
|
holderName?: string;
|
|
34
|
-
billingAddress?:
|
|
34
|
+
billingAddress?: AddressData;
|
|
35
35
|
socialSecurityNumber?: string;
|
|
36
36
|
taxNumber?: string;
|
|
37
37
|
}
|
|
@@ -60,6 +60,7 @@ export interface CardInputProps {
|
|
|
60
60
|
countryCode?: string;
|
|
61
61
|
cvcPolicy?: CVCPolicyType;
|
|
62
62
|
data?: CardInputDataState;
|
|
63
|
+
disableIOSArrowKeys?: boolean;
|
|
63
64
|
enableStoreDetails?: boolean;
|
|
64
65
|
expiryMonth?: string;
|
|
65
66
|
expiryYear?: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ErrorPanelObj } from '../../../../core/Errors/ErrorPanel';
|
|
2
2
|
import { AddressModeOptions, CardInputProps, LayoutObj, SortErrorsObj } from './types';
|
|
3
|
+
import { AddressSpecifications } from '../../../internal/Address/types';
|
|
3
4
|
import { InstallmentsObj } from './components/Installments/Installments';
|
|
4
5
|
import { SFPProps } from '../../../internal/SecuredFields/SFP/types';
|
|
5
6
|
export declare const getCardImageUrl: (brand: string, loadingContext: string) => string;
|
|
@@ -32,11 +33,4 @@ export declare const extractPropsForCardFields: (props: CardInputProps) => {
|
|
|
32
33
|
expiryYear: string;
|
|
33
34
|
};
|
|
34
35
|
export declare const extractPropsForSFP: (props: CardInputProps) => SFPProps;
|
|
35
|
-
export declare const handlePartialAddressMode: (addressMode: AddressModeOptions) =>
|
|
36
|
-
default: {
|
|
37
|
-
labels: {
|
|
38
|
-
postalCode: string;
|
|
39
|
-
};
|
|
40
|
-
schema: "postalCode"[];
|
|
41
|
-
};
|
|
42
|
-
};
|
|
36
|
+
export declare const handlePartialAddressMode: (addressMode: AddressModeOptions) => AddressSpecifications | null;
|
|
@@ -3,8 +3,9 @@ import ShopperCard from '../../../models/ShopperCard';
|
|
|
3
3
|
import './CtPCardsList.scss';
|
|
4
4
|
declare type CtPCardsListProps = {
|
|
5
5
|
cards: ShopperCard[];
|
|
6
|
+
cardSelected: ShopperCard;
|
|
6
7
|
errorMessage?: string;
|
|
7
8
|
onChangeCard(card: ShopperCard): void;
|
|
8
9
|
};
|
|
9
|
-
declare const CtPCardsList: ({ cards, errorMessage, onChangeCard }: CtPCardsListProps) => h.JSX.Element;
|
|
10
|
+
declare const CtPCardsList: ({ cardSelected, cards, errorMessage, onChangeCard }: CtPCardsListProps) => h.JSX.Element;
|
|
10
11
|
export default CtPCardsList;
|
|
@@ -15,6 +15,7 @@ declare class ShopperCard {
|
|
|
15
15
|
private status?;
|
|
16
16
|
constructor(maskedCard: SrcCard, scheme: ClickToPayScheme, srcCorrelationId: string);
|
|
17
17
|
get title(): string;
|
|
18
|
+
get isDcfPopupEmbedded(): boolean;
|
|
18
19
|
private confirmCardIsExpired;
|
|
19
20
|
}
|
|
20
21
|
export default ShopperCard;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ClickToPayCheckoutPayload, SrcProfileWithScheme } from './types';
|
|
2
2
|
import { SrciCheckoutResponse } from './sdks/types';
|
|
3
3
|
import ShopperCard from '../models/ShopperCard';
|
|
4
|
+
export declare const CTP_IFRAME_NAME = "ctpIframe";
|
|
4
5
|
/**
|
|
5
6
|
* Creates the payload for the /payments call
|
|
6
7
|
*/
|
|
@@ -59,9 +59,7 @@ declare class DropinElement extends UIElement<DropinElementProps> {
|
|
|
59
59
|
isInstantPayment?: boolean;
|
|
60
60
|
type?: string;
|
|
61
61
|
name?: string;
|
|
62
|
-
icon?: string;
|
|
63
|
-
* Calls the onSubmit event with the state of the activePaymentMethod
|
|
64
|
-
*/
|
|
62
|
+
icon?: string;
|
|
65
63
|
amount?: import("../../types").PaymentAmount;
|
|
66
64
|
secondaryAmount?: import("../../types").PaymentAmountExtended;
|
|
67
65
|
showPayButton?: boolean;
|
|
@@ -10,7 +10,9 @@ declare class DuitNowElement extends QRLoaderContainer {
|
|
|
10
10
|
shouldRedirectOnMobile?: boolean;
|
|
11
11
|
qrCodeImage?: string;
|
|
12
12
|
paymentData?: string;
|
|
13
|
+
introduction: string;
|
|
13
14
|
instructions?: string;
|
|
15
|
+
copyBtn?: boolean;
|
|
14
16
|
session?: import("../../core/CheckoutSession/CheckoutSession").default;
|
|
15
17
|
onChange?: (state: any, element: import("../UIElement").UIElement<any>) => void;
|
|
16
18
|
onValid?: (state: any, element: import("../UIElement").UIElement<any>) => void;
|
|
@@ -43,7 +43,7 @@ declare class GooglePay extends UIElement<GooglePayProps> {
|
|
|
43
43
|
* Formats the component data input
|
|
44
44
|
* For legacy support - maps configuration.merchantIdentifier to configuration.merchantId
|
|
45
45
|
*/
|
|
46
|
-
formatProps(props: any):
|
|
46
|
+
formatProps(props: any): GooglePayProps;
|
|
47
47
|
/**
|
|
48
48
|
* Formats the component data output
|
|
49
49
|
*/
|
|
@@ -6,6 +6,7 @@ interface GooglePayButtonProps {
|
|
|
6
6
|
buttonType: google.payments.api.ButtonType;
|
|
7
7
|
buttonSizeMode: google.payments.api.ButtonSizeMode;
|
|
8
8
|
buttonLocale: string;
|
|
9
|
+
buttonRootNode?: HTMLDocument | ShadowRoot;
|
|
9
10
|
paymentsClient: Promise<google.payments.api.PaymentsClient>;
|
|
10
11
|
onClick: (e: Event) => void;
|
|
11
12
|
}
|
|
@@ -105,6 +105,7 @@ export interface GooglePayProps extends UIElementProps {
|
|
|
105
105
|
buttonColor?: google.payments.api.ButtonColor;
|
|
106
106
|
buttonType?: google.payments.api.ButtonType;
|
|
107
107
|
buttonSizeMode?: google.payments.api.ButtonSizeMode;
|
|
108
|
+
buttonRootNode?: HTMLDocument | ShadowRoot;
|
|
108
109
|
buttonLocale?: string;
|
|
109
110
|
onClick?: (resolve: any, reject: any) => void;
|
|
110
111
|
onAuthorized?: (paymentData: google.payments.api.PaymentData) => void;
|
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
import { h } from 'preact';
|
|
2
2
|
import UIElement from '../UIElement';
|
|
3
|
+
import { OxxoElementData } from './types';
|
|
4
|
+
import { UIElementProps } from '../types';
|
|
3
5
|
export declare class OxxoElement extends UIElement {
|
|
4
6
|
static type: string;
|
|
7
|
+
protected static defaultProps: UIElementProps;
|
|
5
8
|
get isValid(): boolean;
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Formats the component data output
|
|
9
|
-
*/
|
|
10
|
-
formatData(): {
|
|
11
|
-
paymentMethod: {
|
|
12
|
-
type: any;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
9
|
+
formatData(): OxxoElementData;
|
|
15
10
|
private handleRef;
|
|
16
11
|
render(): h.JSX.Element;
|
|
17
12
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -10,7 +10,9 @@ declare class PayNowElement extends QRLoaderContainer {
|
|
|
10
10
|
shouldRedirectOnMobile?: boolean;
|
|
11
11
|
qrCodeImage?: string;
|
|
12
12
|
paymentData?: string;
|
|
13
|
+
introduction: string;
|
|
13
14
|
instructions?: string;
|
|
15
|
+
copyBtn?: boolean;
|
|
14
16
|
session?: import("../../core/CheckoutSession/CheckoutSession").default;
|
|
15
17
|
onChange?: (state: any, element: import("../UIElement").UIElement<any>) => void;
|
|
16
18
|
onValid?: (state: any, element: import("../UIElement").UIElement<any>) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import QRLoaderContainer from '../helpers/QRLoaderContainer';
|
|
2
1
|
import { h } from 'preact';
|
|
3
|
-
import
|
|
2
|
+
import QRLoaderContainer from '../helpers/QRLoaderContainer';
|
|
3
|
+
import { PixElementData, PixProps } from './types';
|
|
4
4
|
declare class PixElement extends QRLoaderContainer<PixProps> {
|
|
5
5
|
static type: string;
|
|
6
6
|
static defaultProps: {
|
|
@@ -9,63 +9,14 @@ declare class PixElement extends QRLoaderContainer<PixProps> {
|
|
|
9
9
|
paymentData: any;
|
|
10
10
|
onError: () => void;
|
|
11
11
|
onComplete: () => void;
|
|
12
|
+
showPayButton: boolean;
|
|
12
13
|
personalDetailsRequired: boolean;
|
|
13
|
-
};
|
|
14
|
-
get isValid(): boolean;
|
|
15
|
-
formatProps(props: any): {
|
|
16
|
-
personalDetailsRequired?: boolean;
|
|
17
|
-
delay: number;
|
|
18
14
|
countdownTime: number;
|
|
19
|
-
|
|
20
|
-
brandLogo?: string;
|
|
21
|
-
buttonLabel?: string;
|
|
22
|
-
shouldRedirectOnMobile?: boolean;
|
|
23
|
-
qrCodeImage?: string;
|
|
24
|
-
paymentData?: string;
|
|
25
|
-
instructions?: string;
|
|
26
|
-
session?: import("../../core/CheckoutSession/CheckoutSession").default;
|
|
27
|
-
onChange?: (state: any, element: import("../UIElement").UIElement<any>) => void;
|
|
28
|
-
onValid?: (state: any, element: import("../UIElement").UIElement<any>) => void;
|
|
29
|
-
beforeSubmit?: (state: any, element: import("../UIElement").UIElement<any>, actions: any) => Promise<void>;
|
|
30
|
-
onSubmit?: (state: any, element: import("../UIElement").UIElement<any>) => void;
|
|
31
|
-
onComplete?: (state: any, element: import("../UIElement").UIElement<any>) => void;
|
|
32
|
-
onAdditionalDetails?: (state: any, element: import("../UIElement").UIElement<any>) => void;
|
|
33
|
-
onError?: (error: any, element?: import("../UIElement").UIElement<any>) => void;
|
|
34
|
-
onPaymentCompleted?: (result: any, element: import("../UIElement").UIElement<any>) => void;
|
|
35
|
-
beforeRedirect?: (resolve: any, reject: any, redirectData: any, element: import("../UIElement").UIElement<any>) => void;
|
|
36
|
-
isInstantPayment?: boolean;
|
|
37
|
-
name?: string;
|
|
38
|
-
icon?: string;
|
|
39
|
-
amount?: import("../../types").PaymentAmount;
|
|
40
|
-
secondaryAmount?: import("../../types").PaymentAmountExtended;
|
|
41
|
-
showPayButton?: boolean;
|
|
42
|
-
setStatusAutomatically?: boolean;
|
|
43
|
-
payButton?: (options: import("../types").PayButtonFunctionProps) => h.JSX.Element;
|
|
44
|
-
loadingContext?: string;
|
|
45
|
-
createFromAction?: (action: import("../../types").PaymentAction, props: object) => import("../UIElement").UIElement<any>;
|
|
46
|
-
clientKey?: string;
|
|
47
|
-
elementRef?: any;
|
|
48
|
-
i18n?: import("../../language").default;
|
|
49
|
-
_parentInstance?: import("../../core/core").default;
|
|
50
|
-
order?: import("../../types").Order;
|
|
51
|
-
modules?: {
|
|
52
|
-
analytics: import("../../core/Analytics/Analytics").default;
|
|
53
|
-
risk: import("../../core/RiskModule").default;
|
|
54
|
-
};
|
|
55
|
-
isDropin?: boolean;
|
|
56
|
-
copyBtn: boolean;
|
|
57
|
-
introduction: string;
|
|
58
|
-
};
|
|
59
|
-
formatData(): {
|
|
60
|
-
socialSecurityNumber: any;
|
|
61
|
-
shopperName: {
|
|
62
|
-
firstName: any;
|
|
63
|
-
lastName: any;
|
|
64
|
-
};
|
|
65
|
-
paymentMethod: {
|
|
66
|
-
type: any;
|
|
67
|
-
};
|
|
15
|
+
delay: number;
|
|
68
16
|
};
|
|
17
|
+
get isValid(): boolean;
|
|
18
|
+
formatProps(props: any): PixProps;
|
|
19
|
+
formatData(): PixElementData;
|
|
69
20
|
render(): h.JSX.Element;
|
|
70
21
|
}
|
|
71
22
|
export default PixElement;
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
import { h } from 'preact';
|
|
2
|
-
|
|
3
|
-
declare
|
|
4
|
-
var defaultProps: {
|
|
5
|
-
data: {};
|
|
6
|
-
personalDetailsRequired: boolean;
|
|
7
|
-
};
|
|
8
|
-
}
|
|
2
|
+
import { PixInputProps } from './types';
|
|
3
|
+
declare function PixInput({ name, data: dataProps, personalDetailsRequired, showPayButton, onChange, payButton }: PixInputProps): h.JSX.Element;
|
|
9
4
|
export default PixInput;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { h, RefObject } from 'preact';
|
|
2
|
+
import { PayButtonFunctionProps } from '../../types';
|
|
3
|
+
import PixInput from './PixInput';
|
|
4
|
+
export interface PixInputDataState {
|
|
5
|
+
firstName?: string;
|
|
6
|
+
lastName?: string;
|
|
7
|
+
socialSecurityNumber?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface PixInputProps {
|
|
10
|
+
name: string;
|
|
11
|
+
data?: {
|
|
12
|
+
firstName: string;
|
|
13
|
+
lastName: string;
|
|
14
|
+
socialSecurityNumber: string;
|
|
15
|
+
};
|
|
16
|
+
personalDetailsRequired: boolean;
|
|
17
|
+
showPayButton: boolean;
|
|
18
|
+
onChange({ data, valid, errors, isValid: boolean }: {
|
|
19
|
+
data: any;
|
|
20
|
+
valid: any;
|
|
21
|
+
errors: any;
|
|
22
|
+
isValid: any;
|
|
23
|
+
}): void;
|
|
24
|
+
payButton(props: PayButtonFunctionProps): h.JSX.Element;
|
|
25
|
+
ref(ref: RefObject<typeof PixInput>): void;
|
|
26
|
+
}
|
|
@@ -2,18 +2,13 @@ import { QRLoaderContainerProps } from '../helpers/QRLoaderContainer';
|
|
|
2
2
|
export interface PixProps extends QRLoaderContainerProps {
|
|
3
3
|
personalDetailsRequired?: boolean;
|
|
4
4
|
}
|
|
5
|
-
export interface
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
export interface PixElementData {
|
|
6
|
+
paymentMethod: {
|
|
7
|
+
type: 'pix';
|
|
8
|
+
};
|
|
9
|
+
shopperName?: {
|
|
10
|
+
firstName: string;
|
|
11
|
+
lastName: string;
|
|
12
|
+
};
|
|
8
13
|
socialSecurityNumber?: string;
|
|
9
14
|
}
|
|
10
|
-
export interface PixInputValidState {
|
|
11
|
-
firstName?: boolean;
|
|
12
|
-
lastName?: boolean;
|
|
13
|
-
socialSecurityNumber?: boolean;
|
|
14
|
-
}
|
|
15
|
-
export interface PixInputErrorState {
|
|
16
|
-
firstName?: boolean;
|
|
17
|
-
lastName?: boolean;
|
|
18
|
-
socialSecurityNumber?: boolean;
|
|
19
|
-
}
|
|
@@ -10,7 +10,9 @@ declare class PromptPayElement extends QRLoaderContainer {
|
|
|
10
10
|
shouldRedirectOnMobile?: boolean;
|
|
11
11
|
qrCodeImage?: string;
|
|
12
12
|
paymentData?: string;
|
|
13
|
+
introduction: string;
|
|
13
14
|
instructions?: string;
|
|
15
|
+
copyBtn?: boolean;
|
|
14
16
|
session?: import("../../core/CheckoutSession/CheckoutSession").default;
|
|
15
17
|
onChange?: (state: any, element: import("../UIElement").UIElement<any>) => void;
|
|
16
18
|
onValid?: (state: any, element: import("../UIElement").UIElement<any>) => void;
|
|
@@ -10,7 +10,9 @@ declare class SwishElement extends QRLoaderContainer {
|
|
|
10
10
|
shouldRedirectOnMobile: boolean;
|
|
11
11
|
qrCodeImage?: string;
|
|
12
12
|
paymentData?: string;
|
|
13
|
+
introduction: string;
|
|
13
14
|
instructions: string;
|
|
15
|
+
copyBtn?: boolean;
|
|
14
16
|
session?: import("../../core/CheckoutSession/CheckoutSession").default;
|
|
15
17
|
onChange?: (state: any, element: import("../UIElement").UIElement<any>) => void;
|
|
16
18
|
onValid?: (state: any, element: import("../UIElement").UIElement<any>) => void;
|
|
@@ -2,12 +2,11 @@ import { h } from 'preact';
|
|
|
2
2
|
import UIElement from '../UIElement';
|
|
3
3
|
import { ErrorCodeObject } from './components/utils';
|
|
4
4
|
import Language from '../../language';
|
|
5
|
-
import { ThreeDS2ChallengeRejectObject } from './types';
|
|
6
5
|
export interface ThreeDS2ChallengeProps {
|
|
7
6
|
token?: string;
|
|
8
7
|
dataKey?: string;
|
|
9
8
|
notificationURL?: string;
|
|
10
|
-
onError?: (error: string | ErrorCodeObject
|
|
9
|
+
onError?: (error: string | ErrorCodeObject) => void;
|
|
11
10
|
paymentData?: string;
|
|
12
11
|
size?: string;
|
|
13
12
|
challengeWindowSize?: '01' | '02' | '03' | '04' | '05';
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { ThreeDS2FlowObject
|
|
1
|
+
import { ThreeDS2FlowObject } from './types';
|
|
2
2
|
export declare const DEFAULT_CHALLENGE_WINDOW_SIZE = "02";
|
|
3
3
|
export declare const THREEDS_METHOD_TIMEOUT = 10000;
|
|
4
4
|
export declare const CHALLENGE_TIMEOUT = 600000;
|
|
5
|
-
export declare const CHALLENGE_UNKNOWN_ERROR_REJECT_OBJECT: ThreeDS2ChallengeRejectObject;
|
|
6
5
|
export declare const CHALLENGE_TIMEOUT_REJECT_OBJECT: ThreeDS2FlowObject;
|
|
7
6
|
export declare const FAILED_METHOD_STATUS_RESOLVE_OBJECT: ThreeDS2FlowObject;
|
|
8
7
|
export declare const FAILED_METHOD_STATUS_RESOLVE_OBJECT_TIMEOUT: ThreeDS2FlowObject;
|
|
@@ -29,8 +29,8 @@ export interface ThreeDS2FlowObject {
|
|
|
29
29
|
errorCode?: string;
|
|
30
30
|
threeDSServerTransID?: string;
|
|
31
31
|
}
|
|
32
|
-
export interface
|
|
33
|
-
type
|
|
32
|
+
export interface PostMsgParseErrorObject {
|
|
33
|
+
type?: string;
|
|
34
34
|
comment?: string;
|
|
35
35
|
extraInfo?: string;
|
|
36
36
|
eventDataRaw?: string;
|
|
@@ -10,7 +10,9 @@ declare class WeChatPayElement extends QRLoaderContainer {
|
|
|
10
10
|
shouldRedirectOnMobile?: boolean;
|
|
11
11
|
qrCodeImage?: string;
|
|
12
12
|
paymentData?: string;
|
|
13
|
+
introduction: string;
|
|
13
14
|
instructions?: string;
|
|
15
|
+
copyBtn?: boolean;
|
|
14
16
|
session?: import("../../core/CheckoutSession/CheckoutSession").default;
|
|
15
17
|
onChange?: (state: any, element: import("../UIElement").UIElement<any>) => void;
|
|
16
18
|
onValid?: (state: any, element: import("../UIElement").UIElement<any>) => void;
|
|
@@ -16,7 +16,9 @@ export interface QRLoaderContainerProps extends UIElementProps {
|
|
|
16
16
|
shouldRedirectOnMobile?: boolean;
|
|
17
17
|
qrCodeImage?: string;
|
|
18
18
|
paymentData?: string;
|
|
19
|
+
introduction: string;
|
|
19
20
|
instructions?: string;
|
|
21
|
+
copyBtn?: boolean;
|
|
20
22
|
}
|
|
21
23
|
declare class QRLoaderContainer<T extends QRLoaderContainerProps = QRLoaderContainerProps> extends UIElement<T> {
|
|
22
24
|
protected static defaultProps: {
|
|
@@ -3,12 +3,5 @@ export declare const FALLBACK_VALUE = "N/A";
|
|
|
3
3
|
export declare const ADDRESS_SCHEMA: readonly ["street", "houseNumberOrName", "postalCode", "city", "stateOrProvince", "country"];
|
|
4
4
|
export declare const STREET: "street", HOUSE_NUMBER_OR_NAME: "houseNumberOrName", POSTAL_CODE: "postalCode", CITY: "city", STATE_OR_PROVINCE: "stateOrProvince", COUNTRY: "country";
|
|
5
5
|
export declare const ADDRESS_SPECIFICATIONS: AddressSpecifications;
|
|
6
|
-
export declare const PARTIAL_ADDRESS_SCHEMA:
|
|
7
|
-
default: {
|
|
8
|
-
labels: {
|
|
9
|
-
postalCode: string;
|
|
10
|
-
};
|
|
11
|
-
schema: "postalCode"[];
|
|
12
|
-
};
|
|
13
|
-
};
|
|
6
|
+
export declare const PARTIAL_ADDRESS_SCHEMA: AddressSpecifications;
|
|
14
7
|
export declare const COUNTRIES_WITH_CUSTOM_SPECIFICATION: string[];
|
|
@@ -1,2 +1,9 @@
|
|
|
1
1
|
import { ValidatorRules } from '../../../utils/Validator/types';
|
|
2
|
+
/**
|
|
3
|
+
* Validates only postalCode property. As the partial address form does not have the country selector, the country value
|
|
4
|
+
* must be informed beforehand and can't be picked up from the form context
|
|
5
|
+
*
|
|
6
|
+
* @param country - Country that will be used to validate postal code
|
|
7
|
+
*/
|
|
8
|
+
export declare const getPartialAddressValidationRules: (country: string) => ValidatorRules;
|
|
2
9
|
export declare const getAddressValidationRules: (specifications: any) => ValidatorRules;
|
|
@@ -9,6 +9,7 @@ interface IframeProps {
|
|
|
9
9
|
allow?: string;
|
|
10
10
|
name?: string;
|
|
11
11
|
title?: string;
|
|
12
|
+
classNameModifiers?: string[];
|
|
12
13
|
callback?: (contentWindow: any) => void;
|
|
13
14
|
}
|
|
14
15
|
declare class Iframe extends Component<IframeProps> {
|
|
@@ -20,20 +21,12 @@ declare class Iframe extends Component<IframeProps> {
|
|
|
20
21
|
src: any;
|
|
21
22
|
allow: any;
|
|
22
23
|
title: string;
|
|
24
|
+
classNameModifiers: any[];
|
|
23
25
|
};
|
|
24
26
|
private iframeEl;
|
|
25
27
|
iframeOnLoad(): void;
|
|
26
28
|
componentDidMount(): void;
|
|
27
29
|
componentWillUnmount(): void;
|
|
28
|
-
render({ name, src, width, height, minWidth, minHeight, allow, title }:
|
|
29
|
-
name: any;
|
|
30
|
-
src: any;
|
|
31
|
-
width: any;
|
|
32
|
-
height: any;
|
|
33
|
-
minWidth: any;
|
|
34
|
-
minHeight: any;
|
|
35
|
-
allow: any;
|
|
36
|
-
title: any;
|
|
37
|
-
}): h.JSX.Element;
|
|
30
|
+
render({ name, src, width, height, minWidth, minHeight, allow, title, classNameModifiers }: IframeProps): h.JSX.Element;
|
|
38
31
|
}
|
|
39
32
|
export default Iframe;
|
|
@@ -9,12 +9,6 @@ export declare const FAILED_DFP_RESOLVE_OBJECT_TIMEOUT: {
|
|
|
9
9
|
};
|
|
10
10
|
errorCode: string;
|
|
11
11
|
};
|
|
12
|
-
export declare const FAILED_DFP_RESOLVE_OBJECT: {
|
|
13
|
-
result: {
|
|
14
|
-
type: string;
|
|
15
|
-
value: string;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
12
|
export declare const ERRORS: {
|
|
19
13
|
TIME_OUT: string;
|
|
20
14
|
WRONG_ORIGIN: string;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
declare const getProcessMessageHandler: (domain: string, resolve: Function, reject: Function, rejectObj: ThreeDS2ChallengeRejectObject | object, expectedType: string) => Function;
|
|
1
|
+
declare const getProcessMessageHandler: (domain: string, resolve: Function, reject: Function, expectedType: string) => Function;
|
|
3
2
|
export default getProcessMessageHandler;
|
package/package.json
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"./dist/adyen.css": "./dist/adyen.css",
|
|
24
24
|
"./package.json": "./package.json"
|
|
25
25
|
},
|
|
26
|
-
"version": "5.
|
|
26
|
+
"version": "5.31.0",
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"homepage": "https://docs.adyen.com/checkout",
|
|
29
29
|
"repository": "github:Adyen/adyen-web",
|
|
@@ -56,13 +56,13 @@
|
|
|
56
56
|
"@babel/preset-typescript": "^7.15.0",
|
|
57
57
|
"@babel/runtime-corejs3": "^7.20.1",
|
|
58
58
|
"@rollup/plugin-babel": "^6.0.2",
|
|
59
|
-
"@rollup/plugin-commonjs": "^
|
|
59
|
+
"@rollup/plugin-commonjs": "^24.0.0",
|
|
60
60
|
"@rollup/plugin-eslint": "^9.0.1",
|
|
61
|
-
"@rollup/plugin-json": "^
|
|
62
|
-
"@rollup/plugin-node-resolve": "^
|
|
61
|
+
"@rollup/plugin-json": "^6.0.0",
|
|
62
|
+
"@rollup/plugin-node-resolve": "^15.0.0",
|
|
63
63
|
"@rollup/plugin-replace": "^5.0.1",
|
|
64
64
|
"@testing-library/jest-dom": "^5.16.5",
|
|
65
|
-
"@testing-library/preact": "^
|
|
65
|
+
"@testing-library/preact": "^3.0.0",
|
|
66
66
|
"@testing-library/preact-hooks": "^1.1.0",
|
|
67
67
|
"@testing-library/user-event": "^14.4.3",
|
|
68
68
|
"@types/jest": "^27.4.1",
|
|
@@ -75,14 +75,14 @@
|
|
|
75
75
|
"dotenv": "^16.0.3",
|
|
76
76
|
"enzyme": "^3.11.0",
|
|
77
77
|
"enzyme-adapter-preact-pure": "^4.0.1",
|
|
78
|
-
"esbuild": "^0.
|
|
79
|
-
"eslint": "8.
|
|
78
|
+
"esbuild": "^0.16.0",
|
|
79
|
+
"eslint": "8.30.0",
|
|
80
80
|
"eslint-plugin-import": "^2.26.0",
|
|
81
81
|
"eslint-plugin-jsx-a11y": "^6.6.1",
|
|
82
82
|
"eslint-plugin-react": "^7.31.8",
|
|
83
83
|
"eslint-plugin-testing-library": "^5.9.1",
|
|
84
84
|
"eslint-plugin-tsdoc": "^0.2.17",
|
|
85
|
-
"filesize": "^
|
|
85
|
+
"filesize": "^10.0.0",
|
|
86
86
|
"gzip-size": "^6.0.0",
|
|
87
87
|
"jest": "^26.6.3",
|
|
88
88
|
"jest-mock-extended": "^3.0.1",
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
"@types/googlepay": "^0.6.2",
|
|
110
110
|
"classnames": "^2.3.1",
|
|
111
111
|
"core-js-pure": "^3.25.3",
|
|
112
|
-
"preact": "10.11.
|
|
112
|
+
"preact": "10.11.3"
|
|
113
113
|
},
|
|
114
114
|
"files": [
|
|
115
115
|
"dist",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './CtPEmptyCardsList';
|