@adyen/adyen-web 6.0.0-alpha.0 → 6.0.0-alpha.2
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/auto/auto.js +2 -0
- package/dist/cjs/adyen.css +1 -1
- package/dist/cjs/index.cjs +2 -2
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.d.cts +161 -248
- package/dist/es/adyen.css +1 -1
- package/dist/es/components/ApplePay/ApplePay.js +1 -1
- package/dist/es/components/ApplePay/ApplePay.js.map +1 -1
- package/dist/es/components/Dropin/Dropin.js +1 -1
- package/dist/es/components/Dropin/Dropin.js.map +1 -1
- package/dist/es/components/Dropin/components/DropinComponent.js +1 -1
- package/dist/es/components/Dropin/components/DropinComponent.js.map +1 -1
- package/dist/es/components/Dropin/defaultProps.js +1 -1
- package/dist/es/components/Dropin/defaultProps.js.map +1 -1
- package/dist/es/components/GooglePay/GooglePay.js +1 -1
- package/dist/es/components/GooglePay/GooglePay.js.map +1 -1
- package/dist/es/components/PayPal/Paypal.js +1 -1
- package/dist/es/components/PayPal/Paypal.js.map +1 -1
- package/dist/es/components/PayPal/components/PaypalButtons.js +1 -1
- package/dist/es/components/PayPal/components/PaypalButtons.js.map +1 -1
- package/dist/es/components/PayPal/components/PaypalComponent.js +1 -1
- package/dist/es/components/PayPal/components/PaypalComponent.js.map +1 -1
- package/dist/es/components/PayPal/defaultProps.js +1 -1
- package/dist/es/components/PayPal/defaultProps.js.map +1 -1
- package/dist/es/components/PayPal/utils/format-paypal-order-contact-to-adyen-format.js +1 -1
- package/dist/es/components/PayPal/utils/format-paypal-order-contact-to-adyen-format.js.map +1 -1
- package/dist/es/components/PayPal/utils/get-paypal-locale.js +2 -0
- package/dist/es/components/PayPal/utils/get-paypal-locale.js.map +1 -0
- package/dist/es/components/PayPal/utils/get-paypal-settings.js +2 -0
- package/dist/es/components/PayPal/utils/get-paypal-settings.js.map +1 -0
- package/dist/es/components/PayPal/utils/get-paypal-styles.js +2 -0
- package/dist/es/components/PayPal/utils/get-paypal-styles.js.map +1 -0
- package/dist/es/components/PayPal/utils/get-paypal-url.js +2 -0
- package/dist/es/components/PayPal/utils/get-paypal-url.js.map +1 -0
- package/dist/es/components/helpers/IssuerListContainer/IssuerListContainer.js +1 -1
- package/dist/es/components/helpers/IssuerListContainer/IssuerListContainer.js.map +1 -1
- package/dist/es/components/internal/BaseElement/BaseElement.js +1 -1
- package/dist/es/components/internal/BaseElement/BaseElement.js.map +1 -1
- package/dist/es/components/internal/UIElement/UIElement.js +1 -1
- package/dist/es/components/internal/UIElement/UIElement.js.map +1 -1
- package/dist/es/components/internal/UIElement/utils.js.map +1 -1
- package/dist/es/core/AdyenCheckout.js +1 -1
- package/dist/es/core/AdyenCheckout.js.map +1 -1
- package/dist/es/core/Analytics/Analytics.js +1 -1
- package/dist/es/core/Analytics/Analytics.js.map +1 -1
- package/dist/es/core/Analytics/EventsQueue.js +1 -1
- package/dist/es/core/Analytics/EventsQueue.js.map +1 -1
- package/dist/es/core/Analytics/utils.js +1 -1
- package/dist/es/core/Analytics/utils.js.map +1 -1
- package/dist/es/core/Errors/AdyenCheckoutError.js +1 -1
- package/dist/es/core/Errors/AdyenCheckoutError.js.map +1 -1
- package/dist/es/core/Errors/utils.js +1 -1
- package/dist/es/core/Errors/utils.js.map +1 -1
- package/dist/es/core/Services/analytics/collect-id.js +1 -1
- package/dist/es/core/Services/analytics/collect-id.js.map +1 -1
- package/dist/es/core/Services/analytics/log-event.js +1 -1
- package/dist/es/core/config.js +1 -1
- package/dist/es/core/config.js.map +1 -1
- package/dist/es/core/core.js +1 -1
- package/dist/es/core/core.js.map +1 -1
- package/dist/es/index.d.ts +161 -248
- package/dist/es/language/locales/en-US.json.js +1 -1
- package/dist/es/utils/Script.js +1 -1
- package/dist/es/utils/Script.js.map +1 -1
- package/dist/es-legacy/adyen.css +1 -1
- package/dist/es-legacy/components/ApplePay/ApplePay.js +1 -1
- package/dist/es-legacy/components/ApplePay/ApplePay.js.map +1 -1
- package/dist/es-legacy/components/Dropin/Dropin.js +1 -1
- package/dist/es-legacy/components/Dropin/Dropin.js.map +1 -1
- package/dist/es-legacy/components/Dropin/components/DropinComponent.js +1 -1
- package/dist/es-legacy/components/Dropin/components/DropinComponent.js.map +1 -1
- package/dist/es-legacy/components/Dropin/defaultProps.js +1 -1
- package/dist/es-legacy/components/Dropin/defaultProps.js.map +1 -1
- package/dist/es-legacy/components/GooglePay/GooglePay.js +1 -1
- package/dist/es-legacy/components/GooglePay/GooglePay.js.map +1 -1
- package/dist/es-legacy/components/PayPal/Paypal.js +1 -1
- package/dist/es-legacy/components/PayPal/Paypal.js.map +1 -1
- package/dist/es-legacy/components/PayPal/components/PaypalButtons.js +1 -1
- package/dist/es-legacy/components/PayPal/components/PaypalButtons.js.map +1 -1
- package/dist/es-legacy/components/PayPal/components/PaypalComponent.js +1 -1
- package/dist/es-legacy/components/PayPal/components/PaypalComponent.js.map +1 -1
- package/dist/es-legacy/components/PayPal/defaultProps.js +1 -1
- package/dist/es-legacy/components/PayPal/defaultProps.js.map +1 -1
- package/dist/es-legacy/components/PayPal/utils/format-paypal-order-contact-to-adyen-format.js +1 -1
- package/dist/es-legacy/components/PayPal/utils/format-paypal-order-contact-to-adyen-format.js.map +1 -1
- package/dist/es-legacy/components/PayPal/utils/get-paypal-locale.js +2 -0
- package/dist/es-legacy/components/PayPal/utils/get-paypal-locale.js.map +1 -0
- package/dist/es-legacy/components/PayPal/utils/get-paypal-settings.js +2 -0
- package/dist/es-legacy/components/PayPal/utils/get-paypal-settings.js.map +1 -0
- package/dist/es-legacy/components/PayPal/utils/get-paypal-styles.js +2 -0
- package/dist/es-legacy/components/PayPal/utils/get-paypal-styles.js.map +1 -0
- package/dist/es-legacy/components/PayPal/utils/get-paypal-url.js +2 -0
- package/dist/es-legacy/components/PayPal/utils/get-paypal-url.js.map +1 -0
- package/dist/es-legacy/components/helpers/IssuerListContainer/IssuerListContainer.js +1 -1
- package/dist/es-legacy/components/helpers/IssuerListContainer/IssuerListContainer.js.map +1 -1
- package/dist/es-legacy/components/internal/BaseElement/BaseElement.js +1 -1
- package/dist/es-legacy/components/internal/BaseElement/BaseElement.js.map +1 -1
- package/dist/es-legacy/components/internal/UIElement/UIElement.js +1 -1
- package/dist/es-legacy/components/internal/UIElement/UIElement.js.map +1 -1
- package/dist/es-legacy/components/internal/UIElement/utils.js.map +1 -1
- package/dist/es-legacy/core/AdyenCheckout.js +1 -1
- package/dist/es-legacy/core/AdyenCheckout.js.map +1 -1
- package/dist/es-legacy/core/Analytics/Analytics.js +1 -1
- package/dist/es-legacy/core/Analytics/Analytics.js.map +1 -1
- package/dist/es-legacy/core/Analytics/EventsQueue.js +1 -1
- package/dist/es-legacy/core/Analytics/EventsQueue.js.map +1 -1
- package/dist/es-legacy/core/Analytics/utils.js +1 -1
- package/dist/es-legacy/core/Analytics/utils.js.map +1 -1
- package/dist/es-legacy/core/Errors/AdyenCheckoutError.js +1 -1
- package/dist/es-legacy/core/Errors/AdyenCheckoutError.js.map +1 -1
- package/dist/es-legacy/core/Errors/utils.js +1 -1
- package/dist/es-legacy/core/Errors/utils.js.map +1 -1
- package/dist/es-legacy/core/Services/analytics/collect-id.js +1 -1
- package/dist/es-legacy/core/Services/analytics/collect-id.js.map +1 -1
- package/dist/es-legacy/core/Services/analytics/log-event.js +1 -1
- package/dist/es-legacy/core/config.js +1 -1
- package/dist/es-legacy/core/config.js.map +1 -1
- package/dist/es-legacy/core/core.js +1 -1
- package/dist/es-legacy/core/core.js.map +1 -1
- package/dist/es-legacy/language/locales/en-US.json.js +1 -1
- package/dist/es-legacy/utils/Script.js +1 -1
- package/dist/es-legacy/utils/Script.js.map +1 -1
- package/dist/umd/adyen.css +1 -1
- package/dist/umd/adyen.js +2 -2
- package/dist/umd/adyen.js.map +1 -1
- package/package.json +2 -2
- package/dist/es/components/PayPal/utils.js +0 -2
- package/dist/es/components/PayPal/utils.js.map +0 -1
- package/dist/es-legacy/components/PayPal/utils.js +0 -2
- package/dist/es-legacy/components/PayPal/utils.js.map +0 -1
package/dist/cjs/index.d.cts
CHANGED
|
@@ -110,6 +110,7 @@ interface AnalyticsOptions {
|
|
|
110
110
|
interface AnalyticsObject {
|
|
111
111
|
timestamp: string;
|
|
112
112
|
component: string;
|
|
113
|
+
id: string;
|
|
113
114
|
code?: string;
|
|
114
115
|
errorType?: string;
|
|
115
116
|
message?: string;
|
|
@@ -131,12 +132,12 @@ type AnalyticsInitialEvent = {
|
|
|
131
132
|
paymentMethods?: any[];
|
|
132
133
|
sessionId?: string;
|
|
133
134
|
};
|
|
134
|
-
type CreateAnalyticsEventData = Omit<AnalyticsObject, 'timestamp'>;
|
|
135
|
+
type CreateAnalyticsEventData = Omit<AnalyticsObject, 'timestamp' | 'id'>;
|
|
135
136
|
type CreateAnalyticsEventObject = {
|
|
136
137
|
event: ANALYTICS_EVENT;
|
|
137
138
|
data: CreateAnalyticsEventData;
|
|
138
139
|
};
|
|
139
|
-
type SendAnalyticsObject = Omit<AnalyticsObject, 'timestamp' | 'component'>;
|
|
140
|
+
type SendAnalyticsObject = Omit<AnalyticsObject, 'timestamp' | 'component' | 'id'>;
|
|
140
141
|
|
|
141
142
|
interface ImageOptions {
|
|
142
143
|
extension?: string;
|
|
@@ -721,7 +722,6 @@ interface IBaseElement {
|
|
|
721
722
|
render(): ComponentChild | Error;
|
|
722
723
|
mount(domNode: HTMLElement | string): IBaseElement;
|
|
723
724
|
update(props: any): IBaseElement;
|
|
724
|
-
remount(component: any): IBaseElement;
|
|
725
725
|
unmount(): IBaseElement;
|
|
726
726
|
remove(): void;
|
|
727
727
|
}
|
|
@@ -773,6 +773,8 @@ declare class AdyenCheckoutError extends Error {
|
|
|
773
773
|
API_ERROR: string;
|
|
774
774
|
/** Generic error. */
|
|
775
775
|
ERROR: string;
|
|
776
|
+
/** Script error. The browser failed to load 3rd party script */
|
|
777
|
+
SCRIPT_ERROR: string;
|
|
776
778
|
};
|
|
777
779
|
cause: unknown;
|
|
778
780
|
constructor(type: keyof typeof AdyenCheckoutError.errorTypes, message?: string, options?: CheckoutErrorOptions);
|
|
@@ -916,7 +918,13 @@ interface CoreConfiguration {
|
|
|
916
918
|
analytics?: AnalyticsOptions;
|
|
917
919
|
risk?: RiskModuleOptions;
|
|
918
920
|
order?: Order;
|
|
919
|
-
|
|
921
|
+
/**
|
|
922
|
+
* Add @adyen/web metadata to the window object.
|
|
923
|
+
* It helps to identify version number and bundle type in the merchant environment
|
|
924
|
+
*
|
|
925
|
+
* @default true
|
|
926
|
+
*/
|
|
927
|
+
exposeLibraryMetadata?: boolean;
|
|
920
928
|
beforeRedirect?(resolve: () => void, reject: () => void, redirectData: {
|
|
921
929
|
url: string;
|
|
922
930
|
method: string;
|
|
@@ -952,7 +960,7 @@ interface CoreConfiguration {
|
|
|
952
960
|
}, element?: UIElement): void;
|
|
953
961
|
onSubmit?(state: any, element: UIElement, actions: {
|
|
954
962
|
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
955
|
-
reject: () => void;
|
|
963
|
+
reject: (error?: Pick<CheckoutAdvancedFlowResponse, 'error'>) => void;
|
|
956
964
|
}): void;
|
|
957
965
|
/**
|
|
958
966
|
* Callback used in the Advanced flow to perform the /payments/details API call.
|
|
@@ -1034,12 +1042,6 @@ declare class BaseElement<P extends BaseElementProps> implements IBaseElement {
|
|
|
1034
1042
|
* @returns this - the element instance
|
|
1035
1043
|
*/
|
|
1036
1044
|
update(props: Partial<P>): this;
|
|
1037
|
-
/**
|
|
1038
|
-
* Unmounts an element and mounts it again on the same node i.e. allows mount w/o having to pass a node.
|
|
1039
|
-
* Should be "private" & undocumented (although being a public function is useful for testing).
|
|
1040
|
-
* Left in for legacy reasons
|
|
1041
|
-
*/
|
|
1042
|
-
remount(component?: any): this;
|
|
1043
1045
|
/**
|
|
1044
1046
|
* Unmounts a payment element from the DOM
|
|
1045
1047
|
*/
|
|
@@ -1083,7 +1085,6 @@ declare abstract class UIElement<P extends UIElementProps = UIElementProps> exte
|
|
|
1083
1085
|
protected makePaymentsCall(): Promise<CheckoutAdvancedFlowResponse | CheckoutSessionPaymentResponse>;
|
|
1084
1086
|
private submitUsingAdvancedFlow;
|
|
1085
1087
|
private submitUsingSessionsFlow;
|
|
1086
|
-
private onValid;
|
|
1087
1088
|
protected onComplete(state: any): void;
|
|
1088
1089
|
protected handleError: (error: AdyenCheckoutError) => void;
|
|
1089
1090
|
protected handleAdditionalDetails(state: AdditionalDetailsStateData): void;
|
|
@@ -1191,7 +1192,6 @@ type CoreCallbacks = Pick<CoreConfiguration, 'beforeRedirect' | 'beforeSubmit' |
|
|
|
1191
1192
|
type UIElementProps = BaseElementProps & CoreCallbacks & {
|
|
1192
1193
|
environment?: string;
|
|
1193
1194
|
session?: Session;
|
|
1194
|
-
onValid?: (state: any, element: UIElement) => void;
|
|
1195
1195
|
onComplete?: (state: any, element: UIElement) => void;
|
|
1196
1196
|
isInstantPayment?: boolean;
|
|
1197
1197
|
/**
|
|
@@ -1225,11 +1225,6 @@ type UIElementProps = BaseElementProps & CoreCallbacks & {
|
|
|
1225
1225
|
* @defaultValue true
|
|
1226
1226
|
*/
|
|
1227
1227
|
showPayButton?: boolean;
|
|
1228
|
-
/**
|
|
1229
|
-
* Set to false to not set the Component status to 'loading' when onSubmit is triggered.
|
|
1230
|
-
* @defaultValue true
|
|
1231
|
-
*/
|
|
1232
|
-
setStatusAutomatically?: boolean;
|
|
1233
1228
|
/** @internal */
|
|
1234
1229
|
payButton?: (options: PayButtonFunctionProps) => h.JSX.Element;
|
|
1235
1230
|
/** @internal */
|
|
@@ -1292,6 +1287,7 @@ declare const actionTypes: {
|
|
|
1292
1287
|
|
|
1293
1288
|
interface CAActions {
|
|
1294
1289
|
channel: 'Web';
|
|
1290
|
+
platform: 'Web';
|
|
1295
1291
|
info: AnalyticsObject[];
|
|
1296
1292
|
errors: AnalyticsObject[];
|
|
1297
1293
|
logs: AnalyticsObject[];
|
|
@@ -2470,7 +2466,6 @@ interface IssuerListData {
|
|
|
2470
2466
|
declare class IssuerListContainer extends UIElement<IssuerListConfiguration> {
|
|
2471
2467
|
protected static defaultProps: {
|
|
2472
2468
|
showImage: boolean;
|
|
2473
|
-
onValid: () => void;
|
|
2474
2469
|
issuers: any[];
|
|
2475
2470
|
highlightedIssuers: any[];
|
|
2476
2471
|
loadingContext: string;
|
|
@@ -2628,7 +2623,7 @@ declare class CashAppPay extends UIElement<CashAppPayConfiguration> {
|
|
|
2628
2623
|
}) => void;
|
|
2629
2624
|
onSubmit?: (state: any, element: UIElement<UIElementProps>, actions: {
|
|
2630
2625
|
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
2631
|
-
reject: () => void;
|
|
2626
|
+
reject: (error?: Pick<CheckoutAdvancedFlowResponse, "error">) => void;
|
|
2632
2627
|
}) => void;
|
|
2633
2628
|
onAdditionalDetails?: (state: AdditionalDetailsStateData, element: UIElement<UIElementProps>, actions: {
|
|
2634
2629
|
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
@@ -2653,7 +2648,6 @@ declare class CashAppPay extends UIElement<CashAppPayConfiguration> {
|
|
|
2653
2648
|
onError?: (error: AdyenCheckoutError, element?: UIElement<UIElementProps>) => void;
|
|
2654
2649
|
environment?: string;
|
|
2655
2650
|
session?: Session;
|
|
2656
|
-
onValid?: (state: any, element: UIElement<UIElementProps>) => void;
|
|
2657
2651
|
onComplete?: (state: any, element: UIElement<UIElementProps>) => void;
|
|
2658
2652
|
isInstantPayment?: boolean;
|
|
2659
2653
|
isStoredPaymentMethod?: boolean;
|
|
@@ -2665,7 +2659,6 @@ declare class CashAppPay extends UIElement<CashAppPayConfiguration> {
|
|
|
2665
2659
|
amount?: PaymentAmount;
|
|
2666
2660
|
secondaryAmount?: PaymentAmountExtended;
|
|
2667
2661
|
showPayButton?: boolean;
|
|
2668
|
-
setStatusAutomatically?: boolean;
|
|
2669
2662
|
payButton?: (options: PayButtonFunctionProps) => h.JSX.Element;
|
|
2670
2663
|
loadingContext?: string;
|
|
2671
2664
|
createFromAction?: (action: PaymentAction, props: object) => UIElement<UIElementProps>;
|
|
@@ -2758,7 +2751,7 @@ declare class ClickToPayElement extends UIElement<ClickToPayConfiguration> {
|
|
|
2758
2751
|
}) => void;
|
|
2759
2752
|
onSubmit?: (state: any, element: UIElement<UIElementProps>, actions: {
|
|
2760
2753
|
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
2761
|
-
reject: () => void;
|
|
2754
|
+
reject: (error?: Pick<CheckoutAdvancedFlowResponse, "error">) => void;
|
|
2762
2755
|
}) => void;
|
|
2763
2756
|
onAdditionalDetails?: (state: AdditionalDetailsStateData, element: UIElement<UIElementProps>, actions: {
|
|
2764
2757
|
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
@@ -2783,7 +2776,6 @@ declare class ClickToPayElement extends UIElement<ClickToPayConfiguration> {
|
|
|
2783
2776
|
onError?: (error: AdyenCheckoutError, element?: UIElement<UIElementProps>) => void;
|
|
2784
2777
|
environment?: string;
|
|
2785
2778
|
session?: Session;
|
|
2786
|
-
onValid?: (state: any, element: UIElement<UIElementProps>) => void;
|
|
2787
2779
|
onComplete?: (state: any, element: UIElement<UIElementProps>) => void;
|
|
2788
2780
|
isInstantPayment?: boolean;
|
|
2789
2781
|
isStoredPaymentMethod?: boolean;
|
|
@@ -2796,7 +2788,6 @@ declare class ClickToPayElement extends UIElement<ClickToPayConfiguration> {
|
|
|
2796
2788
|
amount?: PaymentAmount;
|
|
2797
2789
|
secondaryAmount?: PaymentAmountExtended;
|
|
2798
2790
|
showPayButton?: boolean;
|
|
2799
|
-
setStatusAutomatically?: boolean;
|
|
2800
2791
|
payButton?: (options: PayButtonFunctionProps) => h.JSX.Element;
|
|
2801
2792
|
loadingContext?: string;
|
|
2802
2793
|
createFromAction?: (action: PaymentAction, props: object) => UIElement<UIElementProps>;
|
|
@@ -2945,7 +2936,7 @@ declare class BancontactElement extends CardElement {
|
|
|
2945
2936
|
}) => void;
|
|
2946
2937
|
onSubmit?: (state: any, element: UIElement<UIElementProps>, actions: {
|
|
2947
2938
|
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
2948
|
-
reject: () => void;
|
|
2939
|
+
reject: (error?: Pick<CheckoutAdvancedFlowResponse, "error">) => void;
|
|
2949
2940
|
}) => void;
|
|
2950
2941
|
onAdditionalDetails?: (state: AdditionalDetailsStateData, element: UIElement<UIElementProps>, actions: {
|
|
2951
2942
|
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
@@ -2970,7 +2961,6 @@ declare class BancontactElement extends CardElement {
|
|
|
2970
2961
|
onError?: (error: AdyenCheckoutError, element?: UIElement<UIElementProps>) => void;
|
|
2971
2962
|
environment?: string;
|
|
2972
2963
|
session?: Session;
|
|
2973
|
-
onValid?: (state: any, element: UIElement<UIElementProps>) => void;
|
|
2974
2964
|
onComplete?: (state: any, element: UIElement<UIElementProps>) => void;
|
|
2975
2965
|
isInstantPayment?: boolean;
|
|
2976
2966
|
isStoredPaymentMethod?: boolean;
|
|
@@ -2980,7 +2970,6 @@ declare class BancontactElement extends CardElement {
|
|
|
2980
2970
|
amount?: PaymentAmount;
|
|
2981
2971
|
secondaryAmount?: PaymentAmountExtended;
|
|
2982
2972
|
showPayButton?: boolean;
|
|
2983
|
-
setStatusAutomatically?: boolean;
|
|
2984
2973
|
payButton?: (options: PayButtonFunctionProps) => preact.JSX.Element;
|
|
2985
2974
|
loadingContext?: string;
|
|
2986
2975
|
createFromAction?: (action: PaymentAction, props: object) => UIElement<UIElementProps>;
|
|
@@ -3113,7 +3102,7 @@ interface GooglePayConfiguration extends UIElementProps {
|
|
|
3113
3102
|
configuration?: GooglePayPropsConfiguration;
|
|
3114
3103
|
/**
|
|
3115
3104
|
* @see https://developers.google.com/pay/api/web/reference/request-objects#IsReadyToPayRequest
|
|
3116
|
-
* @defaultValue
|
|
3105
|
+
* @defaultValue false
|
|
3117
3106
|
*/
|
|
3118
3107
|
existingPaymentMethodRequired?: boolean;
|
|
3119
3108
|
/**
|
|
@@ -3375,157 +3364,52 @@ declare class IdealElement extends IssuerListContainer {
|
|
|
3375
3364
|
static type: TxVariants;
|
|
3376
3365
|
}
|
|
3377
3366
|
|
|
3378
|
-
declare const SUPPORTED_LOCALES: readonly ["en_US", "en_AU", "en_GB", "fr_CA", "es_ES", "it_IT", "fr_FR", "de_DE", "pt_BR", "zh_CN", "da_DK", "zh_HK", "id_ID", "he_IL", "ja_JP", "ko_KR", "nl_NL", "no_NO", "pl_PL", "pt_PT", "ru_RU", "sv_SE", "th_TH", "zh_TW"];
|
|
3379
|
-
|
|
3380
3367
|
declare global {
|
|
3381
3368
|
interface Window {
|
|
3382
3369
|
paypal: object;
|
|
3383
3370
|
}
|
|
3384
3371
|
}
|
|
3385
|
-
|
|
3386
|
-
* The intent for the transaction. This determines whether the funds are captured immediately, or later.
|
|
3387
|
-
* @see {@link https://developer.paypal.com/docs/checkout/reference/customize-sdk/#intent}
|
|
3388
|
-
*/
|
|
3389
|
-
type Intent = 'sale' | 'capture' | 'authorize' | 'order' | 'tokenize';
|
|
3390
|
-
type FundingSource = 'paypal' | 'credit' | 'paylater' | 'venmo';
|
|
3391
|
-
interface PayPalStyles {
|
|
3392
|
-
/**
|
|
3393
|
-
* @see {@link https://developer.paypal.com/docs/checkout/integration-features/customize-button/#color}
|
|
3394
|
-
*/
|
|
3395
|
-
color?: 'gold' | 'blue' | 'silver' | 'white' | 'black';
|
|
3372
|
+
interface PayPalConfiguration extends UIElementProps {
|
|
3396
3373
|
/**
|
|
3397
|
-
*
|
|
3398
|
-
|
|
3399
|
-
shape?: 'rect' | 'pill';
|
|
3400
|
-
/**
|
|
3401
|
-
* @see {@link https://developer.paypal.com/docs/checkout/integration-features/customize-button/#height}
|
|
3402
|
-
*/
|
|
3403
|
-
height?: string | number;
|
|
3404
|
-
/**
|
|
3405
|
-
* @see {@link https://developer.paypal.com/docs/checkout/integration-features/customize-button/#label}
|
|
3406
|
-
*/
|
|
3407
|
-
label?: 'paypal' | 'checkout' | 'buynow' | 'pay';
|
|
3408
|
-
/**
|
|
3409
|
-
* @see {@link https://developer.paypal.com/docs/checkout/integration-features/customize-button/#tagline}
|
|
3410
|
-
*/
|
|
3411
|
-
tagline?: boolean;
|
|
3412
|
-
/**
|
|
3413
|
-
* @see {@link https://developer.paypal.com/docs/checkout/integration-features/customize-button/#layout}
|
|
3374
|
+
* Configuration returned by the backend
|
|
3375
|
+
* @internal
|
|
3414
3376
|
*/
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3377
|
+
configuration?: {
|
|
3378
|
+
/**
|
|
3379
|
+
* @see {@link https://developer.paypal.com/sdk/js/configuration/#link-merchantid}
|
|
3380
|
+
*/
|
|
3381
|
+
merchantId: string;
|
|
3382
|
+
/**
|
|
3383
|
+
* @see {@link https://developer.paypal.com/sdk/js/configuration/#link-intent}
|
|
3384
|
+
*/
|
|
3385
|
+
intent?: Intent;
|
|
3386
|
+
};
|
|
3418
3387
|
/**
|
|
3419
|
-
*
|
|
3420
|
-
*
|
|
3388
|
+
* Identifies if the payment is Express.
|
|
3389
|
+
* @defaultValue false
|
|
3421
3390
|
*/
|
|
3422
|
-
|
|
3423
|
-
configuration?: PayPalConfig;
|
|
3391
|
+
isExpress?: boolean;
|
|
3424
3392
|
/**
|
|
3425
|
-
*
|
|
3426
|
-
* @
|
|
3393
|
+
* Set to true to force the UI to not render PayPal Credit button
|
|
3394
|
+
* @default false
|
|
3427
3395
|
*/
|
|
3428
|
-
countryCode?: string;
|
|
3429
|
-
/**
|
|
3430
|
-
* Set to true to enable debug mode. Defaults to false.
|
|
3431
|
-
* @see {@link https://developer.paypal.com/docs/checkout/reference/customize-sdk/#debug}
|
|
3432
|
-
*/
|
|
3433
|
-
debug?: boolean;
|
|
3434
|
-
environment?: string;
|
|
3435
3396
|
blockPayPalCreditButton?: boolean;
|
|
3436
3397
|
/**
|
|
3437
3398
|
* Set to true to force the UI to not render PayPal Pay Later button
|
|
3438
|
-
* @
|
|
3399
|
+
* @default false
|
|
3439
3400
|
*/
|
|
3440
3401
|
blockPayPalPayLaterButton?: boolean;
|
|
3441
3402
|
/**
|
|
3442
3403
|
* Set to true to force the UI to not render PayPal Venmo button
|
|
3443
|
-
* @
|
|
3404
|
+
* @default false
|
|
3444
3405
|
*/
|
|
3445
3406
|
blockPayPalVenmoButton?: boolean;
|
|
3446
|
-
enableMessages?: boolean;
|
|
3447
|
-
/**
|
|
3448
|
-
* @see {@link https://developer.paypal.com/docs/business/javascript-sdk/javascript-sdk-configuration/#csp-nonce}
|
|
3449
|
-
*/
|
|
3450
|
-
cspNonce?: string;
|
|
3451
|
-
/**
|
|
3452
|
-
* Determines whether the funds are captured immediately on checkout or if the buyer authorizes the funds to be captured later.
|
|
3453
|
-
* @see {@link https://developer.paypal.com/docs/checkout/reference/customize-sdk/#intent}
|
|
3454
|
-
*
|
|
3455
|
-
* If set, it will override the intent passed inside the 'configuration' object
|
|
3456
|
-
*/
|
|
3457
|
-
intent?: Intent;
|
|
3458
|
-
/**
|
|
3459
|
-
* @see {@link https://developer.paypal.com/docs/checkout/reference/customize-sdk/#commit}
|
|
3460
|
-
*/
|
|
3461
|
-
commit?: boolean;
|
|
3462
|
-
/**
|
|
3463
|
-
* @see {@link https://developer.paypal.com/docs/checkout/reference/customize-sdk/#vault}
|
|
3464
|
-
*/
|
|
3465
|
-
vault?: boolean;
|
|
3466
|
-
/**
|
|
3467
|
-
* @see {@link https://developer.paypal.com/docs/checkout/reference/customize-sdk/#locale}
|
|
3468
|
-
*/
|
|
3469
|
-
locale?: string;
|
|
3470
|
-
/**
|
|
3471
|
-
* @see {@link https://developer.paypal.com/docs/checkout/reference/customize-sdk/#merchant-id}
|
|
3472
|
-
*/
|
|
3473
|
-
merchantId?: string;
|
|
3474
|
-
/**
|
|
3475
|
-
* Internal statuses the component can have.
|
|
3476
|
-
*/
|
|
3477
|
-
status?: 'loading' | 'pending' | 'processing' | 'ready';
|
|
3478
|
-
/**
|
|
3479
|
-
* @see {@link https://developer.paypal.com/docs/checkout/integration-features/customize-button/}
|
|
3480
|
-
*/
|
|
3481
|
-
style?: PayPalStyles;
|
|
3482
|
-
/**
|
|
3483
|
-
* @see {@link https://developer.paypal.com/docs/business/javascript-sdk/javascript-sdk-reference/#oninitonclick}
|
|
3484
|
-
*/
|
|
3485
|
-
onInit?: (data?: object, actions?: object) => void;
|
|
3486
|
-
/**
|
|
3487
|
-
* @see {@link https://developer.paypal.com/docs/business/javascript-sdk/javascript-sdk-reference/#oninitonclick}
|
|
3488
|
-
*/
|
|
3489
|
-
onClick?: () => void;
|
|
3490
|
-
/**
|
|
3491
|
-
* @see {@link https://developer.paypal.com/docs/business/javascript-sdk/javascript-sdk-reference/#onshippingchange}
|
|
3492
|
-
* @deprecated - Use 'onShippingAddressChange' instead, as described in the PayPal docs
|
|
3493
|
-
*/
|
|
3494
|
-
onShippingChange?: (data: any, actions: any) => void;
|
|
3495
|
-
/**
|
|
3496
|
-
* While the buyer is on the PayPal site, you can update their shopping cart to reflect the shipping address they chose on PayPal
|
|
3497
|
-
* @see {@link https://developer.paypal.com/sdk/js/reference/#onshippingaddresschange}
|
|
3498
|
-
*/
|
|
3499
|
-
onShippingAddressChange?: (data: any, actions: {
|
|
3500
|
-
reject: (reason?: string) => Promise<void>;
|
|
3501
|
-
}) => Promise<void>;
|
|
3502
|
-
/**
|
|
3503
|
-
* While the buyer is on the PayPal site, you can update their shopping cart to reflect the shipping options they chose on PayPal
|
|
3504
|
-
* @see {@link https://developer.paypal.com/sdk/js/reference/#onshippingoptionschange}
|
|
3505
|
-
*/
|
|
3506
|
-
onShippingOptionsChange?: (data: any, actions: {
|
|
3507
|
-
reject: (reason?: string) => Promise<void>;
|
|
3508
|
-
}) => Promise<void>;
|
|
3509
|
-
/**
|
|
3510
|
-
* Identifies if the payment is Express.
|
|
3511
|
-
* @defaultValue false
|
|
3512
|
-
*/
|
|
3513
|
-
isExpress?: boolean;
|
|
3514
|
-
}
|
|
3515
|
-
interface PayPalConfig {
|
|
3516
|
-
/**
|
|
3517
|
-
* @see {@link https://developer.paypal.com/docs/checkout/reference/customize-sdk/#merchant-id}
|
|
3518
|
-
*/
|
|
3519
|
-
merchantId: string;
|
|
3520
|
-
/**
|
|
3521
|
-
* @see {@link https://developer.paypal.com/docs/checkout/reference/customize-sdk/#intent}
|
|
3522
|
-
*/
|
|
3523
|
-
intent?: Intent;
|
|
3524
|
-
}
|
|
3525
|
-
interface PayPalConfiguration extends Omit<PayPalCommonProps, 'onShippingAddressChange' | 'onShippingOptionsChange'>, UIElementProps {
|
|
3526
3407
|
/**
|
|
3527
3408
|
* Callback called when PayPal authorizes the payment.
|
|
3528
3409
|
* Must be resolved/rejected with the action object. If resolved, the additional details will be invoked. Otherwise it will be skipped
|
|
3410
|
+
*
|
|
3411
|
+
* @param data - Contains the raw event from PayPal, along with the billingAddress and deliveryAddress parsed by Adyen based on the raw event data
|
|
3412
|
+
* @param actions - Used to indicate that payment flow must continue or must stop
|
|
3529
3413
|
*/
|
|
3530
3414
|
onAuthorized?: (data: {
|
|
3531
3415
|
authorizedEvent: any;
|
|
@@ -3562,36 +3446,89 @@ interface PayPalConfiguration extends Omit<PayPalCommonProps, 'onShippingAddress
|
|
|
3562
3446
|
* @default pay
|
|
3563
3447
|
*/
|
|
3564
3448
|
userAction?: 'continue' | 'pay';
|
|
3565
|
-
|
|
3449
|
+
/**
|
|
3450
|
+
* Customize your buttons using the style option.
|
|
3451
|
+
*
|
|
3452
|
+
* @see {@link https://developer.paypal.com/sdk/js/reference/#link-style}
|
|
3453
|
+
* @default style.height 48px
|
|
3454
|
+
*/
|
|
3455
|
+
style?: {
|
|
3456
|
+
layout?: 'vertical' | 'horizontal';
|
|
3457
|
+
color?: 'gold' | 'blue' | 'silver' | 'white' | 'black';
|
|
3458
|
+
shape?: 'rect' | 'pill';
|
|
3459
|
+
height?: string | number;
|
|
3460
|
+
disableMaxWidth?: boolean;
|
|
3461
|
+
label?: 'paypal' | 'checkout' | 'buynow' | 'pay';
|
|
3462
|
+
tagline?: boolean;
|
|
3463
|
+
};
|
|
3566
3464
|
showPayButton?: boolean;
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
}
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
locale?: string;
|
|
3583
|
-
'buyer-country': string;
|
|
3584
|
-
currency?: string;
|
|
3585
|
-
debug?: boolean;
|
|
3586
|
-
intent?: Intent;
|
|
3465
|
+
/**
|
|
3466
|
+
* Called when the button first renders. You can use it for validations on your page if you are unable to do so prior to rendering.
|
|
3467
|
+
* @see {@link https://developer.paypal.com/sdk/js/reference/#link-oninitonclick}
|
|
3468
|
+
*/
|
|
3469
|
+
onInit?: (data?: any, actions?: any) => void;
|
|
3470
|
+
/**
|
|
3471
|
+
* @see {@link https://developer.paypal.com/sdk/js/reference/#link-oninitonclick}
|
|
3472
|
+
*/
|
|
3473
|
+
onClick?: () => void;
|
|
3474
|
+
/**
|
|
3475
|
+
* The commit status of the transaction. Determines whether to show a Pay Now or Continue button in the Checkout flow.
|
|
3476
|
+
*
|
|
3477
|
+
* @see {@link https://developer.paypal.com/sdk/js/configuration/#link-commit}
|
|
3478
|
+
* @default true
|
|
3479
|
+
*/
|
|
3587
3480
|
commit?: boolean;
|
|
3481
|
+
/**
|
|
3482
|
+
* Whether the payment information in the transaction will be saved. Save your customers' payment information for billing agreements, subscriptions, or recurring payments.
|
|
3483
|
+
*
|
|
3484
|
+
* @see {@link https://developer.paypal.com/sdk/js/configuration/#link-vault}
|
|
3485
|
+
* @default false
|
|
3486
|
+
*/
|
|
3588
3487
|
vault?: boolean;
|
|
3589
|
-
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
|
|
3488
|
+
/**
|
|
3489
|
+
* The locale renders components. By default PayPal detects the correct locale for the buyer based on their geolocation and browser preferences.
|
|
3490
|
+
*
|
|
3491
|
+
* @see {@link https://developer.paypal.com/sdk/js/configuration/#link-locale}
|
|
3492
|
+
* @default undefined
|
|
3493
|
+
*/
|
|
3494
|
+
locale?: string;
|
|
3495
|
+
/**
|
|
3496
|
+
* Determines whether the funds are captured immediately on checkout or if the buyer authorizes the funds to be captured later.
|
|
3497
|
+
* If set, it will override the intent passed inside the 'configuration' object
|
|
3498
|
+
*
|
|
3499
|
+
* @see {@link https://developer.paypal.com/sdk/js/configuration/#link-intent}
|
|
3500
|
+
* @default undefined
|
|
3501
|
+
*/
|
|
3502
|
+
intent?: Intent;
|
|
3503
|
+
/**
|
|
3504
|
+
* Pass a Content Security Policy single-use token if you use them on your site
|
|
3505
|
+
*
|
|
3506
|
+
* @see {@link https://developer.paypal.com/sdk/js/configuration/#link-datacspnonce}
|
|
3507
|
+
* @default undefined
|
|
3508
|
+
*/
|
|
3509
|
+
cspNonce?: string;
|
|
3510
|
+
enableMessages?: boolean;
|
|
3511
|
+
/**
|
|
3512
|
+
* Set to true to enable debug mode. Defaults to false.
|
|
3513
|
+
* @see {@link https://developer.paypal.com/sdk/js/configuration/#link-debug}
|
|
3514
|
+
* @default undefined
|
|
3515
|
+
*/
|
|
3516
|
+
debug?: boolean;
|
|
3517
|
+
/**
|
|
3518
|
+
* A two-letter ISO 3166 country code which will be passed to the PayPal SDK as the buyer-country.
|
|
3519
|
+
* Note: The buyer country is only used in the sandbox. Don't pass this query parameter in production.
|
|
3520
|
+
*
|
|
3521
|
+
* @see {@link https://developer.paypal.com/sdk/js/configuration/#link-buyercountry}
|
|
3522
|
+
* @default undefined
|
|
3523
|
+
*/
|
|
3524
|
+
countryCode?: string;
|
|
3593
3525
|
}
|
|
3594
|
-
|
|
3526
|
+
/**
|
|
3527
|
+
* The intent for the transaction. This determines whether the funds are captured immediately, or later.
|
|
3528
|
+
* @see {@link https://developer.paypal.com/docs/checkout/reference/customize-sdk/#intent}
|
|
3529
|
+
*/
|
|
3530
|
+
type Intent = 'sale' | 'capture' | 'authorize' | 'order' | 'tokenize';
|
|
3531
|
+
type FundingSource = 'paypal' | 'credit' | 'paylater' | 'venmo';
|
|
3595
3532
|
|
|
3596
3533
|
declare class PaypalElement extends UIElement<PayPalConfiguration> {
|
|
3597
3534
|
static type: TxVariants;
|
|
@@ -3690,7 +3627,7 @@ declare class CustomCard extends UIElement<CustomCardConfiguration> {
|
|
|
3690
3627
|
}) => void;
|
|
3691
3628
|
onSubmit?: (state: any, element: UIElement<UIElementProps>, actions: {
|
|
3692
3629
|
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
3693
|
-
reject: () => void;
|
|
3630
|
+
reject: (error?: Pick<CheckoutAdvancedFlowResponse, "error">) => void;
|
|
3694
3631
|
}) => void;
|
|
3695
3632
|
onAdditionalDetails?: (state: AdditionalDetailsStateData, element: UIElement<UIElementProps>, actions: {
|
|
3696
3633
|
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
@@ -3729,7 +3666,6 @@ declare class CustomCard extends UIElement<CustomCardConfiguration> {
|
|
|
3729
3666
|
session?: Session;
|
|
3730
3667
|
clientKey?: string;
|
|
3731
3668
|
showPayButton?: boolean;
|
|
3732
|
-
setStatusAutomatically?: boolean;
|
|
3733
3669
|
elementRef?: any;
|
|
3734
3670
|
createFromAction?: (action: PaymentAction, props: object) => UIElement<UIElementProps>;
|
|
3735
3671
|
expiryMonth?: string;
|
|
@@ -3761,7 +3697,6 @@ declare class CustomCard extends UIElement<CustomCardConfiguration> {
|
|
|
3761
3697
|
challengeWindowSize?: "01" | "02" | "03" | "04" | "05";
|
|
3762
3698
|
onBinLookup?: (event: CbObjOnBinLookup) => void;
|
|
3763
3699
|
doBinLookup?: boolean;
|
|
3764
|
-
onValid?: (state: any, element: UIElement<UIElementProps>) => void;
|
|
3765
3700
|
isInstantPayment?: boolean;
|
|
3766
3701
|
oneClick?: boolean;
|
|
3767
3702
|
statusType?: "loading" | "redirect" | "custom";
|
|
@@ -3894,7 +3829,7 @@ declare class WeChatPayElement extends QRLoaderContainer {
|
|
|
3894
3829
|
}) => void;
|
|
3895
3830
|
onSubmit?: (state: any, element: UIElement<UIElementProps>, actions: {
|
|
3896
3831
|
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
3897
|
-
reject: () => void;
|
|
3832
|
+
reject: (error?: Pick<CheckoutAdvancedFlowResponse, "error">) => void;
|
|
3898
3833
|
}) => void;
|
|
3899
3834
|
onAdditionalDetails?: (state: AdditionalDetailsStateData, element: UIElement<UIElementProps>, actions: {
|
|
3900
3835
|
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
@@ -3919,7 +3854,6 @@ declare class WeChatPayElement extends QRLoaderContainer {
|
|
|
3919
3854
|
onError?: (error: AdyenCheckoutError, element?: UIElement<UIElementProps>) => void;
|
|
3920
3855
|
environment?: string;
|
|
3921
3856
|
session?: Session;
|
|
3922
|
-
onValid?: (state: any, element: UIElement<UIElementProps>) => void;
|
|
3923
3857
|
onComplete?: (state: any, element: UIElement<UIElementProps>) => void;
|
|
3924
3858
|
isInstantPayment?: boolean;
|
|
3925
3859
|
isStoredPaymentMethod?: boolean;
|
|
@@ -3931,7 +3865,6 @@ declare class WeChatPayElement extends QRLoaderContainer {
|
|
|
3931
3865
|
amount?: PaymentAmount;
|
|
3932
3866
|
secondaryAmount?: PaymentAmountExtended;
|
|
3933
3867
|
showPayButton?: boolean;
|
|
3934
|
-
setStatusAutomatically?: boolean;
|
|
3935
3868
|
payButton?: (options: PayButtonFunctionProps) => preact.JSX.Element;
|
|
3936
3869
|
loadingContext?: string;
|
|
3937
3870
|
createFromAction?: (action: PaymentAction, props: object) => UIElement<UIElementProps>;
|
|
@@ -3977,7 +3910,7 @@ declare class PayNowElement extends QRLoaderContainer {
|
|
|
3977
3910
|
}) => void;
|
|
3978
3911
|
onSubmit?: (state: any, element: UIElement<UIElementProps>, actions: {
|
|
3979
3912
|
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
3980
|
-
reject: () => void;
|
|
3913
|
+
reject: (error?: Pick<CheckoutAdvancedFlowResponse, "error">) => void;
|
|
3981
3914
|
}) => void;
|
|
3982
3915
|
onAdditionalDetails?: (state: AdditionalDetailsStateData, element: UIElement<UIElementProps>, actions: {
|
|
3983
3916
|
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
@@ -4002,7 +3935,6 @@ declare class PayNowElement extends QRLoaderContainer {
|
|
|
4002
3935
|
onError?: (error: AdyenCheckoutError, element?: UIElement<UIElementProps>) => void;
|
|
4003
3936
|
environment?: string;
|
|
4004
3937
|
session?: Session;
|
|
4005
|
-
onValid?: (state: any, element: UIElement<UIElementProps>) => void;
|
|
4006
3938
|
onComplete?: (state: any, element: UIElement<UIElementProps>) => void;
|
|
4007
3939
|
isInstantPayment?: boolean;
|
|
4008
3940
|
isStoredPaymentMethod?: boolean;
|
|
@@ -4014,7 +3946,6 @@ declare class PayNowElement extends QRLoaderContainer {
|
|
|
4014
3946
|
amount?: PaymentAmount;
|
|
4015
3947
|
secondaryAmount?: PaymentAmountExtended;
|
|
4016
3948
|
showPayButton?: boolean;
|
|
4017
|
-
setStatusAutomatically?: boolean;
|
|
4018
3949
|
payButton?: (options: PayButtonFunctionProps) => preact.JSX.Element;
|
|
4019
3950
|
loadingContext?: string;
|
|
4020
3951
|
createFromAction?: (action: PaymentAction, props: object) => UIElement<UIElementProps>;
|
|
@@ -4061,7 +3992,7 @@ declare class BCMCMobileElement extends QRLoaderContainer {
|
|
|
4061
3992
|
}) => void;
|
|
4062
3993
|
onSubmit?: (state: any, element: UIElement<UIElementProps>, actions: {
|
|
4063
3994
|
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
4064
|
-
reject: () => void;
|
|
3995
|
+
reject: (error?: Pick<CheckoutAdvancedFlowResponse, "error">) => void;
|
|
4065
3996
|
}) => void;
|
|
4066
3997
|
onAdditionalDetails?: (state: AdditionalDetailsStateData, element: UIElement<UIElementProps>, actions: {
|
|
4067
3998
|
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
@@ -4086,7 +4017,6 @@ declare class BCMCMobileElement extends QRLoaderContainer {
|
|
|
4086
4017
|
onError?: (error: AdyenCheckoutError, element?: UIElement<UIElementProps>) => void;
|
|
4087
4018
|
environment?: string;
|
|
4088
4019
|
session?: Session;
|
|
4089
|
-
onValid?: (state: any, element: UIElement<UIElementProps>) => void;
|
|
4090
4020
|
onComplete?: (state: any, element: UIElement<UIElementProps>) => void;
|
|
4091
4021
|
isInstantPayment?: boolean;
|
|
4092
4022
|
isStoredPaymentMethod?: boolean;
|
|
@@ -4098,7 +4028,6 @@ declare class BCMCMobileElement extends QRLoaderContainer {
|
|
|
4098
4028
|
amount?: PaymentAmount;
|
|
4099
4029
|
secondaryAmount?: PaymentAmountExtended;
|
|
4100
4030
|
showPayButton?: boolean;
|
|
4101
|
-
setStatusAutomatically?: boolean;
|
|
4102
4031
|
payButton?: (options: PayButtonFunctionProps) => preact.JSX.Element;
|
|
4103
4032
|
loadingContext?: string;
|
|
4104
4033
|
createFromAction?: (action: PaymentAction, props: object) => UIElement<UIElementProps>;
|
|
@@ -4204,7 +4133,7 @@ declare class DragonpayElement extends UIElement<DragonpayConfiguraton> {
|
|
|
4204
4133
|
}) => void;
|
|
4205
4134
|
onSubmit?: (state: any, element: UIElement<UIElementProps>, actions: {
|
|
4206
4135
|
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
4207
|
-
reject: () => void;
|
|
4136
|
+
reject: (error?: Pick<CheckoutAdvancedFlowResponse, "error">) => void;
|
|
4208
4137
|
}) => void;
|
|
4209
4138
|
onAdditionalDetails?: (state: AdditionalDetailsStateData, element: UIElement<UIElementProps>, actions: {
|
|
4210
4139
|
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
@@ -4229,7 +4158,6 @@ declare class DragonpayElement extends UIElement<DragonpayConfiguraton> {
|
|
|
4229
4158
|
onError?: (error: AdyenCheckoutError, element?: UIElement<UIElementProps>) => void;
|
|
4230
4159
|
environment?: string;
|
|
4231
4160
|
session?: Session;
|
|
4232
|
-
onValid?: (state: any, element: UIElement<UIElementProps>) => void;
|
|
4233
4161
|
onComplete?: (state: any, element: UIElement<UIElementProps>) => void;
|
|
4234
4162
|
isInstantPayment?: boolean;
|
|
4235
4163
|
isStoredPaymentMethod?: boolean;
|
|
@@ -4241,7 +4169,6 @@ declare class DragonpayElement extends UIElement<DragonpayConfiguraton> {
|
|
|
4241
4169
|
amount?: PaymentAmount;
|
|
4242
4170
|
secondaryAmount?: PaymentAmountExtended;
|
|
4243
4171
|
showPayButton?: boolean;
|
|
4244
|
-
setStatusAutomatically?: boolean;
|
|
4245
4172
|
payButton?: (options: PayButtonFunctionProps) => h.JSX.Element;
|
|
4246
4173
|
createFromAction?: (action: PaymentAction, props: object) => UIElement<UIElementProps>;
|
|
4247
4174
|
clientKey?: string;
|
|
@@ -4459,7 +4386,7 @@ declare class SwishElement extends QRLoaderContainer {
|
|
|
4459
4386
|
}) => void;
|
|
4460
4387
|
onSubmit?: (state: any, element: UIElement<UIElementProps>, actions: {
|
|
4461
4388
|
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
4462
|
-
reject: () => void;
|
|
4389
|
+
reject: (error?: Pick<CheckoutAdvancedFlowResponse, "error">) => void;
|
|
4463
4390
|
}) => void;
|
|
4464
4391
|
onAdditionalDetails?: (state: AdditionalDetailsStateData, element: UIElement<UIElementProps>, actions: {
|
|
4465
4392
|
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
@@ -4484,7 +4411,6 @@ declare class SwishElement extends QRLoaderContainer {
|
|
|
4484
4411
|
onError?: (error: AdyenCheckoutError, element?: UIElement<UIElementProps>) => void;
|
|
4485
4412
|
environment?: string;
|
|
4486
4413
|
session?: Session;
|
|
4487
|
-
onValid?: (state: any, element: UIElement<UIElementProps>) => void;
|
|
4488
4414
|
onComplete?: (state: any, element: UIElement<UIElementProps>) => void;
|
|
4489
4415
|
isInstantPayment?: boolean;
|
|
4490
4416
|
isStoredPaymentMethod?: boolean;
|
|
@@ -4496,7 +4422,6 @@ declare class SwishElement extends QRLoaderContainer {
|
|
|
4496
4422
|
amount?: PaymentAmount;
|
|
4497
4423
|
secondaryAmount?: PaymentAmountExtended;
|
|
4498
4424
|
showPayButton?: boolean;
|
|
4499
|
-
setStatusAutomatically?: boolean;
|
|
4500
4425
|
payButton?: (options: PayButtonFunctionProps) => preact.JSX.Element;
|
|
4501
4426
|
loadingContext?: string;
|
|
4502
4427
|
createFromAction?: (action: PaymentAction, props: object) => UIElement<UIElementProps>;
|
|
@@ -4547,7 +4472,7 @@ declare class AchElement extends UIElement<AchConfiguration> {
|
|
|
4547
4472
|
}) => void;
|
|
4548
4473
|
onSubmit?: (state: any, element: UIElement<UIElementProps>, actions: {
|
|
4549
4474
|
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
4550
|
-
reject: () => void;
|
|
4475
|
+
reject: (error?: Pick<CheckoutAdvancedFlowResponse, "error">) => void;
|
|
4551
4476
|
}) => void;
|
|
4552
4477
|
onAdditionalDetails?: (state: AdditionalDetailsStateData, element: UIElement<UIElementProps>, actions: {
|
|
4553
4478
|
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
@@ -4572,7 +4497,6 @@ declare class AchElement extends UIElement<AchConfiguration> {
|
|
|
4572
4497
|
onError?: (error: AdyenCheckoutError, element?: UIElement<UIElementProps>) => void;
|
|
4573
4498
|
environment?: string;
|
|
4574
4499
|
session?: Session;
|
|
4575
|
-
onValid?: (state: any, element: UIElement<UIElementProps>) => void;
|
|
4576
4500
|
onComplete?: (state: any, element: UIElement<UIElementProps>) => void;
|
|
4577
4501
|
isInstantPayment?: boolean;
|
|
4578
4502
|
isStoredPaymentMethod?: boolean;
|
|
@@ -4584,7 +4508,6 @@ declare class AchElement extends UIElement<AchConfiguration> {
|
|
|
4584
4508
|
amount?: PaymentAmount;
|
|
4585
4509
|
secondaryAmount?: PaymentAmountExtended;
|
|
4586
4510
|
showPayButton?: boolean;
|
|
4587
|
-
setStatusAutomatically?: boolean;
|
|
4588
4511
|
payButton?: (options: PayButtonFunctionProps) => h.JSX.Element;
|
|
4589
4512
|
loadingContext?: string;
|
|
4590
4513
|
createFromAction?: (action: PaymentAction, props: object) => UIElement<UIElementProps>;
|
|
@@ -5025,7 +4948,7 @@ declare class PromptPayElement extends QRLoaderContainer {
|
|
|
5025
4948
|
}) => void;
|
|
5026
4949
|
onSubmit?: (state: any, element: UIElement<UIElementProps>, actions: {
|
|
5027
4950
|
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
5028
|
-
reject: () => void;
|
|
4951
|
+
reject: (error?: Pick<CheckoutAdvancedFlowResponse, "error">) => void;
|
|
5029
4952
|
}) => void;
|
|
5030
4953
|
onAdditionalDetails?: (state: AdditionalDetailsStateData, element: UIElement<UIElementProps>, actions: {
|
|
5031
4954
|
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
@@ -5050,7 +4973,6 @@ declare class PromptPayElement extends QRLoaderContainer {
|
|
|
5050
4973
|
onError?: (error: AdyenCheckoutError, element?: UIElement<UIElementProps>) => void;
|
|
5051
4974
|
environment?: string;
|
|
5052
4975
|
session?: Session;
|
|
5053
|
-
onValid?: (state: any, element: UIElement<UIElementProps>) => void;
|
|
5054
4976
|
onComplete?: (state: any, element: UIElement<UIElementProps>) => void;
|
|
5055
4977
|
isInstantPayment?: boolean;
|
|
5056
4978
|
isStoredPaymentMethod?: boolean;
|
|
@@ -5062,7 +4984,6 @@ declare class PromptPayElement extends QRLoaderContainer {
|
|
|
5062
4984
|
amount?: PaymentAmount;
|
|
5063
4985
|
secondaryAmount?: PaymentAmountExtended;
|
|
5064
4986
|
showPayButton?: boolean;
|
|
5065
|
-
setStatusAutomatically?: boolean;
|
|
5066
4987
|
payButton?: (options: PayButtonFunctionProps) => preact.JSX.Element;
|
|
5067
4988
|
loadingContext?: string;
|
|
5068
4989
|
createFromAction?: (action: PaymentAction, props: object) => UIElement<UIElementProps>;
|
|
@@ -5108,7 +5029,7 @@ declare class DuitNowElement extends QRLoaderContainer {
|
|
|
5108
5029
|
}) => void;
|
|
5109
5030
|
onSubmit?: (state: any, element: UIElement<UIElementProps>, actions: {
|
|
5110
5031
|
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
5111
|
-
reject: () => void;
|
|
5032
|
+
reject: (error?: Pick<CheckoutAdvancedFlowResponse, "error">) => void;
|
|
5112
5033
|
}) => void;
|
|
5113
5034
|
onAdditionalDetails?: (state: AdditionalDetailsStateData, element: UIElement<UIElementProps>, actions: {
|
|
5114
5035
|
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
@@ -5133,7 +5054,6 @@ declare class DuitNowElement extends QRLoaderContainer {
|
|
|
5133
5054
|
onError?: (error: AdyenCheckoutError, element?: UIElement<UIElementProps>) => void;
|
|
5134
5055
|
environment?: string;
|
|
5135
5056
|
session?: Session;
|
|
5136
|
-
onValid?: (state: any, element: UIElement<UIElementProps>) => void;
|
|
5137
5057
|
onComplete?: (state: any, element: UIElement<UIElementProps>) => void;
|
|
5138
5058
|
isInstantPayment?: boolean;
|
|
5139
5059
|
isStoredPaymentMethod?: boolean;
|
|
@@ -5145,7 +5065,6 @@ declare class DuitNowElement extends QRLoaderContainer {
|
|
|
5145
5065
|
amount?: PaymentAmount;
|
|
5146
5066
|
secondaryAmount?: PaymentAmountExtended;
|
|
5147
5067
|
showPayButton?: boolean;
|
|
5148
|
-
setStatusAutomatically?: boolean;
|
|
5149
5068
|
payButton?: (options: PayButtonFunctionProps) => preact.JSX.Element;
|
|
5150
5069
|
loadingContext?: string;
|
|
5151
5070
|
createFromAction?: (action: PaymentAction, props: object) => UIElement<UIElementProps>;
|
|
@@ -5169,8 +5088,8 @@ declare class TrustlyElement extends RedirectElement {
|
|
|
5169
5088
|
* Maps each tx variant to a Component element.
|
|
5170
5089
|
*
|
|
5171
5090
|
* WARNING: This mapping must be imported carefully as it breaks the tree-shaking. It is now used in:
|
|
5172
|
-
* - The utility function '
|
|
5173
|
-
* - Generating Drop-in Typescript types (Typescript types
|
|
5091
|
+
* - The utility function 'createComponent' for UMD bundle (UMD bundle does not have tree-shaking, so this use-case is fine)
|
|
5092
|
+
* - Generating Drop-in Typescript types (Typescript types do not break tree-shaking)
|
|
5174
5093
|
*/
|
|
5175
5094
|
declare const ComponentsMap: {
|
|
5176
5095
|
/** internal */
|
|
@@ -5339,6 +5258,11 @@ interface DropinConfiguration extends UIElementProps {
|
|
|
5339
5258
|
* @defaultValue true
|
|
5340
5259
|
*/
|
|
5341
5260
|
showStoredPaymentMethods?: boolean;
|
|
5261
|
+
/**
|
|
5262
|
+
* Disable the final animation when the payment is successful or if it fails.
|
|
5263
|
+
* @defaultValue false
|
|
5264
|
+
*/
|
|
5265
|
+
disableFinalAnimation?: boolean;
|
|
5342
5266
|
/**
|
|
5343
5267
|
* Show/Hide regular (non-stored) payment methods
|
|
5344
5268
|
* @defaultValue true
|
|
@@ -5402,6 +5326,13 @@ interface DropinComponentState {
|
|
|
5402
5326
|
orderStatus: OrderStatus;
|
|
5403
5327
|
}
|
|
5404
5328
|
interface IDropin {
|
|
5329
|
+
/**
|
|
5330
|
+
* Used to make the Dropin display the final animation
|
|
5331
|
+
*
|
|
5332
|
+
* @internal
|
|
5333
|
+
* @param type - animation type
|
|
5334
|
+
*/
|
|
5335
|
+
displayFinalAnimation(type: 'success' | 'error'): void;
|
|
5405
5336
|
activePaymentMethod: () => null;
|
|
5406
5337
|
closeActivePaymentMethod: () => void;
|
|
5407
5338
|
}
|
|
@@ -5576,7 +5507,7 @@ declare class CardElement extends UIElement<CardConfiguration> {
|
|
|
5576
5507
|
}) => void;
|
|
5577
5508
|
onSubmit?: (state: any, element: UIElement<UIElementProps>, actions: {
|
|
5578
5509
|
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
5579
|
-
reject: () => void;
|
|
5510
|
+
reject: (error?: Pick<CheckoutAdvancedFlowResponse, "error">) => void;
|
|
5580
5511
|
}) => void;
|
|
5581
5512
|
onAdditionalDetails?: (state: AdditionalDetailsStateData, element: UIElement<UIElementProps>, actions: {
|
|
5582
5513
|
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
@@ -5593,7 +5524,12 @@ declare class CardElement extends UIElement<CardConfiguration> {
|
|
|
5593
5524
|
order: Order;
|
|
5594
5525
|
}) => void;
|
|
5595
5526
|
onPaymentMethodsRequest?: (data: PaymentMethodsRequestData, actions: {
|
|
5596
|
-
resolve: (response: PaymentMethodsResponse) => void;
|
|
5527
|
+
resolve: (response: PaymentMethodsResponse) => void; /**
|
|
5528
|
+
* this.state.selectedBrandValue will be set when:
|
|
5529
|
+
* - /binLookup detects a single brand,
|
|
5530
|
+
* - when /binLookup detects a dual-branded card and the shopper makes a brand selection
|
|
5531
|
+
* - or, in the case of a storedCard
|
|
5532
|
+
*/
|
|
5597
5533
|
reject: () => void;
|
|
5598
5534
|
}) => void;
|
|
5599
5535
|
onChange?: (state: any, element: UIElement<UIElementProps>) => void;
|
|
@@ -5601,7 +5537,6 @@ declare class CardElement extends UIElement<CardConfiguration> {
|
|
|
5601
5537
|
onError?: (error: AdyenCheckoutError, element?: UIElement<UIElementProps>) => void;
|
|
5602
5538
|
environment?: string;
|
|
5603
5539
|
session?: Session;
|
|
5604
|
-
onValid?: (state: any, element: UIElement<UIElementProps>) => void;
|
|
5605
5540
|
onComplete?: (state: any, element: UIElement<UIElementProps>) => void;
|
|
5606
5541
|
isInstantPayment?: boolean;
|
|
5607
5542
|
isStoredPaymentMethod?: boolean;
|
|
@@ -5611,7 +5546,6 @@ declare class CardElement extends UIElement<CardConfiguration> {
|
|
|
5611
5546
|
amount?: PaymentAmount;
|
|
5612
5547
|
secondaryAmount?: PaymentAmountExtended;
|
|
5613
5548
|
showPayButton?: boolean;
|
|
5614
|
-
setStatusAutomatically?: boolean;
|
|
5615
5549
|
payButton?: (options: PayButtonFunctionProps) => h.JSX.Element;
|
|
5616
5550
|
loadingContext?: string;
|
|
5617
5551
|
createFromAction?: (action: PaymentAction, props: object) => UIElement<UIElementProps>;
|
|
@@ -5884,7 +5818,7 @@ declare class Riverty extends OpenInvoiceContainer {
|
|
|
5884
5818
|
}) => void;
|
|
5885
5819
|
onSubmit?: (state: any, element: UIElement<UIElementProps>, actions: {
|
|
5886
5820
|
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
5887
|
-
reject: () => void;
|
|
5821
|
+
reject: (error?: Pick<CheckoutAdvancedFlowResponse, "error">) => void;
|
|
5888
5822
|
}) => void;
|
|
5889
5823
|
onAdditionalDetails?: (state: AdditionalDetailsStateData, element: UIElement<UIElementProps>, actions: {
|
|
5890
5824
|
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
@@ -5908,7 +5842,6 @@ declare class Riverty extends OpenInvoiceContainer {
|
|
|
5908
5842
|
onError?: (error: AdyenCheckoutError, element?: UIElement<UIElementProps>) => void;
|
|
5909
5843
|
environment?: string;
|
|
5910
5844
|
session?: Session;
|
|
5911
|
-
onValid?: (state: any, element: UIElement<UIElementProps>) => void;
|
|
5912
5845
|
onComplete?: (state: any, element: UIElement<UIElementProps>) => void;
|
|
5913
5846
|
isInstantPayment?: boolean;
|
|
5914
5847
|
isStoredPaymentMethod?: boolean;
|
|
@@ -5920,7 +5853,6 @@ declare class Riverty extends OpenInvoiceContainer {
|
|
|
5920
5853
|
icon?: string;
|
|
5921
5854
|
amount?: PaymentAmount;
|
|
5922
5855
|
secondaryAmount?: PaymentAmountExtended;
|
|
5923
|
-
setStatusAutomatically?: boolean;
|
|
5924
5856
|
loadingContext?: string;
|
|
5925
5857
|
createFromAction?: (action: PaymentAction, props: object) => UIElement<UIElementProps>;
|
|
5926
5858
|
clientKey?: string;
|
|
@@ -5972,7 +5904,7 @@ declare class PayMeElement extends QRLoaderContainer {
|
|
|
5972
5904
|
}) => void;
|
|
5973
5905
|
onSubmit?: (state: any, element: UIElement<UIElementProps>, actions: {
|
|
5974
5906
|
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
5975
|
-
reject: () => void;
|
|
5907
|
+
reject: (error?: Pick<CheckoutAdvancedFlowResponse, "error">) => void;
|
|
5976
5908
|
}) => void;
|
|
5977
5909
|
onAdditionalDetails?: (state: AdditionalDetailsStateData, element: UIElement<UIElementProps>, actions: {
|
|
5978
5910
|
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
@@ -5997,7 +5929,6 @@ declare class PayMeElement extends QRLoaderContainer {
|
|
|
5997
5929
|
onError?: (error: AdyenCheckoutError, element?: UIElement<UIElementProps>) => void;
|
|
5998
5930
|
environment?: string;
|
|
5999
5931
|
session?: Session;
|
|
6000
|
-
onValid?: (state: any, element: UIElement<UIElementProps>) => void;
|
|
6001
5932
|
onComplete?: (state: any, element: UIElement<UIElementProps>) => void;
|
|
6002
5933
|
isInstantPayment?: boolean;
|
|
6003
5934
|
isStoredPaymentMethod?: boolean;
|
|
@@ -6009,7 +5940,6 @@ declare class PayMeElement extends QRLoaderContainer {
|
|
|
6009
5940
|
amount?: PaymentAmount;
|
|
6010
5941
|
secondaryAmount?: PaymentAmountExtended;
|
|
6011
5942
|
showPayButton?: boolean;
|
|
6012
|
-
setStatusAutomatically?: boolean;
|
|
6013
5943
|
payButton?: (options: PayButtonFunctionProps) => preact.JSX.Element;
|
|
6014
5944
|
loadingContext?: string;
|
|
6015
5945
|
createFromAction?: (action: PaymentAction, props: object) => UIElement<UIElementProps>;
|
|
@@ -6041,24 +5971,7 @@ declare class ANCVElement extends UIElement<ANCVConfiguration> {
|
|
|
6041
5971
|
}
|
|
6042
5972
|
|
|
6043
5973
|
declare class DropinElement extends UIElement<DropinConfiguration> implements IDropin {
|
|
6044
|
-
protected static defaultProps:
|
|
6045
|
-
instantPaymentTypes: any[];
|
|
6046
|
-
paymentMethodComponents: any[];
|
|
6047
|
-
isDropin: boolean;
|
|
6048
|
-
onReady: () => void;
|
|
6049
|
-
onComplete: () => void;
|
|
6050
|
-
onError: () => void;
|
|
6051
|
-
onSelect: () => void;
|
|
6052
|
-
onDisableStoredPaymentMethod: any;
|
|
6053
|
-
onChange: () => void;
|
|
6054
|
-
amount: {};
|
|
6055
|
-
paymentMethodsConfiguration: {};
|
|
6056
|
-
openFirstPaymentMethod: boolean;
|
|
6057
|
-
openFirstStoredPaymentMethod: boolean;
|
|
6058
|
-
showStoredPaymentMethods: boolean;
|
|
6059
|
-
showPaymentMethods: boolean;
|
|
6060
|
-
showRemoveStoredPaymentMethodButton: boolean;
|
|
6061
|
-
};
|
|
5974
|
+
protected static defaultProps: DropinConfiguration;
|
|
6062
5975
|
dropinRef: any;
|
|
6063
5976
|
private paymentMethodsConfiguration;
|
|
6064
5977
|
/**
|
|
@@ -6073,6 +5986,7 @@ declare class DropinElement extends UIElement<DropinConfiguration> implements ID
|
|
|
6073
5986
|
paymentMethodComponents?: NewableComponent[];
|
|
6074
5987
|
order?: Order;
|
|
6075
5988
|
showStoredPaymentMethods?: boolean;
|
|
5989
|
+
disableFinalAnimation?: boolean;
|
|
6076
5990
|
showPaymentMethods?: boolean;
|
|
6077
5991
|
openFirstStoredPaymentMethod?: boolean;
|
|
6078
5992
|
openFirstPaymentMethod?: boolean;
|
|
@@ -6121,7 +6035,6 @@ declare class DropinElement extends UIElement<DropinConfiguration> implements ID
|
|
|
6121
6035
|
onError?: (error: AdyenCheckoutError, element?: UIElement<UIElementProps>) => void;
|
|
6122
6036
|
environment?: string;
|
|
6123
6037
|
session?: Session;
|
|
6124
|
-
onValid?: (state: any, element: UIElement<UIElementProps>) => void;
|
|
6125
6038
|
onComplete?: (state: any, element: UIElement<UIElementProps>) => void;
|
|
6126
6039
|
isInstantPayment?: boolean;
|
|
6127
6040
|
isStoredPaymentMethod?: boolean;
|
|
@@ -6134,7 +6047,6 @@ declare class DropinElement extends UIElement<DropinConfiguration> implements ID
|
|
|
6134
6047
|
amount?: PaymentAmount;
|
|
6135
6048
|
secondaryAmount?: PaymentAmountExtended;
|
|
6136
6049
|
showPayButton?: boolean;
|
|
6137
|
-
setStatusAutomatically?: boolean;
|
|
6138
6050
|
payButton?: (options: PayButtonFunctionProps) => h.JSX.Element;
|
|
6139
6051
|
loadingContext?: string;
|
|
6140
6052
|
createFromAction?: (action: PaymentAction, props: object) => UIElement<UIElementProps>;
|
|
@@ -6142,15 +6054,14 @@ declare class DropinElement extends UIElement<DropinConfiguration> implements ID
|
|
|
6142
6054
|
elementRef?: any;
|
|
6143
6055
|
i18n?: Language;
|
|
6144
6056
|
label?: string;
|
|
6145
|
-
paymentMethodType?: string;
|
|
6146
|
-
* Calls the onSubmit event with the state of the activePaymentMethod
|
|
6147
|
-
*/
|
|
6057
|
+
paymentMethodType?: string;
|
|
6148
6058
|
};
|
|
6149
6059
|
get isValid(): boolean;
|
|
6150
6060
|
showValidation(): this;
|
|
6151
6061
|
setStatus(status: any, props?: {}): this;
|
|
6152
6062
|
get activePaymentMethod(): any;
|
|
6153
6063
|
get data(): any;
|
|
6064
|
+
displayFinalAnimation(type: 'success' | 'error'): void;
|
|
6154
6065
|
/**
|
|
6155
6066
|
* Calls the onSubmit event with the state of the activePaymentMethod
|
|
6156
6067
|
*/
|
|
@@ -6268,12 +6179,12 @@ declare class Core implements ICore {
|
|
|
6268
6179
|
cdnContext?: string;
|
|
6269
6180
|
analyticsContext?: string;
|
|
6270
6181
|
private components;
|
|
6271
|
-
static readonly
|
|
6182
|
+
static readonly metadata: {
|
|
6272
6183
|
version: string;
|
|
6273
6184
|
revision: string;
|
|
6274
6185
|
branch: string;
|
|
6275
6186
|
buildId: string;
|
|
6276
|
-
|
|
6187
|
+
bundleType: string;
|
|
6277
6188
|
};
|
|
6278
6189
|
static registry: {
|
|
6279
6190
|
componentsMap: Record<string, NewableComponent>;
|
|
@@ -6282,6 +6193,7 @@ declare class Core implements ICore {
|
|
|
6282
6193
|
getComponent(type: string): NewableComponent;
|
|
6283
6194
|
createComponentsMap(components: NewableComponent[]): {};
|
|
6284
6195
|
};
|
|
6196
|
+
static setBundleType(type: string): void;
|
|
6285
6197
|
static register(...items: NewableComponent[]): void;
|
|
6286
6198
|
/**
|
|
6287
6199
|
* Used internally by the PaymentMethod components to auto-register themselves
|
|
@@ -6345,6 +6257,7 @@ declare class Core implements ICore {
|
|
|
6345
6257
|
declare function AdyenCheckout(props: CoreConfiguration): Promise<Core>;
|
|
6346
6258
|
declare namespace AdyenCheckout {
|
|
6347
6259
|
var register: (...items: (new (checkout: ICore, props: any) => IUIElement)[]) => void;
|
|
6260
|
+
var setBundleType: (type: string) => void;
|
|
6348
6261
|
}
|
|
6349
6262
|
|
|
6350
|
-
export { ANCVElement as ANCV, type ANCVConfiguration, type ANCVDataState, AchElement as Ach, type AchConfiguration, type ActionDescriptionType, type ActionHandledReturnObject, type AdditionalDetailsStateData, AddressElement as Address, type AddressData, type AddressField, AdyenCheckout, type AdyenEnvironment, Affirm, AfterPay, AfterPayB2B, AmazonPayElement as AmazonPay, type AmazonPayBackendConfiguration, type AmazonPayButtonProps, type AmazonPayButtonSettings, type AmazonPayComponentProps, type AmazonPayConfiguration, type AmazonPayElementData, type AnalyticsModule, ApplePayElement as ApplePay, type ApplePayButtonType, type ApplePayConfiguration, type ApplePayElementData, type ApplePayPaymentAuthorizationResult, type ApplePayPaymentOrderDetails, type ApplePaySessionRequest, Atome, type AwaitComponentProps, type AwaitConfiguration, BacsElement as BacsDirectDebit, BancontactElement as Bancontact, type BankDetailsSchema, BankTransferElement as BankTransfer, type BankTransferConfiguration, type BankTransferSchema, type BankTransferState, BCMCMobileElement as BcmcMobile, BillDeskOnlineElement as BillDeskOnline, BillDeskWalletElement as BillDeskWallet, type BinLookupResponse, type BinLookupResponseRaw, BlikElement as Blik, BoletoElement as Boleto, type BoletoElementProps, type BoletoInputDataState, type BoletoInputErrorState, type BoletoInputValidState, type BrandConfiguration, type BrandObject, type BrowserInfo, type CReqData, CardElement as Card, type CardBackendConfiguration, type CardBrandsConfiguration, type CardConfiguration, type CardElementData, CashAppPay, type CashAppPayConfiguration, type CashAppPayElementData, type CashAppPayEventData, type ChallengeData, type ChangeActionOptions, type ChangePaymentDetailsButtonProps, type ChargeAmount, type CheckoutAdvancedFlowResponse, type CheckoutDetailsRequest, type CheckoutSessionConfig, ClickToPayElement as ClickToPay, type ClickToPayConfiguration, type ClickToPayPaymentData, type ClickToPayProps, type ClickToPayScheme, type ComponentFocusObject, type CoreConfiguration, type Currency, CustomCard, type CustomCardConfiguration, type DeliverySpecifications, DokuElement as Doku, type DokuVoucherResultProps, DonationElement as Donation, type DonationConfiguration, DotpayElement as Dotpay, DragonpayElement as Dragonpay, type DragonpayConfiguraton, type DragonpayInputData, type DragonpayInputIssuerItem, type DragonpayInputProps, type DragonpayVoucherResultProps, DropinElement as Dropin, type DropinComponentProps, type DropinComponentState, type DropinConfiguration, type DropinStatusProps, type DualBrandSelectElement, DuitNowElement as DuitNow, EPSElement as EPS, EcontextElement as Econtext, type EcontextConfiguration, type EcontextInputSchema, type EcontextVoucherResultProps, type ExtendedMerchantInfo, FacilyPay10x as FacilPay10x, FacilyPay12x as FacilPay12x, FacilyPay3x as FacilPay3x, FacilyPay4x as FacilPay4x, FacilyPay6x as FacilPay6x, type FieldsetVisibility, type FingerPrintData, type FundingSource, type GiftCardConfiguration, type GiftCardElementData, GiftcardElement as Giftcard, GiropayElement as Giropay, GooglePay, type GooglePayConfiguration, type GooglePayPropsConfiguration, type GooglePaymentDataRequest, type ICore, type IDropin, IdealElement as Ideal, type InstantPaymentTypes, type Intent, type IssuerListConfiguration, type IssuerListData, type KlarnConfiguration, KlarnaPayments as Klarna, type KlarnaSdkData, type KlarnaWidgetAuthorizeResponse, type KlarnaWidgetProps, type LedgerCurrencies, MBWayElement as MBWay, MealVoucherFRElement as MealVoucherFR, MolPayEBankingMYElement as MolPayEBankingMY, MolPayEBankingTHElement as MolPayEBankingTH, MolPayEbankingVNElement as MolPayEBankingVN, MultibancoElement as Multibanco, type MultibancoVoucherResultProps, OnlineBankingCZElement as OnlineBankingCZ, OnlineBankingFI, OnlineBankingINElement as OnlineBankingIN, OnlineBankingPL, OnlineBankingSKElement as OnlineBankingSK, type OpenInvoiceActiveFieldsets, type OpenInvoiceConfiguration, type OpenInvoiceFieldsetsRefs, type OpenInvoiceProps, type OpenInvoiceStateData, type OpenInvoiceStateError, type OpenInvoiceStateValid, type OpenInvoiceVisibility, type Order, type OrderButtonProps, type OrderStatus, OxxoElement as Oxxo, type OxxoElementData, type OxxoVoucherResultProps, PayByBank, PayMeElement as PayMe, PayNowElement as PayNow, PaypalElement as PayPal, type
|
|
6263
|
+
export { ANCVElement as ANCV, type ANCVConfiguration, type ANCVDataState, AchElement as Ach, type AchConfiguration, type ActionDescriptionType, type ActionHandledReturnObject, type AdditionalDetailsStateData, AddressElement as Address, type AddressData, type AddressField, AdyenCheckout, type AdyenEnvironment, Affirm, AfterPay, AfterPayB2B, AmazonPayElement as AmazonPay, type AmazonPayBackendConfiguration, type AmazonPayButtonProps, type AmazonPayButtonSettings, type AmazonPayComponentProps, type AmazonPayConfiguration, type AmazonPayElementData, type AnalyticsModule, ApplePayElement as ApplePay, type ApplePayButtonType, type ApplePayConfiguration, type ApplePayElementData, type ApplePayPaymentAuthorizationResult, type ApplePayPaymentOrderDetails, type ApplePaySessionRequest, Atome, type AwaitComponentProps, type AwaitConfiguration, BacsElement as BacsDirectDebit, BancontactElement as Bancontact, type BankDetailsSchema, BankTransferElement as BankTransfer, type BankTransferConfiguration, type BankTransferSchema, type BankTransferState, BCMCMobileElement as BcmcMobile, BillDeskOnlineElement as BillDeskOnline, BillDeskWalletElement as BillDeskWallet, type BinLookupResponse, type BinLookupResponseRaw, BlikElement as Blik, BoletoElement as Boleto, type BoletoElementProps, type BoletoInputDataState, type BoletoInputErrorState, type BoletoInputValidState, type BrandConfiguration, type BrandObject, type BrowserInfo, type CReqData, CardElement as Card, type CardBackendConfiguration, type CardBrandsConfiguration, type CardConfiguration, type CardElementData, CashAppPay, type CashAppPayConfiguration, type CashAppPayElementData, type CashAppPayEventData, type ChallengeData, type ChangeActionOptions, type ChangePaymentDetailsButtonProps, type ChargeAmount, type CheckoutAdvancedFlowResponse, type CheckoutDetailsRequest, type CheckoutSessionConfig, ClickToPayElement as ClickToPay, type ClickToPayConfiguration, type ClickToPayPaymentData, type ClickToPayProps, type ClickToPayScheme, type ComponentFocusObject, type CoreConfiguration, type Currency, CustomCard, type CustomCardConfiguration, type DeliverySpecifications, DokuElement as Doku, type DokuVoucherResultProps, DonationElement as Donation, type DonationConfiguration, DotpayElement as Dotpay, DragonpayElement as Dragonpay, type DragonpayConfiguraton, type DragonpayInputData, type DragonpayInputIssuerItem, type DragonpayInputProps, type DragonpayVoucherResultProps, DropinElement as Dropin, type DropinComponentProps, type DropinComponentState, type DropinConfiguration, type DropinStatusProps, type DualBrandSelectElement, DuitNowElement as DuitNow, EPSElement as EPS, EcontextElement as Econtext, type EcontextConfiguration, type EcontextInputSchema, type EcontextVoucherResultProps, type ExtendedMerchantInfo, FacilyPay10x as FacilPay10x, FacilyPay12x as FacilPay12x, FacilyPay3x as FacilPay3x, FacilyPay4x as FacilPay4x, FacilyPay6x as FacilPay6x, type FieldsetVisibility, type FingerPrintData, type FundingSource, type GiftCardConfiguration, type GiftCardElementData, GiftcardElement as Giftcard, GiropayElement as Giropay, GooglePay, type GooglePayConfiguration, type GooglePayPropsConfiguration, type GooglePaymentDataRequest, type ICore, type IDropin, IdealElement as Ideal, type InstantPaymentTypes, type Intent, type IssuerListConfiguration, type IssuerListData, type KlarnConfiguration, KlarnaPayments as Klarna, type KlarnaSdkData, type KlarnaWidgetAuthorizeResponse, type KlarnaWidgetProps, type LedgerCurrencies, MBWayElement as MBWay, MealVoucherFRElement as MealVoucherFR, MolPayEBankingMYElement as MolPayEBankingMY, MolPayEBankingTHElement as MolPayEBankingTH, MolPayEbankingVNElement as MolPayEBankingVN, MultibancoElement as Multibanco, type MultibancoVoucherResultProps, OnlineBankingCZElement as OnlineBankingCZ, OnlineBankingFI, OnlineBankingINElement as OnlineBankingIN, OnlineBankingPL, OnlineBankingSKElement as OnlineBankingSK, type OpenInvoiceActiveFieldsets, type OpenInvoiceConfiguration, type OpenInvoiceFieldsetsRefs, type OpenInvoiceProps, type OpenInvoiceStateData, type OpenInvoiceStateError, type OpenInvoiceStateValid, type OpenInvoiceVisibility, type Order, type OrderButtonProps, type OrderStatus, OxxoElement as Oxxo, type OxxoElementData, type OxxoVoucherResultProps, PayByBank, PayMeElement as PayMe, PayNowElement as PayNow, PaypalElement as PayPal, type PayPalConfiguration, type PayloadJSON, type PaymentAction, type PaymentActionsType, type PaymentAmount, type PaymentAmountExtended, type PaymentData, type PaymentMethod, type PaymentMethodData, type PaymentMethodGroup, type PaymentMethodOptions, type PaymentMethods, type PaymentMethodsConfiguration, type PaymentMethodsRequestData, type PaymentMethodsResponse, type PaymentResponseData, PayuNetCashcardElement as PayuCashcard, PayuNetBankingElement as PayuNetBanking, PersonalDetailsElement as PersonalDetails, type PersonalDetailsSchema, PixElement as Pix, type PixConfiguration, type PixElementData, type PostMsgParseErrorObject, type ProcessedResponse, PromptPayElement as PromptPay, type QRLoaderConfiguration, RatePay, RatePayDirectDebit, type RawPaymentResponse, type RecurringMetadata, RedirectElement as Redirect, type RedirectConfiguration, type Region, type ResultCode, type ResultObject, type ResultValue, Riverty, type SepaConfiguration, SepaElement as SepaDirectDebit, type SepaElementData, type SessionsResponse, type SignOutButtonProps, type SocialSecurityMode, type StatusObject, type StoredPaymentMethod, type SupportedLocale, SwishElement as Swish, ThreeDS2Challenge, type ThreeDS2ChallengeConfiguration, ThreeDS2DeviceFingerprint, type ThreeDS2DeviceFingerprintConfiguration, type ThreeDS2FingerprintResponse, type ThreeDS2FlowObject, type ThreeDS2Token, TrustlyElement as Trustly, TwintElement as Twint, UPI, type UPIConfiguration, type UpdateAmazonCheckoutSessionRequest, type UpiMode, type UpiPaymentData, type ValidationError, VippsElement as Vipps, type VoucherConfiguration, type VoucherDetail, type VoucherProps, WalletINElement as WalletIN, WeChatPayElement as WeChat, _default$p as ar, type balanceCheckResponseType, index_d as components, _default$o as cs_CZ, _default$n as da_DK, _default$m as de_DE, _default$l as el_GR, _default$k as en_US, _default$j as es_ES, _default$i as fi_FI, _default$h as fr_FR, _default$g as hr_HR, _default$f as hu_HU, _default$e as it_IT, _default$d as ja_JP, _default$c as ko_KR, _default$b as nl_NL, _default$a as no_NO, type onBalanceCheckCallbackType, type onOrderCancelData, type onOrderRequestCallbackType, _default$9 as pl_PL, _default$8 as pt_BR, _default$7 as pt_PT, _default$6 as ro_RO, _default$5 as ru_RU, _default$4 as sk_SK, _default$3 as sl_SI, _default$2 as sv_SE, _default$1 as zh_CN, _default as zh_TW };
|