@adyen/adyen-web 5.42.0 → 5.42.1
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 +2 -2
- 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 +2 -2
- package/dist/cjs/adyen.css.map +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/es/adyen.css +2 -2
- package/dist/es/adyen.css.map +1 -1
- package/dist/es/index.js +1 -1
- package/dist/es.modern/adyen.css +2 -2
- package/dist/es.modern/adyen.css.map +1 -1
- package/dist/es.modern/index.js +1 -1
- package/dist/types/components/ApplePay/types.d.ts +1 -1
- package/dist/types/components/Card/{ClickToPayWrapper.d.ts → components/ClickToPayWrapper.d.ts} +1 -1
- package/dist/types/components/Card/types.d.ts +1 -28
- package/dist/types/components/GooglePay/GooglePay.d.ts +1 -0
- package/dist/types/components/GooglePay/defaultProps.d.ts +1 -0
- package/dist/types/components/GooglePay/types.d.ts +7 -0
- package/dist/types/components/internal/ClickToPay/components/CtPLogin/validate.d.ts +2 -0
- package/dist/types/components/{Card/components/ClickToPay/components/CtPLogin → internal/ClickToPay/components/CtPOneTimePassword/CtPOneTimePasswordInput}/validate.d.ts +1 -1
- package/dist/types/components/{Card/components → internal}/ClickToPay/context/ClickToPayContext.d.ts +4 -4
- package/dist/types/components/{Card/components → internal}/ClickToPay/context/ClickToPayProvider.d.ts +4 -4
- package/dist/types/components/{Card/components → internal}/ClickToPay/models/ShopperCard.d.ts +1 -1
- package/dist/types/components/{Card/components → internal}/ClickToPay/services/create-clicktopay-service.d.ts +2 -1
- package/dist/types/components/{Card/components → internal}/ClickToPay/services/sdks/AbstractSrcInitiator.d.ts +1 -1
- package/dist/types/components/{Card/components → internal}/ClickToPay/services/sdks/SrciError.d.ts +1 -1
- package/dist/types/components/{Card/components → internal}/ClickToPay/services/types.d.ts +1 -1
- package/dist/types/components/internal/ClickToPay/types.d.ts +28 -0
- package/package.json +1 -1
- package/dist/types/components/Card/components/ClickToPay/components/CtPOneTimePassword/CtPOneTimePasswordInput/validate.d.ts +0 -2
- package/dist/types/components/Card/components/ClickToPay/components/CtPSection/CtPSectionTitle.d.ts +0 -0
- /package/dist/types/components/Card/{ClickToPayHolder.d.ts → components/ClickToPayHolder.d.ts} +0 -0
- /package/dist/types/components/{Card/components → internal}/ClickToPay/ClickToPayComponent.d.ts +0 -0
- /package/dist/types/components/{Card/components → internal}/ClickToPay/components/CtPBrand/CtPBrand.d.ts +0 -0
- /package/dist/types/components/{Card/components → internal}/ClickToPay/components/CtPBrand/index.d.ts +0 -0
- /package/dist/types/components/{Card/components → internal}/ClickToPay/components/CtPCards/CtPCards.d.ts +0 -0
- /package/dist/types/components/{Card/components → internal}/ClickToPay/components/CtPCards/CtPCardsList/CtPCardsList.d.ts +0 -0
- /package/dist/types/components/{Card/components → internal}/ClickToPay/components/CtPCards/CtPCardsList/index.d.ts +0 -0
- /package/dist/types/components/{Card/components → internal}/ClickToPay/components/CtPCards/CtPSingleCard/CtPSingleCard.d.ts +0 -0
- /package/dist/types/components/{Card/components → internal}/ClickToPay/components/CtPCards/CtPSingleCard/index.d.ts +0 -0
- /package/dist/types/components/{Card/components → internal}/ClickToPay/components/CtPCards/index.d.ts +0 -0
- /package/dist/types/components/{Card/components → internal}/ClickToPay/components/CtPInfo/CtPInfo.d.ts +0 -0
- /package/dist/types/components/{Card/components → internal}/ClickToPay/components/CtPInfo/CtPInfoModal/CtPInfoModal.d.ts +0 -0
- /package/dist/types/components/{Card/components → internal}/ClickToPay/components/CtPInfo/CtPInfoModal/index.d.ts +0 -0
- /package/dist/types/components/{Card/components → internal}/ClickToPay/components/CtPInfo/index.d.ts +0 -0
- /package/dist/types/components/{Card/components → internal}/ClickToPay/components/CtPLoader/CtPLoader.d.ts +0 -0
- /package/dist/types/components/{Card/components → internal}/ClickToPay/components/CtPLoader/index.d.ts +0 -0
- /package/dist/types/components/{Card/components → internal}/ClickToPay/components/CtPLogin/CtPLogin.d.ts +0 -0
- /package/dist/types/components/{Card/components → internal}/ClickToPay/components/CtPLogin/CtPLoginInput.d.ts +0 -0
- /package/dist/types/components/{Card/components → internal}/ClickToPay/components/CtPLogin/index.d.ts +0 -0
- /package/dist/types/components/{Card/components → internal}/ClickToPay/components/CtPOneTimePassword/CtPOneTimePassword.d.ts +0 -0
- /package/dist/types/components/{Card/components → internal}/ClickToPay/components/CtPOneTimePassword/CtPOneTimePasswordInput/CtPOneTimePasswordInput.d.ts +0 -0
- /package/dist/types/components/{Card/components → internal}/ClickToPay/components/CtPOneTimePassword/CtPOneTimePasswordInput/CtPResendOtpLink.d.ts +0 -0
- /package/dist/types/components/{Card/components → internal}/ClickToPay/components/CtPOneTimePassword/CtPOneTimePasswordInput/index.d.ts +0 -0
- /package/dist/types/components/{Card/components → internal}/ClickToPay/components/CtPOneTimePassword/index.d.ts +0 -0
- /package/dist/types/components/{Card/components → internal}/ClickToPay/components/CtPSection/CtPLogoutLink.d.ts +0 -0
- /package/dist/types/components/{Card/components → internal}/ClickToPay/components/CtPSection/CtPSection.d.ts +0 -0
- /package/dist/types/components/{Card/components → internal}/ClickToPay/components/CtPSection/index.d.ts +0 -0
- /package/dist/types/components/{Card/components → internal}/ClickToPay/context/useClickToPayContext.d.ts +0 -0
- /package/dist/types/components/{Card/components → internal}/ClickToPay/index.d.ts +0 -0
- /package/dist/types/components/{Card/components → internal}/ClickToPay/services/ClickToPayService.d.ts +0 -0
- /package/dist/types/components/{Card/components → internal}/ClickToPay/services/sdks/MastercardSdk.d.ts +0 -0
- /package/dist/types/components/{Card/components → internal}/ClickToPay/services/sdks/SrcSdkLoader.d.ts +0 -0
- /package/dist/types/components/{Card/components → internal}/ClickToPay/services/sdks/VisaSdk.d.ts +0 -0
- /package/dist/types/components/{Card/components → internal}/ClickToPay/services/sdks/config.d.ts +0 -0
- /package/dist/types/components/{Card/components → internal}/ClickToPay/services/sdks/types.d.ts +0 -0
- /package/dist/types/components/{Card/components → internal}/ClickToPay/services/sdks/utils.d.ts +0 -0
- /package/dist/types/components/{Card/components → internal}/ClickToPay/services/utils.d.ts +0 -0
|
@@ -23,7 +23,7 @@ export interface ApplePayElementProps extends UIElementProps {
|
|
|
23
23
|
* Part of the 'ApplePayLineItem' object, which sets the label of the payment request
|
|
24
24
|
* @see {@link https://developer.apple.com/documentation/apple_pay_on_the_web/applepaylineitem ApplePayLineItem docs}
|
|
25
25
|
*/
|
|
26
|
-
totalPriceLabel
|
|
26
|
+
totalPriceLabel?: string;
|
|
27
27
|
/**
|
|
28
28
|
* @default 'final'
|
|
29
29
|
*/
|
package/dist/types/components/Card/{ClickToPayWrapper.d.ts → components/ClickToPayWrapper.d.ts}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ClickToPayProviderProps } from '
|
|
1
|
+
import { ClickToPayProviderProps } from '../../internal/ClickToPay/context/ClickToPayProvider';
|
|
2
2
|
import { h } from 'preact';
|
|
3
3
|
declare const ClickToPayWrapper: ({ amount, configuration, clickToPayService, setClickToPayRef, onSetStatus, onSubmit, onError, ...props }: ClickToPayProviderProps) => h.JSX.Element;
|
|
4
4
|
export default ClickToPayWrapper;
|
|
@@ -2,6 +2,7 @@ import { UIElementProps } from '../types';
|
|
|
2
2
|
import { AddressData, BrowserInfo } from '../../types';
|
|
3
3
|
import { CbObjOnBinValue, CbObjOnBrand, CbObjOnConfigSuccess, CbObjOnError, CbObjOnFieldValid, CbObjOnFocus, CbObjOnLoad, CbObjOnBinLookup } from '../internal/SecuredFields/lib/types';
|
|
4
4
|
import { CVCPolicyType, DatePolicyType } from '../internal/SecuredFields/lib/types';
|
|
5
|
+
import { ClickToPayConfiguration } from '../internal/ClickToPay/types';
|
|
5
6
|
export interface CardElementProps extends UIElementProps {
|
|
6
7
|
/**
|
|
7
8
|
* Only set for a stored card,
|
|
@@ -84,34 +85,6 @@ export interface CardElementProps extends UIElementProps {
|
|
|
84
85
|
onBinLookup?: (event: CbObjOnBinLookup) => void;
|
|
85
86
|
[key: string]: any;
|
|
86
87
|
}
|
|
87
|
-
export type ClickToPayScheme = 'mc' | 'visa';
|
|
88
|
-
export type ClickToPayConfiguration = {
|
|
89
|
-
/**
|
|
90
|
-
* Shopper email used to be recognized with the Network schemes
|
|
91
|
-
*/
|
|
92
|
-
shopperEmail?: string;
|
|
93
|
-
/**
|
|
94
|
-
* Shopper telephone number used to be recognized with the Network schemes
|
|
95
|
-
*/
|
|
96
|
-
telephoneNumber?: string;
|
|
97
|
-
/**
|
|
98
|
-
* Used to display the merchant name in case the DCF appears (ex: first time doing transaction in the device),
|
|
99
|
-
*/
|
|
100
|
-
merchantDisplayName: string;
|
|
101
|
-
/**
|
|
102
|
-
* Used to ensure the correct language and user experience if DCF screen is displayed. As a fallback, it uses the main locale
|
|
103
|
-
* defined during the creation of the Checkout.
|
|
104
|
-
* Format: ISO language_country pair (e.g., en_US )
|
|
105
|
-
*
|
|
106
|
-
* @defaultValue en_US
|
|
107
|
-
*/
|
|
108
|
-
locale?: string;
|
|
109
|
-
/**
|
|
110
|
-
* Disable autofocus on the One Time Password input field when it is either displayed or when the OTP is resent
|
|
111
|
-
* @defaultValue false
|
|
112
|
-
*/
|
|
113
|
-
disableOtpAutoFocus?: boolean;
|
|
114
|
-
};
|
|
115
88
|
export type SocialSecurityMode = 'show' | 'hide' | 'auto';
|
|
116
89
|
/** If the merchant wishes to set any of these properties in their local config they should do so via a "configuration" object */
|
|
117
90
|
export interface CardConfiguration {
|
|
@@ -31,6 +31,7 @@ declare class GooglePay extends UIElement<GooglePayProps> {
|
|
|
31
31
|
allowPrepaidCards: boolean;
|
|
32
32
|
billingAddressRequired: boolean;
|
|
33
33
|
billingAddressParameters: any;
|
|
34
|
+
assuranceDetailsRequired: boolean;
|
|
34
35
|
emailRequired: boolean;
|
|
35
36
|
shippingAddressRequired: boolean;
|
|
36
37
|
shippingAddressParameters: any;
|
|
@@ -25,6 +25,7 @@ declare const _default: {
|
|
|
25
25
|
allowPrepaidCards: boolean;
|
|
26
26
|
billingAddressRequired: boolean;
|
|
27
27
|
billingAddressParameters: any;
|
|
28
|
+
assuranceDetailsRequired: boolean;
|
|
28
29
|
emailRequired: boolean;
|
|
29
30
|
shippingAddressRequired: boolean;
|
|
30
31
|
shippingAddressParameters: any;
|
|
@@ -47,6 +47,13 @@ export interface GooglePayProps extends UIElementProps {
|
|
|
47
47
|
countryCode?: string;
|
|
48
48
|
allowedAuthMethods?: google.payments.api.CardAuthMethod[];
|
|
49
49
|
allowedCardNetworks?: google.payments.api.CardNetwork[];
|
|
50
|
+
/**
|
|
51
|
+
* Set to true to request assuranceDetails. This object provides information
|
|
52
|
+
* about the validation performed on the returned payment data.
|
|
53
|
+
*
|
|
54
|
+
* @defaultValue false
|
|
55
|
+
*/
|
|
56
|
+
assuranceDetailsRequired?: boolean;
|
|
50
57
|
/**
|
|
51
58
|
* Set to false if you don't support credit cards.
|
|
52
59
|
* @defaultValue true
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ValidatorRules } from '../../../../../../utils/Validator/types';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const otpValidationRules: ValidatorRules;
|
package/dist/types/components/{Card/components → internal}/ClickToPay/context/ClickToPayContext.d.ts
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { CtpState } from '../services/ClickToPayService';
|
|
2
2
|
import { ClickToPayCheckoutPayload, IClickToPayService } from '../services/types';
|
|
3
|
-
import { PaymentAmount } from '../../../../../types';
|
|
4
3
|
import ShopperCard from '../models/ShopperCard';
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
4
|
+
import { ClickToPayConfiguration } from '../types';
|
|
5
|
+
import { UIElementStatus } from '../../../types';
|
|
6
|
+
import { PaymentAmount } from '../../../../types';
|
|
7
|
+
import AdyenCheckoutError from '../../../../core/Errors/AdyenCheckoutError';
|
|
8
8
|
export interface IClickToPayContext extends Pick<IClickToPayService, 'checkout' | 'startIdentityValidation' | 'finishIdentityValidation' | 'verifyIfShopperIsEnrolled'> {
|
|
9
9
|
isCtpPrimaryPaymentMethod: boolean;
|
|
10
10
|
setIsCtpPrimaryPaymentMethod(isPrimary: boolean): void;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { h } from 'preact';
|
|
2
2
|
import { ClickToPayCheckoutPayload, IClickToPayService } from '../services/types';
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
3
|
+
import { ClickToPayConfiguration } from '../types';
|
|
4
|
+
import AdyenCheckoutError from '../../../../core/Errors/AdyenCheckoutError';
|
|
5
|
+
import { UIElementStatus } from '../../../types';
|
|
6
|
+
import { PaymentAmount } from '../../../../types';
|
|
7
7
|
export type ClickToPayProviderProps = {
|
|
8
8
|
clickToPayService: IClickToPayService | null;
|
|
9
9
|
configuration: ClickToPayConfiguration;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IClickToPayService } from './types';
|
|
2
|
-
import { CardConfiguration
|
|
2
|
+
import { CardConfiguration } from '../../../Card/types';
|
|
3
|
+
import { ClickToPayConfiguration } from '../types';
|
|
3
4
|
/**
|
|
4
5
|
* Creates the Click to Pay service in case the required configuration is provided
|
|
5
6
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CustomSdkConfiguration, SrcCheckoutParams, SrciCheckoutResponse, SrciCompleteIdentityValidationResponse, SrcIdentityLookupParams, SrciIdentityLookupResponse, SrciInitiateIdentityValidationResponse, SrciIsRecognizedResponse, SrcInitParams, SrcProfile } from './types';
|
|
2
|
-
import { ClickToPayScheme } from '
|
|
2
|
+
import { ClickToPayScheme } from '../../types';
|
|
3
3
|
export interface ISrcInitiator {
|
|
4
4
|
schemeName: ClickToPayScheme;
|
|
5
5
|
loadSdkScript(): Promise<void>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CtpState } from './ClickToPayService';
|
|
2
2
|
import { SrcInitParams, SrcProfile } from './sdks/types';
|
|
3
|
-
import { ClickToPayScheme } from '../../../types';
|
|
4
3
|
import ShopperCard from '../models/ShopperCard';
|
|
4
|
+
import { ClickToPayScheme } from '../types';
|
|
5
5
|
export interface IClickToPayService {
|
|
6
6
|
state: CtpState;
|
|
7
7
|
shopperCards: ShopperCard[];
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export type ClickToPayConfiguration = {
|
|
2
|
+
/**
|
|
3
|
+
* Shopper email used to be recognized with the Network schemes
|
|
4
|
+
*/
|
|
5
|
+
shopperEmail?: string;
|
|
6
|
+
/**
|
|
7
|
+
* Shopper telephone number used to be recognized with the Network schemes
|
|
8
|
+
*/
|
|
9
|
+
telephoneNumber?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Used to display the merchant name in case the DCF appears (ex: first time doing transaction in the device),
|
|
12
|
+
*/
|
|
13
|
+
merchantDisplayName: string;
|
|
14
|
+
/**
|
|
15
|
+
* Used to ensure the correct language and user experience if DCF screen is displayed. As a fallback, it uses the main locale
|
|
16
|
+
* defined during the creation of the Checkout.
|
|
17
|
+
* Format: ISO language_country pair (e.g., en_US )
|
|
18
|
+
*
|
|
19
|
+
* @defaultValue en_US
|
|
20
|
+
*/
|
|
21
|
+
locale?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Disable autofocus on the One Time Password input field when it is either displayed or when the OTP is resent
|
|
24
|
+
* @defaultValue false
|
|
25
|
+
*/
|
|
26
|
+
disableOtpAutoFocus?: boolean;
|
|
27
|
+
};
|
|
28
|
+
export type ClickToPayScheme = 'mc' | 'visa';
|
package/package.json
CHANGED
package/dist/types/components/Card/components/ClickToPay/components/CtPSection/CtPSectionTitle.d.ts
DELETED
|
File without changes
|
/package/dist/types/components/Card/{ClickToPayHolder.d.ts → components/ClickToPayHolder.d.ts}
RENAMED
|
File without changes
|
/package/dist/types/components/{Card/components → internal}/ClickToPay/ClickToPayComponent.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/types/components/{Card/components → internal}/ClickToPay/components/CtPInfo/index.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/types/components/{Card/components → internal}/ClickToPay/services/sdks/VisaSdk.d.ts
RENAMED
|
File without changes
|
/package/dist/types/components/{Card/components → internal}/ClickToPay/services/sdks/config.d.ts
RENAMED
|
File without changes
|
/package/dist/types/components/{Card/components → internal}/ClickToPay/services/sdks/types.d.ts
RENAMED
|
File without changes
|
/package/dist/types/components/{Card/components → internal}/ClickToPay/services/sdks/utils.d.ts
RENAMED
|
File without changes
|
|
File without changes
|