@adyen/adyen-web 5.49.5 → 5.50.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.
@@ -1,6 +1,7 @@
1
1
  import { CardElement } from './Card';
2
- import { CardElementProps } from './types';
2
+ import { CardElementData, CardElementProps } from './types';
3
3
  declare class BancontactElement extends CardElement {
4
+ static type: string;
4
5
  constructor(props: CardElementProps);
5
6
  protected static defaultProps: {
6
7
  brands: string[];
@@ -9,6 +10,7 @@ declare class BancontactElement extends CardElement {
9
10
  showFormInstruction: boolean;
10
11
  _disableClickToPay: boolean;
11
12
  };
13
+ formatData(): CardElementData;
12
14
  /**
13
15
  * Now that the Bancontact (BCMC) Card component can accept a number dual branded with Visa (which requires a CVC) it has to be handled differently
14
16
  * at creation time (no automatic removing of the CVC securedField).
@@ -132,7 +132,6 @@ export interface StoredCardFieldsProps {
132
132
  lastFour?: string;
133
133
  onFocusField: any;
134
134
  valid: any;
135
- status: string;
136
135
  }
137
136
  export interface SfSpanProps {
138
137
  encryptedFieldType: string;
@@ -1,4 +1,4 @@
1
1
  export declare const FALLBACK_CONTEXT = "https://checkoutshopper-live.adyen.com/checkoutshopper/";
2
- export declare const resolveEnvironment: (env?: string) => string;
2
+ export declare const resolveEnvironment: (env?: string, environmentUrl?: string) => string;
3
3
  export declare const FALLBACK_CDN_CONTEXT = "https://checkoutshopper-live.adyen.com/checkoutshopper/";
4
- export declare const resolveCDNEnvironment: (env?: string) => any;
4
+ export declare const resolveCDNEnvironment: (env?: string, environmentUrl?: string) => any;
@@ -16,6 +16,15 @@ export interface CoreOptions {
16
16
  * 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}.
17
17
  */
18
18
  environment?: 'test' | 'live' | 'live-us' | 'live-au' | 'live-apse' | 'live-in' | string;
19
+ /**
20
+ * Used internally by Pay By Link in order to set its own URL's instead of using the ones mapped in our codebase.
21
+ *
22
+ * @internal
23
+ */
24
+ environmentUrls?: {
25
+ api?: string;
26
+ analytics?: string;
27
+ };
19
28
  /**
20
29
  * Show or hides a Pay Button for each payment method
21
30
  */
package/package.json CHANGED
@@ -24,7 +24,7 @@
24
24
  "./dist/es/adyen.css": "./dist/es/adyen.css",
25
25
  "./package.json": "./package.json"
26
26
  },
27
- "version": "5.49.5",
27
+ "version": "5.50.0",
28
28
  "license": "MIT",
29
29
  "homepage": "https://docs.adyen.com/checkout",
30
30
  "repository": "github:Adyen/adyen-web",