@adyen/adyen-web 5.16.1 → 5.18.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.
@@ -54,7 +54,6 @@ export interface AmazonPayElementProps {
54
54
  placement?: Placement;
55
55
  productType?: ProductType;
56
56
  recurringMetadata?: RecurringMetadata;
57
- region?: Region;
58
57
  returnUrl?: string;
59
58
  showChangePaymentDetailsButton: boolean;
60
59
  showOrderButton: boolean;
@@ -1,5 +1,7 @@
1
1
  import { h } from 'preact';
2
- export declare const StoredCardFieldsWrapper: ({ sfpState, setFocusOn, cvcPolicy, focusedElement, hasInstallments, handleInstallments, showAmountsInInstallments, amount, hasCVC, installmentOptions, lastFour, expiryMonth, expiryYear }: {
2
+ export declare const StoredCardFieldsWrapper: ({ collateErrors, errorFieldId, sfpState, setFocusOn, cvcPolicy, focusedElement, hasInstallments, handleInstallments, showAmountsInInstallments, amount, hasCVC, installmentOptions, lastFour, expiryMonth, expiryYear, mergedSRErrors, handleErrorPanelFocus, moveFocus, showPanel }: {
3
+ collateErrors: any;
4
+ errorFieldId: any;
3
5
  sfpState: any;
4
6
  setFocusOn: any;
5
7
  cvcPolicy: any;
@@ -13,4 +15,8 @@ export declare const StoredCardFieldsWrapper: ({ sfpState, setFocusOn, cvcPolicy
13
15
  lastFour: any;
14
16
  expiryMonth: any;
15
17
  expiryYear: any;
18
+ mergedSRErrors: any;
19
+ handleErrorPanelFocus: any;
20
+ moveFocus: any;
21
+ showPanel: any;
16
22
  }) => h.JSX.Element;
@@ -1,5 +1,6 @@
1
1
  import { h } from 'preact';
2
2
  import UIElement from '../UIElement';
3
+ import { Order } from '../../types';
3
4
  export declare class GiftcardElement extends UIElement {
4
5
  static type: string;
5
6
  protected static defaultProps: {
@@ -22,6 +23,7 @@ export declare class GiftcardElement extends UIElement {
22
23
  get displayName(): any;
23
24
  private handleBalanceCheck;
24
25
  private onOrderRequest;
26
+ protected handleOrder: (order: Order) => any;
25
27
  onBalanceCheck: () => false | void;
26
28
  payButton: (props: any) => h.JSX.Element;
27
29
  render(): h.JSX.Element;
@@ -21,6 +21,11 @@ export interface GooglePayPropsConfiguration {
21
21
  * Merchant fully qualified domain name.
22
22
  */
23
23
  merchantOrigin?: string;
24
+ /**
25
+ * Google JWT solution for platforms
26
+ * To request Google Pay credentials, you can enable platforms to send requests that are authenticated with the platform credentials. You don't need to register individual domain names to call Google Pay APIs.
27
+ */
28
+ authJwt?: string;
24
29
  }
25
30
  export interface GooglePayProps extends UIElementProps {
26
31
  type?: 'googlepay' | 'paywithgoogle';
@@ -1,6 +1,7 @@
1
1
  import { h } from 'preact';
2
2
  import UIElement from '../UIElement';
3
3
  import { ErrorObject } from './components/utils';
4
+ import Language from '../../language';
4
5
  export interface ThreeDS2ChallengeProps {
5
6
  token?: string;
6
7
  dataKey?: string;
@@ -10,7 +11,9 @@ export interface ThreeDS2ChallengeProps {
10
11
  size?: string;
11
12
  challengeWindowSize?: '01' | '02' | '03' | '04' | '05';
12
13
  type?: string;
14
+ loadingContext?: string;
13
15
  useOriginalFlow?: boolean;
16
+ i18n?: Language;
14
17
  }
15
18
  declare class ThreeDS2Challenge extends UIElement<ThreeDS2ChallengeProps> {
16
19
  static type: string;
@@ -1,6 +1,7 @@
1
1
  import { Component, h } from 'preact';
2
2
  import { PrepareChallenge3DS2Props, PrepareChallenge3DS2State } from './types';
3
3
  import '../../ThreeDS2.scss';
4
+ import './challenge.scss';
4
5
  declare class PrepareChallenge3DS2 extends Component<PrepareChallenge3DS2Props, PrepareChallenge3DS2State> {
5
6
  static defaultProps: {
6
7
  onComplete: () => void;
@@ -8,6 +9,7 @@ declare class PrepareChallenge3DS2 extends Component<PrepareChallenge3DS2Props,
8
9
  };
9
10
  constructor(props: any);
10
11
  setStatusComplete(resultObj: any): void;
12
+ setStatusError(errorObj: any): void;
11
13
  render(props: any, { challengeData }: {
12
14
  challengeData: any;
13
15
  }): h.JSX.Element;
@@ -67,7 +67,7 @@ export declare const createFingerprintResolveData: (dataKey: string, resultObj:
67
67
  export declare const createOldFingerprintResolveData: (dataKey: string, resultObj: ResultObject, paymentData: string) => any;
68
68
  export declare const createChallengeResolveData: (dataKey: string, transStatus: string, authorisationToken: string) => ChallengeResolveData;
69
69
  export declare const createOldChallengeResolveData: (dataKey: string, transStatus: string, authorisationToken: string) => any;
70
- export declare const handleErrorCode: (errorCode: string) => ErrorObject;
70
+ export declare const handleErrorCode: (errorCode: string, errorDescription?: string) => ErrorObject;
71
71
  /**
72
72
  *
73
73
  * Takes a string and encodes it as a base64url string
@@ -18,13 +18,16 @@ export interface ChallengeData {
18
18
  postMessageDomain: string;
19
19
  }
20
20
  export interface ResultObject {
21
- transStatus?: ResultValue;
22
21
  threeDSCompInd?: ResultValue;
22
+ transStatus?: ResultValue;
23
+ errorCode?: string;
24
+ errorDescription?: string;
23
25
  }
24
26
  export interface ThreeDS2FlowObject {
25
27
  result: ResultObject;
26
28
  type: 'ChallengeShopper' | 'IdentifyShopper' | 'challengeResult' | 'fingerPrintResult';
27
29
  errorCode?: string;
30
+ threeDSServerTransID?: string;
28
31
  }
29
32
  export interface ThreeDS2Token {
30
33
  acsTransID?: string;
@@ -63,7 +63,7 @@ declare class SecuredFieldsProvider extends Component<SFPProps, SFPState> {
63
63
  destroy(): void;
64
64
  showValidation(): void;
65
65
  /**
66
- * Map SF errors to ValidationRuleResult like objects, for CardInput component
66
+ * Map SF errors to ValidationRuleResult-like objects, for CardInput component
67
67
  */
68
68
  mapErrorsToValidationRuleResult(): object;
69
69
  processBinLookupResponse(binLookupResponse: BinLookupResponse, resetObject: SingleBrandResetObject): void;
@@ -8,7 +8,7 @@ export interface CoreOptions {
8
8
  /**
9
9
  * Use test. When you're ready to accept live payments, change the value to one of our {@link https://docs.adyen.com/checkout/drop-in-web#testing-your-integration | live environments}.
10
10
  */
11
- environment?: 'test' | 'live' | 'live-us' | 'live-au' | 'live-apse' | string;
11
+ environment?: 'test' | 'live' | 'live-us' | 'live-au' | 'live-apse' | 'live-in' | string;
12
12
  /**
13
13
  * A public key linked to your web service user, used for {@link https://docs.adyen.com/user-management/client-side-authentication | client-side authentication}.
14
14
  */
@@ -1,11 +1,2 @@
1
- /**
2
- * Centralised window.postMessage processing function used in 3DS2 components
3
- *
4
- * @param domain - expected domain for the postMesssage to have originated from
5
- * @param resolve - the resolve function from the Promise that called this function
6
- * @param reject - the reject function from the Promise that called this function
7
- * @param rejectObj - an object to reject the promise with if origins don't match
8
- * @param expectedType - string to check that the passed data has the expected type
9
- */
10
1
  declare const getProcessMessageHandler: (domain: string, resolve: Function, reject: Function, rejectObj: object, expectedType: string) => Function;
11
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.16.1",
26
+ "version": "5.18.0",
27
27
  "license": "MIT",
28
28
  "homepage": "https://docs.adyen.com/checkout",
29
29
  "repository": "github:Adyen/adyen-web",