@adyen/adyen-web 6.0.0-alpha.8 → 6.0.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/adyen.css +65 -65
- package/dist/cjs/adyen.css.map +1 -1
- package/dist/cjs/index.cjs +2 -2
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.d.cts +861 -1243
- package/dist/es/adyen.css +65 -65
- package/dist/es/adyen.css.map +1 -1
- package/dist/es/components/Ach/Ach.js +1 -1
- package/dist/es/components/Ach/Ach.js.map +1 -1
- package/dist/es/components/BankTransfer/BankTransfer.js +1 -1
- package/dist/es/components/BankTransfer/BankTransfer.js.map +1 -1
- package/dist/es/components/Blik/Blik.js +1 -1
- package/dist/es/components/Blik/Blik.js.map +1 -1
- package/dist/es/components/Card/components/CardInput/CardInput.js +1 -1
- package/dist/es/components/Card/components/CardInput/CardInput.js.map +1 -1
- package/dist/es/components/Card/components/CardInput/handlers.js +1 -1
- package/dist/es/components/Card/components/CardInput/useSRPanelForCardInputErrors.js +2 -0
- package/dist/es/components/Card/components/CardInput/useSRPanelForCardInputErrors.js.map +1 -0
- package/dist/es/components/CashAppPay/CashAppPay.js +1 -1
- package/dist/es/components/CashAppPay/CashAppPay.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/components/PaymentMethod/PaymentMethodList.js +1 -1
- package/dist/es/components/Dropin/components/PaymentMethod/PaymentMethodList.js.map +1 -1
- package/dist/es/components/Dropin/elements/createElements.js.map +1 -1
- package/dist/es/components/Dropin/elements/createInstantPaymentElements.js.map +1 -1
- package/dist/es/components/Dropin/elements/createStoredElements.js.map +1 -1
- package/dist/es/components/Dropin/elements/filters.js.map +1 -1
- package/dist/es/components/Giropay/Giropay.js +1 -1
- package/dist/es/components/Giropay/Giropay.js.map +1 -1
- package/dist/es/components/Multibanco/Multibanco.js +1 -1
- package/dist/es/components/Multibanco/Multibanco.js.map +1 -1
- package/dist/es/components/Redirect/Redirect.js +1 -1
- package/dist/es/components/Redirect/Redirect.js.map +1 -1
- package/dist/es/components/Trustly/Trustly.js +1 -1
- package/dist/es/components/Trustly/Trustly.js.map +1 -1
- package/dist/es/components/WeChat/config.js +1 -1
- package/dist/es/components/WeChat/config.js.map +1 -1
- package/dist/es/components/components-name-map.js +1 -1
- package/dist/es/components/components-name-map.js.map +1 -1
- 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/helpers/QRLoaderContainer/QRLoaderContainer.js +1 -1
- package/dist/es/components/helpers/QRLoaderContainer/QRLoaderContainer.js.map +1 -1
- package/dist/es/components/index.js +1 -1
- package/dist/es/components/internal/ClickToPay/components/CtPCards/CtPCards.js.map +1 -1
- package/dist/es/components/internal/ClickToPay/components/CtPOneTimePassword/CtPOneTimePasswordInput/CtPResendOtpLink.js.map +1 -1
- package/dist/es/components/internal/ClickToPay/models/ShopperCard.js +1 -1
- package/dist/es/components/internal/ClickToPay/models/ShopperCard.js.map +1 -1
- package/dist/es/components/internal/ClickToPay/services/sdks/SrciError.js +1 -1
- package/dist/es/components/internal/ClickToPay/services/sdks/SrciError.js.map +1 -1
- package/dist/es/components/internal/ClickToPay/services/utils.js +1 -1
- package/dist/es/components/internal/ClickToPay/services/utils.js.map +1 -1
- package/dist/es/components/internal/OpenInvoice/OpenInvoice.js +1 -1
- package/dist/es/components/internal/OpenInvoice/OpenInvoice.js.map +1 -1
- package/dist/es/components/internal/RedirectButton/RedirectButton.js +1 -1
- package/dist/es/components/internal/RedirectButton/RedirectButton.js.map +1 -1
- package/dist/es/components/internal/UIElement/UIElement.js.map +1 -1
- package/dist/es/components/tx-variants.js +1 -1
- package/dist/es/components/tx-variants.js.map +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/CheckoutSession/CheckoutSession.js.map +1 -1
- package/dist/es/core/ProcessResponse/PaymentAction/PaymentAction.js.map +1 -1
- package/dist/es/core/ProcessResponse/PaymentAction/actionTypes.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/http.js +1 -1
- package/dist/es/core/Services/http.js.map +1 -1
- package/dist/es/core/Services/sessions/setup-session.js +1 -1
- package/dist/es/core/Services/sessions/setup-session.js.map +1 -1
- package/dist/es/core/core.js +1 -1
- package/dist/es/core/core.js.map +1 -1
- package/dist/es/core/core.registry.js.map +1 -1
- package/dist/es/external/preact/dist/preact.js +1 -1
- package/dist/es/external/preact/dist/preact.js.map +1 -1
- package/dist/es/index.d.ts +861 -1243
- package/dist/es/index.js +1 -1
- package/dist/es/language/constants.js +1 -1
- package/dist/es/language/constants.js.map +1 -1
- package/dist/es-legacy/adyen.css +65 -65
- package/dist/es-legacy/adyen.css.map +1 -1
- package/dist/es-legacy/components/Ach/Ach.js +1 -1
- package/dist/es-legacy/components/Ach/Ach.js.map +1 -1
- package/dist/es-legacy/components/BankTransfer/BankTransfer.js +1 -1
- package/dist/es-legacy/components/BankTransfer/BankTransfer.js.map +1 -1
- package/dist/es-legacy/components/Blik/Blik.js +1 -1
- package/dist/es-legacy/components/Blik/Blik.js.map +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/CardInput.js +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/CardInput.js.map +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/handlers.js +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/useSRPanelForCardInputErrors.js +2 -0
- package/dist/es-legacy/components/Card/components/CardInput/useSRPanelForCardInputErrors.js.map +1 -0
- package/dist/es-legacy/components/CashAppPay/CashAppPay.js +1 -1
- package/dist/es-legacy/components/CashAppPay/CashAppPay.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/components/PaymentMethod/PaymentMethodList.js +1 -1
- package/dist/es-legacy/components/Dropin/components/PaymentMethod/PaymentMethodList.js.map +1 -1
- package/dist/es-legacy/components/Dropin/elements/createElements.js.map +1 -1
- package/dist/es-legacy/components/Dropin/elements/createInstantPaymentElements.js.map +1 -1
- package/dist/es-legacy/components/Dropin/elements/createStoredElements.js.map +1 -1
- package/dist/es-legacy/components/Dropin/elements/filters.js.map +1 -1
- package/dist/es-legacy/components/Giropay/Giropay.js +1 -1
- package/dist/es-legacy/components/Giropay/Giropay.js.map +1 -1
- package/dist/es-legacy/components/Multibanco/Multibanco.js +1 -1
- package/dist/es-legacy/components/Multibanco/Multibanco.js.map +1 -1
- package/dist/es-legacy/components/Redirect/Redirect.js +1 -1
- package/dist/es-legacy/components/Redirect/Redirect.js.map +1 -1
- package/dist/es-legacy/components/Trustly/Trustly.js +1 -1
- package/dist/es-legacy/components/Trustly/Trustly.js.map +1 -1
- package/dist/es-legacy/components/WeChat/config.js +1 -1
- package/dist/es-legacy/components/WeChat/config.js.map +1 -1
- package/dist/es-legacy/components/components-name-map.js +1 -1
- package/dist/es-legacy/components/components-name-map.js.map +1 -1
- 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/helpers/QRLoaderContainer/QRLoaderContainer.js +1 -1
- package/dist/es-legacy/components/helpers/QRLoaderContainer/QRLoaderContainer.js.map +1 -1
- package/dist/es-legacy/components/index.js +1 -1
- package/dist/es-legacy/components/internal/ClickToPay/components/CtPCards/CtPCards.js.map +1 -1
- package/dist/es-legacy/components/internal/ClickToPay/components/CtPOneTimePassword/CtPOneTimePasswordInput/CtPResendOtpLink.js.map +1 -1
- package/dist/es-legacy/components/internal/ClickToPay/models/ShopperCard.js +1 -1
- package/dist/es-legacy/components/internal/ClickToPay/models/ShopperCard.js.map +1 -1
- package/dist/es-legacy/components/internal/ClickToPay/services/sdks/SrciError.js +1 -1
- package/dist/es-legacy/components/internal/ClickToPay/services/sdks/SrciError.js.map +1 -1
- package/dist/es-legacy/components/internal/ClickToPay/services/utils.js +1 -1
- package/dist/es-legacy/components/internal/ClickToPay/services/utils.js.map +1 -1
- package/dist/es-legacy/components/internal/OpenInvoice/OpenInvoice.js +1 -1
- package/dist/es-legacy/components/internal/OpenInvoice/OpenInvoice.js.map +1 -1
- package/dist/es-legacy/components/internal/RedirectButton/RedirectButton.js +1 -1
- package/dist/es-legacy/components/internal/RedirectButton/RedirectButton.js.map +1 -1
- package/dist/es-legacy/components/internal/UIElement/UIElement.js.map +1 -1
- package/dist/es-legacy/components/tx-variants.js +1 -1
- package/dist/es-legacy/components/tx-variants.js.map +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/CheckoutSession/CheckoutSession.js.map +1 -1
- package/dist/es-legacy/core/ProcessResponse/PaymentAction/PaymentAction.js.map +1 -1
- package/dist/es-legacy/core/ProcessResponse/PaymentAction/actionTypes.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/http.js +1 -1
- package/dist/es-legacy/core/Services/http.js.map +1 -1
- package/dist/es-legacy/core/Services/sessions/setup-session.js +1 -1
- package/dist/es-legacy/core/Services/sessions/setup-session.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/core/core.registry.js.map +1 -1
- package/dist/es-legacy/external/preact/dist/preact.js +1 -1
- package/dist/es-legacy/external/preact/dist/preact.js.map +1 -1
- package/dist/es-legacy/index.js +1 -1
- package/dist/es-legacy/language/constants.js +1 -1
- package/dist/es-legacy/language/constants.js.map +1 -1
- package/package.json +30 -30
- package/dist/es/components/Ideal/index.js +0 -2
- package/dist/es/components/Ideal/index.js.map +0 -1
- package/dist/es/core/Services/analytics/log-event.js +0 -2
- package/dist/es/core/Services/analytics/log-event.js.map +0 -1
- package/dist/es-legacy/components/Ideal/index.js +0 -2
- package/dist/es-legacy/components/Ideal/index.js.map +0 -1
- package/dist/es-legacy/core/Services/analytics/log-event.js +0 -2
- package/dist/es-legacy/core/Services/analytics/log-event.js.map +0 -1
package/dist/cjs/index.d.cts
CHANGED
|
@@ -123,6 +123,90 @@ declare class AdyenCheckoutError extends Error {
|
|
|
123
123
|
constructor(type: keyof typeof AdyenCheckoutError.errorTypes, message?: string, options?: CheckoutErrorOptions);
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
+
interface Experiment {
|
|
127
|
+
controlGroup: boolean;
|
|
128
|
+
experimentId: string;
|
|
129
|
+
experimentName?: string;
|
|
130
|
+
}
|
|
131
|
+
interface AnalyticsData {
|
|
132
|
+
/**
|
|
133
|
+
* Relates to PMs used within Plugins
|
|
134
|
+
* https://docs.adyen.com/development-resources/application-information/?tab=integrator_built_2#application-information-fields
|
|
135
|
+
* @internal
|
|
136
|
+
*/
|
|
137
|
+
applicationInfo?: {
|
|
138
|
+
externalPlatform: {
|
|
139
|
+
name: string;
|
|
140
|
+
version: string;
|
|
141
|
+
integrator: string;
|
|
142
|
+
};
|
|
143
|
+
merchantApplication: {
|
|
144
|
+
name: string;
|
|
145
|
+
version: string;
|
|
146
|
+
};
|
|
147
|
+
merchantDevice?: {
|
|
148
|
+
os: string;
|
|
149
|
+
osVersion: string;
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
/**
|
|
153
|
+
* Use a checkoutAttemptId from a previous page
|
|
154
|
+
*/
|
|
155
|
+
checkoutAttemptId?: string;
|
|
156
|
+
}
|
|
157
|
+
interface AnalyticsOptions {
|
|
158
|
+
/**
|
|
159
|
+
* Enable/Disable all analytics
|
|
160
|
+
*/
|
|
161
|
+
enabled?: boolean;
|
|
162
|
+
/**
|
|
163
|
+
* Data to be sent along with the event data
|
|
164
|
+
*/
|
|
165
|
+
payload?: any;
|
|
166
|
+
/**
|
|
167
|
+
* List of experiments to be sent in the collectId call // TODO - still used?
|
|
168
|
+
*/
|
|
169
|
+
experiments?: Experiment[];
|
|
170
|
+
/**
|
|
171
|
+
* A wrapper to pass data needed when analytics is setup
|
|
172
|
+
*/
|
|
173
|
+
analyticsData?: AnalyticsData;
|
|
174
|
+
}
|
|
175
|
+
interface AnalyticsObject {
|
|
176
|
+
timestamp: string;
|
|
177
|
+
component: string;
|
|
178
|
+
id: string;
|
|
179
|
+
code?: string;
|
|
180
|
+
errorType?: string;
|
|
181
|
+
message?: string;
|
|
182
|
+
type?: string;
|
|
183
|
+
subtype?: string;
|
|
184
|
+
target?: string;
|
|
185
|
+
metadata?: Record<string, any>;
|
|
186
|
+
isStoredPaymentMethod?: boolean;
|
|
187
|
+
brand?: string;
|
|
188
|
+
validationErrorCode?: string;
|
|
189
|
+
validationErrorMessage?: string;
|
|
190
|
+
issuer?: string;
|
|
191
|
+
isExpress?: boolean;
|
|
192
|
+
expressPage?: string;
|
|
193
|
+
result?: string;
|
|
194
|
+
}
|
|
195
|
+
type ANALYTICS_EVENT = 'log' | 'error' | 'info';
|
|
196
|
+
type AnalyticsInitialEvent = {
|
|
197
|
+
containerWidth: number;
|
|
198
|
+
component: string;
|
|
199
|
+
flavor: string;
|
|
200
|
+
paymentMethods?: any[];
|
|
201
|
+
sessionId?: string;
|
|
202
|
+
};
|
|
203
|
+
type CreateAnalyticsEventData = Omit<AnalyticsObject, 'timestamp' | 'id'>;
|
|
204
|
+
type CreateAnalyticsEventObject = {
|
|
205
|
+
event: ANALYTICS_EVENT;
|
|
206
|
+
data: CreateAnalyticsEventData;
|
|
207
|
+
};
|
|
208
|
+
type SendAnalyticsObject = Omit<AnalyticsObject, 'timestamp' | 'component' | 'id'>;
|
|
209
|
+
|
|
126
210
|
interface ImageOptions {
|
|
127
211
|
extension?: string;
|
|
128
212
|
imageFolder?: string;
|
|
@@ -434,27 +518,6 @@ type UIElementProps = BaseElementProps & CoreCallbacks & {
|
|
|
434
518
|
*/
|
|
435
519
|
paymentMethodType?: string;
|
|
436
520
|
};
|
|
437
|
-
interface IUIElement extends IBaseElement {
|
|
438
|
-
core: ICore;
|
|
439
|
-
type: string;
|
|
440
|
-
isValid: boolean;
|
|
441
|
-
displayName: string;
|
|
442
|
-
accessibleName: string;
|
|
443
|
-
icon: string;
|
|
444
|
-
elementRef: UIElement;
|
|
445
|
-
submit(): void;
|
|
446
|
-
setComponentRef(ref: any): void;
|
|
447
|
-
updateParent(options?: CoreConfiguration): Promise<ICore>;
|
|
448
|
-
setElementStatus(status: UIElementStatus, props: any): UIElement;
|
|
449
|
-
setStatus(status: UIElementStatus, props?: {
|
|
450
|
-
message?: string;
|
|
451
|
-
[key: string]: any;
|
|
452
|
-
}): UIElement;
|
|
453
|
-
handleAction(action: PaymentAction): UIElement | null;
|
|
454
|
-
showValidation(): void;
|
|
455
|
-
setState(newState: object): void;
|
|
456
|
-
isAvailable(): Promise<void>;
|
|
457
|
-
}
|
|
458
521
|
type UIElementStatus = 'ready' | 'loading' | 'error' | 'success';
|
|
459
522
|
interface ComponentMethodsRef {
|
|
460
523
|
showValidation?: () => void;
|
|
@@ -463,75 +526,54 @@ interface ComponentMethodsRef {
|
|
|
463
526
|
|
|
464
527
|
interface CardConfiguration extends UIElementProps {
|
|
465
528
|
/**
|
|
466
|
-
*
|
|
467
|
-
*
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
* Configuration specific to brands
|
|
472
|
-
*/
|
|
473
|
-
brandsConfiguration?: CardBrandsConfiguration;
|
|
474
|
-
/**
|
|
475
|
-
* Configuration for Click to Pay
|
|
476
|
-
*/
|
|
477
|
-
clickToPayConfiguration?: ClickToPayProps;
|
|
478
|
-
/**
|
|
479
|
-
* Disable Click to Pay for testing purposes
|
|
480
|
-
* @defaultValue false
|
|
481
|
-
* @internal
|
|
529
|
+
* Automatically shift the focus from one field to another. Usually happens from a valid Expiry Date field to the Security Code field,
|
|
530
|
+
* but some BINS also allow us to know that the PAN is complete, in which case we can shift focus to the date field
|
|
531
|
+
* @defaultValue `true`
|
|
532
|
+
*
|
|
533
|
+
* - merchant set config option
|
|
482
534
|
*/
|
|
483
|
-
|
|
535
|
+
autoFocus?: boolean;
|
|
484
536
|
/**
|
|
485
|
-
*
|
|
486
|
-
*
|
|
537
|
+
* Config t olimit the countries that will show in the country dropdown
|
|
538
|
+
* - merchant set config option
|
|
487
539
|
*/
|
|
488
|
-
|
|
540
|
+
billingAddressAllowedCountries?: string[];
|
|
489
541
|
/**
|
|
490
|
-
*
|
|
491
|
-
*
|
|
542
|
+
* If billingAddressRequired is set to true, you can set this to partial to require the shopper's postal code instead of the full address.
|
|
543
|
+
* @defaultValue full
|
|
544
|
+
*
|
|
545
|
+
* - merchant set config option
|
|
492
546
|
*/
|
|
493
|
-
|
|
494
|
-
/** List of brands accepted by the component */
|
|
495
|
-
brands?: string[];
|
|
547
|
+
billingAddressMode?: 'full' | 'partial' | 'none';
|
|
496
548
|
/**
|
|
497
|
-
*
|
|
549
|
+
* Show Address fields
|
|
498
550
|
* @defaultValue `false`
|
|
551
|
+
*
|
|
552
|
+
* - merchant set config option
|
|
499
553
|
*/
|
|
500
|
-
|
|
554
|
+
billingAddressRequired?: boolean;
|
|
501
555
|
/**
|
|
502
|
-
*
|
|
503
|
-
*
|
|
556
|
+
* Config to specify which address field are required
|
|
557
|
+
* - merchant set config option
|
|
504
558
|
*/
|
|
505
|
-
|
|
559
|
+
billingAddressRequiredFields?: string[];
|
|
506
560
|
/**
|
|
507
|
-
*
|
|
508
|
-
*
|
|
561
|
+
* Only set for a stored card,
|
|
562
|
+
* brand is never set for a generic card component OR a single-branded card
|
|
563
|
+
* @internal
|
|
509
564
|
*/
|
|
510
|
-
|
|
511
|
-
/** Config option related to whether we set storePaymentMethod in the card data, and showing/hiding the "store details" checkbox */
|
|
512
|
-
enableStoreDetails?: boolean;
|
|
513
|
-
/** Show/hide the Security Code field - merchant set config option */
|
|
565
|
+
brand?: string;
|
|
514
566
|
/**
|
|
515
|
-
*
|
|
567
|
+
* List of brands accepted by the component
|
|
516
568
|
* @internal
|
|
569
|
+
* - but can also be overwritten by merchant config option
|
|
517
570
|
*/
|
|
518
|
-
|
|
519
|
-
/** Show/hide the CVC field - merchant set config option */
|
|
520
|
-
hideCVC?: boolean;
|
|
571
|
+
brands?: string[];
|
|
521
572
|
/**
|
|
522
|
-
*
|
|
523
|
-
*
|
|
524
|
-
* (For the Bancontact card comp this is set to true since dual-branding possibilities mean the BCMC card can now end up needing to show a CVC field)
|
|
573
|
+
* Configuration specific to brands
|
|
574
|
+
* - merchant set config option
|
|
525
575
|
*/
|
|
526
|
-
|
|
527
|
-
/** Show/hide the card holder name field */
|
|
528
|
-
hasHolderName?: boolean;
|
|
529
|
-
/** Whether the card holder name field will be required */
|
|
530
|
-
holderNameRequired?: boolean;
|
|
531
|
-
/** An object sent in the /paymentMethods response */
|
|
532
|
-
configuration?: CardBackendConfiguration;
|
|
533
|
-
/** Configure placeholder text for holderName, cardNumber, expirationDate, securityCode and password. */
|
|
534
|
-
placeholders?: Placeholders;
|
|
576
|
+
brandsConfiguration?: CardBrandsConfiguration;
|
|
535
577
|
/**
|
|
536
578
|
* Defines the size of the challenge Component
|
|
537
579
|
*
|
|
@@ -542,142 +584,253 @@ interface CardConfiguration extends UIElementProps {
|
|
|
542
584
|
* 05: [100%, 100%]
|
|
543
585
|
*
|
|
544
586
|
* @defaultValue '02'
|
|
587
|
+
*
|
|
588
|
+
* - merchant set config option
|
|
545
589
|
*/
|
|
546
590
|
challengeWindowSize?: '01' | '02' | '03' | '04' | '05';
|
|
591
|
+
/**
|
|
592
|
+
* Configuration for Click to Pay
|
|
593
|
+
* - merchant set config option
|
|
594
|
+
*/
|
|
595
|
+
clickToPayConfiguration?: ClickToPayProps;
|
|
596
|
+
/**
|
|
597
|
+
* An object sent in the /paymentMethods response
|
|
598
|
+
* @internal
|
|
599
|
+
*/
|
|
600
|
+
configuration?: CardBackendConfiguration;
|
|
601
|
+
/**
|
|
602
|
+
* Mostly used in relation to KCP cards
|
|
603
|
+
* @internal
|
|
604
|
+
*/
|
|
605
|
+
countryCode?: string;
|
|
547
606
|
/**
|
|
548
607
|
* Object that contains placeholder information that you can use to prefill fields.
|
|
608
|
+
* - merchant set config option
|
|
549
609
|
*/
|
|
550
610
|
data?: {
|
|
551
611
|
holderName?: string;
|
|
552
612
|
billingAddress?: Partial<AddressData>;
|
|
553
613
|
};
|
|
554
614
|
/**
|
|
555
|
-
*
|
|
615
|
+
* Disable Click to Pay for testing purposes
|
|
616
|
+
* @defaultValue false
|
|
617
|
+
* @internal
|
|
556
618
|
*/
|
|
557
|
-
|
|
619
|
+
_disableClickToPay?: boolean;
|
|
558
620
|
/**
|
|
559
|
-
*
|
|
621
|
+
* Turn on the procedure to force the arrow keys on an iOS soft keyboard to always be disabled
|
|
622
|
+
* @defaultValue `false`
|
|
623
|
+
*
|
|
624
|
+
* - merchant set config option
|
|
560
625
|
*/
|
|
561
|
-
|
|
626
|
+
disableIOSArrowKeys?: boolean;
|
|
562
627
|
/**
|
|
563
|
-
*
|
|
564
|
-
*
|
|
628
|
+
* Object to configure the message and text for a disclaimer message, added after the Card input fields
|
|
629
|
+
* - merchant set config option
|
|
565
630
|
*/
|
|
566
|
-
|
|
631
|
+
disclaimerMessage?: DisclaimerMsgObject;
|
|
567
632
|
/**
|
|
568
|
-
*
|
|
633
|
+
* Allow binLookup process to occur
|
|
634
|
+
* @defaultValue `true`
|
|
635
|
+
*
|
|
636
|
+
* - merchant set config option
|
|
569
637
|
*/
|
|
570
|
-
|
|
638
|
+
doBinLookup?: boolean;
|
|
571
639
|
/**
|
|
572
|
-
*
|
|
640
|
+
* Config option related to whether we set storePaymentMethod in the card data, and showing/hiding the "store details" checkbox
|
|
641
|
+
* - merchant set config option
|
|
573
642
|
*/
|
|
574
|
-
|
|
643
|
+
enableStoreDetails?: boolean;
|
|
575
644
|
/**
|
|
576
|
-
*
|
|
645
|
+
* Comes from Stored payment method object
|
|
646
|
+
* @internal
|
|
577
647
|
*/
|
|
578
|
-
|
|
648
|
+
expiryMonth?: string;
|
|
579
649
|
/**
|
|
580
|
-
*
|
|
650
|
+
* Allows SF to return an unencrypted expiryDate
|
|
651
|
+
* - merchant set config option
|
|
581
652
|
*/
|
|
582
|
-
|
|
653
|
+
exposeExpiryDate?: boolean;
|
|
583
654
|
/**
|
|
584
|
-
*
|
|
655
|
+
* Force securedFields to use the 'compat' version of JWE. (Use case: running custom http:// test environment
|
|
656
|
+
* - merchant set config option
|
|
585
657
|
*/
|
|
586
|
-
|
|
658
|
+
forceCompat?: boolean;
|
|
587
659
|
/**
|
|
588
|
-
*
|
|
660
|
+
* Funding source field populated when 'splitCardFundingSources' is used
|
|
589
661
|
* @internal
|
|
590
662
|
*/
|
|
591
|
-
|
|
592
|
-
lastFour?: string;
|
|
663
|
+
fundingSource?: 'debit' | 'credit';
|
|
593
664
|
/**
|
|
594
|
-
*
|
|
665
|
+
* Decides whether the CVC (Security Code) component will even be rendered.
|
|
666
|
+
* Always true except when hideCVC set to false by merchant OR in the case of a *stored* BCMC card.
|
|
667
|
+
* (For the Bancontact card comp this is set to true since dual-branding possibilities mean the BCMC card can now end up needing to show a CVC field)
|
|
668
|
+
* @internal
|
|
595
669
|
*/
|
|
596
|
-
|
|
670
|
+
hasCVC?: boolean;
|
|
597
671
|
/**
|
|
598
|
-
* Show
|
|
599
|
-
*
|
|
672
|
+
* Show/hide the card holder name field
|
|
673
|
+
* - merchant set config option
|
|
600
674
|
*/
|
|
601
|
-
|
|
675
|
+
hasHolderName?: boolean;
|
|
602
676
|
/**
|
|
603
|
-
*
|
|
604
|
-
*
|
|
677
|
+
* Show/hide the Security Code field
|
|
678
|
+
* - merchant set config option
|
|
605
679
|
*/
|
|
606
|
-
|
|
680
|
+
hideCVC?: boolean;
|
|
607
681
|
/**
|
|
608
|
-
*
|
|
682
|
+
* Whether the card holder name field will be required
|
|
683
|
+
* - merchant set config option
|
|
609
684
|
*/
|
|
610
|
-
|
|
611
|
-
billingAddressAllowedCountries?: string[];
|
|
685
|
+
holderNameRequired?: boolean;
|
|
612
686
|
/**
|
|
613
687
|
* Relates to storedCards
|
|
688
|
+
* @internal
|
|
614
689
|
*/
|
|
615
690
|
id?: string;
|
|
616
691
|
/**
|
|
617
692
|
* Configure the installment options for the card
|
|
693
|
+
* - merchant set config option
|
|
618
694
|
*/
|
|
619
695
|
installmentOptions?: InstallmentOptions;
|
|
620
696
|
/**
|
|
621
|
-
*
|
|
697
|
+
* Implements a workaround for iOS/Safari bug where keypad doesn't retract when SF paymentMethod is no longer active
|
|
622
698
|
* @defaultValue `true`
|
|
699
|
+
*
|
|
700
|
+
* - merchant set config option
|
|
623
701
|
*/
|
|
624
|
-
|
|
702
|
+
keypadFix?: boolean;
|
|
703
|
+
/**
|
|
704
|
+
* Related to storedCards - this information comes from the storedCardData once we process it
|
|
705
|
+
* @internal
|
|
706
|
+
*/
|
|
707
|
+
lastFour?: string;
|
|
625
708
|
/**
|
|
626
709
|
* For some scenarios make the card input fields (PAN, Expiry Date, Security Code) have type="tel" rather than type="text" inputmode="numeric"
|
|
627
710
|
* @defaultValue `false`
|
|
711
|
+
*
|
|
712
|
+
* - merchant set config option
|
|
628
713
|
*/
|
|
629
714
|
legacyInputMode?: boolean;
|
|
715
|
+
/**
|
|
716
|
+
* Adds type="password" to the Security code input field, causing its value to be masked
|
|
717
|
+
* @defaultValue `false`
|
|
718
|
+
*
|
|
719
|
+
* - merchant set config option
|
|
720
|
+
*/
|
|
721
|
+
maskSecurityCode?: boolean;
|
|
630
722
|
/**
|
|
631
723
|
* Specify the minimum expiry date that will be considered valid
|
|
724
|
+
*
|
|
725
|
+
* - merchant set config option
|
|
632
726
|
*/
|
|
633
727
|
minimumExpiryDate?: string[];
|
|
634
728
|
/**
|
|
635
|
-
*
|
|
636
|
-
*
|
|
637
|
-
* @
|
|
729
|
+
* When in Dropin this is the name shown in the paymentMethods list
|
|
730
|
+
* @defaultValue - derived from PaymentMethods response
|
|
731
|
+
* @internal - but can also be overwritten by merchant config option
|
|
638
732
|
*/
|
|
639
|
-
|
|
733
|
+
name?: string;
|
|
640
734
|
/**
|
|
641
|
-
*
|
|
735
|
+
* After binLookup call - provides the brand(s) we detect the user is entering, and if we support the brand(s)
|
|
736
|
+
* - merchant set config option
|
|
737
|
+
*/
|
|
738
|
+
onBinLookup?: (event: CbObjOnBinLookup) => void;
|
|
739
|
+
/**
|
|
740
|
+
* Provides the BIN Number of the card (up to 6 digits), called as the user types in the PAN.
|
|
741
|
+
* - merchant set config option
|
|
742
|
+
*/
|
|
743
|
+
onBinValue?: (event: CbObjOnBinValue) => void;
|
|
744
|
+
/**
|
|
745
|
+
* Called when a field loses focus.
|
|
746
|
+
* - merchant set config option
|
|
747
|
+
*/
|
|
748
|
+
onBlur?: (event: CbObjOnFocus | ComponentFocusObject) => void;
|
|
749
|
+
/**
|
|
750
|
+
* Called once we detect the card brand.
|
|
751
|
+
* - merchant set config option
|
|
752
|
+
*/
|
|
753
|
+
onBrand?: (event: CbObjOnBrand) => void;
|
|
754
|
+
/**
|
|
755
|
+
* Called once the card input fields are ready to use.
|
|
756
|
+
* - merchant set config option
|
|
757
|
+
*/
|
|
758
|
+
onConfigSuccess?: (event: CbObjOnConfigSuccess) => void;
|
|
759
|
+
/**
|
|
760
|
+
* Called when a field becomes valid and also if a valid field changes and becomes invalid.
|
|
761
|
+
* For the card number field, it returns the last 4 digits of the card number.
|
|
762
|
+
* - merchant set config option
|
|
763
|
+
*/
|
|
764
|
+
onFieldValid?: (event: CbObjOnFieldValid) => void;
|
|
765
|
+
/**
|
|
766
|
+
* Called when a field gains focus.
|
|
767
|
+
* - merchant set config option
|
|
768
|
+
*/
|
|
769
|
+
onFocus?: (event: CbObjOnFocus | ComponentFocusObject) => void;
|
|
770
|
+
/**
|
|
771
|
+
* Called once all the card input fields have been created but are not yet ready to use.
|
|
772
|
+
* - merchant set config option
|
|
773
|
+
*/
|
|
774
|
+
onLoad?: (event: CbObjOnLoad) => void;
|
|
775
|
+
/**
|
|
776
|
+
* Configure placeholder text for holderName, cardNumber, expirationDate, securityCode and password.
|
|
777
|
+
* - merchant set config option
|
|
778
|
+
*/
|
|
779
|
+
placeholders?: Placeholders;
|
|
780
|
+
/**
|
|
781
|
+
* Position holder name above card number field (instead of having it after the security code field)
|
|
642
782
|
* @defaultValue `false`
|
|
783
|
+
*
|
|
784
|
+
* - merchant set config option
|
|
643
785
|
*/
|
|
644
|
-
|
|
786
|
+
positionHolderNameOnTop?: boolean;
|
|
645
787
|
/**
|
|
646
|
-
*
|
|
788
|
+
* Show/hide the brand logo when the card brand has been recognized
|
|
647
789
|
* @defaultValue `true`
|
|
790
|
+
*
|
|
791
|
+
* - merchant set config option
|
|
648
792
|
*/
|
|
649
|
-
|
|
793
|
+
showBrandIcon?: boolean;
|
|
650
794
|
/**
|
|
651
|
-
*
|
|
652
|
-
* @defaultValue `
|
|
795
|
+
* Show/hide the contextual text under each form field. The contextual text is to assist shoppers filling in the payment form.
|
|
796
|
+
* @defaultValue `true`
|
|
797
|
+
*
|
|
798
|
+
* - merchant set config option
|
|
653
799
|
*/
|
|
654
|
-
|
|
800
|
+
showContextualElement?: boolean;
|
|
655
801
|
/**
|
|
656
|
-
*
|
|
802
|
+
* Set whether to show installments broken down into amounts or months
|
|
803
|
+
* @defaultValue `true`
|
|
804
|
+
*
|
|
805
|
+
* - merchant set config option
|
|
657
806
|
*/
|
|
658
|
-
|
|
807
|
+
showInstallmentAmounts?: boolean;
|
|
659
808
|
/**
|
|
660
|
-
*
|
|
809
|
+
* Related to storedCards - this information comes from the storedCardData once we process it
|
|
810
|
+
* @internal
|
|
661
811
|
*/
|
|
662
|
-
|
|
812
|
+
storedPaymentMethodId?: string;
|
|
663
813
|
/**
|
|
664
|
-
*
|
|
814
|
+
* Show/hide the "store details" checkbox
|
|
815
|
+
* @internal
|
|
665
816
|
*/
|
|
666
|
-
|
|
817
|
+
showStoreDetailsCheckbox?: boolean;
|
|
667
818
|
/**
|
|
668
|
-
*
|
|
669
|
-
*
|
|
819
|
+
* Object to configure the styling of the inputs in the iframes that are used to present the PAN, Expiry Date & Security Code fields
|
|
820
|
+
* - merchant set config option
|
|
670
821
|
*/
|
|
671
|
-
|
|
822
|
+
styles?: StylesObject;
|
|
672
823
|
/**
|
|
673
|
-
*
|
|
824
|
+
* Relates to storedCards and the type of interactions they support e.g. "Ecommerce", "ContAuth" etc
|
|
674
825
|
* @internal
|
|
675
826
|
*/
|
|
676
|
-
|
|
827
|
+
supportedShopperInteractions?: string[];
|
|
677
828
|
/**
|
|
678
|
-
*
|
|
829
|
+
* type will always be "card" (generic card, stored card)
|
|
830
|
+
* except for a single branded card when it will be the same as the brand prop
|
|
831
|
+
* @internal
|
|
679
832
|
*/
|
|
680
|
-
|
|
833
|
+
type?: string;
|
|
681
834
|
}
|
|
682
835
|
type SocialSecurityMode = 'show' | 'hide' | 'auto';
|
|
683
836
|
/** If the merchant wishes to set any of these properties in their local config they should do so via a "configuration" object */
|
|
@@ -762,126 +915,6 @@ interface DualBrandSelectElement {
|
|
|
762
915
|
brandObject: BrandObject;
|
|
763
916
|
}
|
|
764
917
|
|
|
765
|
-
interface RiskModuleOptions {
|
|
766
|
-
enabled: boolean;
|
|
767
|
-
onComplete?: (data: any) => void;
|
|
768
|
-
onError?: (error: any) => void;
|
|
769
|
-
node?: string;
|
|
770
|
-
}
|
|
771
|
-
interface RiskModuleProps extends BaseElementProps {
|
|
772
|
-
risk: RiskModuleOptions;
|
|
773
|
-
loadingContext: string;
|
|
774
|
-
}
|
|
775
|
-
declare class RiskElement extends BaseElement<RiskModuleProps> {
|
|
776
|
-
static type: string;
|
|
777
|
-
static defaultProps: {
|
|
778
|
-
risk: {
|
|
779
|
-
enabled: boolean;
|
|
780
|
-
onComplete: () => void;
|
|
781
|
-
onError: () => void;
|
|
782
|
-
node: string;
|
|
783
|
-
};
|
|
784
|
-
};
|
|
785
|
-
private nodeRiskContainer;
|
|
786
|
-
constructor(checkout: ICore, props?: any);
|
|
787
|
-
formatProps(props: any): any;
|
|
788
|
-
onComplete: (result: any) => void;
|
|
789
|
-
onError: (error: any) => void;
|
|
790
|
-
get isValid(): any;
|
|
791
|
-
get data(): any;
|
|
792
|
-
cleanUp: () => void;
|
|
793
|
-
componentWillUnmount(): void;
|
|
794
|
-
render(): h.JSX.Element;
|
|
795
|
-
}
|
|
796
|
-
|
|
797
|
-
interface Experiment {
|
|
798
|
-
controlGroup: boolean;
|
|
799
|
-
experimentId: string;
|
|
800
|
-
experimentName?: string;
|
|
801
|
-
}
|
|
802
|
-
interface AnalyticsData {
|
|
803
|
-
/**
|
|
804
|
-
* Relates to PMs used within Plugins
|
|
805
|
-
* https://docs.adyen.com/development-resources/application-information/?tab=integrator_built_2#application-information-fields
|
|
806
|
-
* @internal
|
|
807
|
-
*/
|
|
808
|
-
applicationInfo?: {
|
|
809
|
-
externalPlatform: {
|
|
810
|
-
name: string;
|
|
811
|
-
version: string;
|
|
812
|
-
integrator: string;
|
|
813
|
-
};
|
|
814
|
-
merchantApplication: {
|
|
815
|
-
name: string;
|
|
816
|
-
version: string;
|
|
817
|
-
};
|
|
818
|
-
merchantDevice?: {
|
|
819
|
-
os: string;
|
|
820
|
-
osVersion: string;
|
|
821
|
-
};
|
|
822
|
-
};
|
|
823
|
-
/**
|
|
824
|
-
* Use a checkoutAttemptId from a previous page
|
|
825
|
-
*/
|
|
826
|
-
checkoutAttemptId?: string;
|
|
827
|
-
}
|
|
828
|
-
interface AnalyticsOptions {
|
|
829
|
-
/**
|
|
830
|
-
* Enable/Disable all analytics
|
|
831
|
-
*/
|
|
832
|
-
enabled?: boolean;
|
|
833
|
-
/**
|
|
834
|
-
* Enable/Disable telemetry data
|
|
835
|
-
*/
|
|
836
|
-
telemetry?: boolean;
|
|
837
|
-
/**
|
|
838
|
-
* Data to be sent along with the event data
|
|
839
|
-
*/
|
|
840
|
-
payload?: any;
|
|
841
|
-
/**
|
|
842
|
-
* List of experiments to be sent in the collectId call // TODO - still used?
|
|
843
|
-
*/
|
|
844
|
-
experiments?: Experiment[];
|
|
845
|
-
/**
|
|
846
|
-
* A wrapper to pass data needed when analytics is setup
|
|
847
|
-
*/
|
|
848
|
-
analyticsData?: AnalyticsData;
|
|
849
|
-
}
|
|
850
|
-
interface AnalyticsObject {
|
|
851
|
-
timestamp: string;
|
|
852
|
-
component: string;
|
|
853
|
-
id: string;
|
|
854
|
-
code?: string;
|
|
855
|
-
errorType?: string;
|
|
856
|
-
message?: string;
|
|
857
|
-
type?: string;
|
|
858
|
-
subtype?: string;
|
|
859
|
-
target?: string;
|
|
860
|
-
metadata?: Record<string, any>;
|
|
861
|
-
isStoredPaymentMethod?: boolean;
|
|
862
|
-
brand?: string;
|
|
863
|
-
validationErrorCode?: string;
|
|
864
|
-
validationErrorMessage?: string;
|
|
865
|
-
issuer?: string;
|
|
866
|
-
isExpress?: boolean;
|
|
867
|
-
expressPage?: string;
|
|
868
|
-
result?: string;
|
|
869
|
-
}
|
|
870
|
-
type ANALYTICS_EVENT = 'log' | 'error' | 'info';
|
|
871
|
-
type AnalyticsInitialEvent = {
|
|
872
|
-
containerWidth: number;
|
|
873
|
-
component: string;
|
|
874
|
-
flavor: string;
|
|
875
|
-
paymentMethods?: any[];
|
|
876
|
-
sessionId?: string;
|
|
877
|
-
};
|
|
878
|
-
type CreateAnalyticsEventData = Omit<AnalyticsObject, 'timestamp' | 'id'>;
|
|
879
|
-
type CreateAnalyticsEventObject = {
|
|
880
|
-
event: ANALYTICS_EVENT;
|
|
881
|
-
data: CreateAnalyticsEventData;
|
|
882
|
-
};
|
|
883
|
-
type SendAnalyticsObject = Omit<AnalyticsObject, 'timestamp' | 'component' | 'id'>;
|
|
884
|
-
|
|
885
918
|
type PlaceholderKeys = 'holderName' | 'cardNumber' | 'expiryDate' | 'expiryMonth' | 'expiryYear' | 'securityCodeThreeDigits' | 'securityCodeFourDigits' | 'password';
|
|
886
919
|
type Placeholders = Partial<Record<PlaceholderKeys, string>>;
|
|
887
920
|
interface SFError {
|
|
@@ -946,174 +979,52 @@ interface BaseElementProps {
|
|
|
946
979
|
analytics?: AnalyticsModule;
|
|
947
980
|
resources?: Resources;
|
|
948
981
|
risk?: RiskElement;
|
|
949
|
-
};
|
|
950
|
-
isDropin?: boolean;
|
|
951
|
-
}
|
|
952
|
-
interface IBaseElement {
|
|
953
|
-
data: object;
|
|
954
|
-
state: any;
|
|
955
|
-
props: any;
|
|
956
|
-
_id: string;
|
|
957
|
-
_component: any;
|
|
958
|
-
render(): ComponentChild | Error;
|
|
959
|
-
mount(domNode: HTMLElement | string): IBaseElement;
|
|
960
|
-
update(props: any): IBaseElement;
|
|
961
|
-
unmount(): IBaseElement;
|
|
962
|
-
remove(): void;
|
|
963
|
-
}
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
* Mounts an element into the dom
|
|
996
|
-
* @param domNode - Node (or selector) where we will mount the payment element
|
|
997
|
-
* @returns this - the payment element instance we mounted
|
|
998
|
-
*/
|
|
999
|
-
mount(domNode: HTMLElement | string): this;
|
|
1000
|
-
/**
|
|
1001
|
-
* Updates props, resets the internal state and remounts the element.
|
|
1002
|
-
*
|
|
1003
|
-
* @param props - props to update
|
|
1004
|
-
* @returns this - the element instance
|
|
1005
|
-
*/
|
|
1006
|
-
update(props: Partial<P>): this;
|
|
1007
|
-
/**
|
|
1008
|
-
* Unmounts a payment element from the DOM
|
|
1009
|
-
*/
|
|
1010
|
-
unmount(): this;
|
|
1011
|
-
/**
|
|
1012
|
-
* Unmounts an element and removes it from the parent instance
|
|
1013
|
-
* For "destroy" type cleanup - when you don't intend to use the component again
|
|
1014
|
-
*/
|
|
1015
|
-
remove(): void;
|
|
1016
|
-
}
|
|
1017
|
-
|
|
1018
|
-
declare abstract class UIElement<P extends UIElementProps = UIElementProps> extends BaseElement<P> implements IUIElement {
|
|
1019
|
-
protected componentRef: any;
|
|
1020
|
-
protected resources: Resources;
|
|
1021
|
-
elementRef: UIElement;
|
|
1022
|
-
static type: any;
|
|
1023
|
-
/**
|
|
1024
|
-
* Defines all txVariants that the Component supports (in case it support multiple ones besides the 'type' one)
|
|
1025
|
-
*/
|
|
1026
|
-
static txVariants: string[];
|
|
1027
|
-
constructor(checkout: ICore, props?: P);
|
|
1028
|
-
protected buildElementProps(componentProps?: P): void;
|
|
1029
|
-
protected storeElementRefOnCore(props?: P): void;
|
|
1030
|
-
isAvailable(): Promise<void>;
|
|
1031
|
-
setState(newState: object): void;
|
|
1032
|
-
showValidation(): this;
|
|
1033
|
-
setElementStatus(status: UIElementStatus, props?: any): this;
|
|
1034
|
-
setStatus(status: UIElementStatus, props?: any): this;
|
|
1035
|
-
protected onChange(): void;
|
|
1036
|
-
protected setUpAnalytics(setUpAnalyticsObj: AnalyticsInitialEvent): Promise<any>;
|
|
1037
|
-
/**
|
|
1038
|
-
* A function for all UIElements, or BaseElement, to use to create an analytics action for when it's been:
|
|
1039
|
-
* - mounted,
|
|
1040
|
-
* - a PM has been selected
|
|
1041
|
-
* - onSubmit has been called (as a result of the pay button being pressed)
|
|
1042
|
-
*
|
|
1043
|
-
* In some other cases e.g. 3DS2 components, this function is overridden to allow more specific analytics actions to be created
|
|
1044
|
-
*/
|
|
1045
|
-
protected submitAnalytics(analyticsObj: SendAnalyticsObject, uiElementProps?: any): void;
|
|
1046
|
-
submit(): void;
|
|
1047
|
-
protected makePaymentsCall(): Promise<CheckoutAdvancedFlowResponse | CheckoutSessionPaymentResponse>;
|
|
1048
|
-
private submitUsingAdvancedFlow;
|
|
1049
|
-
private submitUsingSessionsFlow;
|
|
1050
|
-
protected onComplete(state: any): void;
|
|
1051
|
-
protected handleError: (error: AdyenCheckoutError) => void;
|
|
1052
|
-
protected handleAdditionalDetails(state: AdditionalDetailsStateData): void;
|
|
1053
|
-
private makeAdditionalDetailsCall;
|
|
1054
|
-
private submitAdditionalDetailsUsingSessionsFlow;
|
|
1055
|
-
handleAction(action: PaymentAction, props?: {}): UIElement | null;
|
|
1056
|
-
protected handleOrder: (response: PaymentResponseData) => void;
|
|
1057
|
-
/**
|
|
1058
|
-
* Handles when the payment fails. The payment fails when:
|
|
1059
|
-
* - adv flow: the merchant rejects the payment due to a critical error
|
|
1060
|
-
* - adv flow: the merchant resolves the payment with a failed resultCode
|
|
1061
|
-
* - sessions: a network error occurs when making the payment
|
|
1062
|
-
* - sessions: the payment fails with a failed resultCode
|
|
1063
|
-
*
|
|
1064
|
-
* @param result
|
|
1065
|
-
*/
|
|
1066
|
-
protected handleFailedResult: (result?: PaymentResponseData) => void;
|
|
1067
|
-
protected handleSuccessResult: (result: PaymentResponseData) => void;
|
|
1068
|
-
/**
|
|
1069
|
-
* Handles a session /payments or /payments/details response.
|
|
1070
|
-
* The component will handle automatically actions, orders, and final results.
|
|
1071
|
-
*
|
|
1072
|
-
* @param rawResponse -
|
|
1073
|
-
*/
|
|
1074
|
-
protected handleResponse(rawResponse: RawPaymentResponse): void;
|
|
1075
|
-
/**
|
|
1076
|
-
* Call update on parent instance
|
|
1077
|
-
* This function exist to make safe access to the protect _parentInstance
|
|
1078
|
-
* @param options - CoreOptions
|
|
1079
|
-
*/
|
|
1080
|
-
updateParent(options?: CoreConfiguration): Promise<ICore>;
|
|
1081
|
-
setComponentRef: (ref: ComponentMethodsRef) => void;
|
|
1082
|
-
/**
|
|
1083
|
-
* Get the current validation status of the element
|
|
1084
|
-
*/
|
|
1085
|
-
get isValid(): boolean;
|
|
1086
|
-
/**
|
|
1087
|
-
* Get the element icon URL for the current environment
|
|
1088
|
-
*/
|
|
1089
|
-
get icon(): string;
|
|
1090
|
-
/**
|
|
1091
|
-
* Get the element's displayable name
|
|
1092
|
-
*/
|
|
1093
|
-
get displayName(): string;
|
|
1094
|
-
/**
|
|
1095
|
-
* Get the element accessible name, used in the aria-label of the button that controls selected payment method
|
|
1096
|
-
*/
|
|
1097
|
-
get accessibleName(): string;
|
|
1098
|
-
/**
|
|
1099
|
-
* Used to display the second line of a payment method item
|
|
1100
|
-
*/
|
|
1101
|
-
get additionalInfo(): string;
|
|
1102
|
-
/**
|
|
1103
|
-
* Return the type of an element
|
|
1104
|
-
*/
|
|
1105
|
-
get type(): string;
|
|
1106
|
-
/**
|
|
1107
|
-
* Get the payButton component for the current element
|
|
1108
|
-
*/
|
|
1109
|
-
protected payButton: (props: PayButtonFunctionProps) => h.JSX.Element;
|
|
1110
|
-
/**
|
|
1111
|
-
* Used in the Partial Orders flow.
|
|
1112
|
-
* When the Order is updated, the merchant can request new payment methods based on the new remaining amount
|
|
1113
|
-
*
|
|
1114
|
-
* @private
|
|
1115
|
-
*/
|
|
1116
|
-
protected handleAdvanceFlowPaymentMethodsUpdate(order: Order | null, amount?: PaymentAmount): Promise<ICore>;
|
|
982
|
+
};
|
|
983
|
+
isDropin?: boolean;
|
|
984
|
+
}
|
|
985
|
+
interface IBaseElement {
|
|
986
|
+
data: object;
|
|
987
|
+
state: any;
|
|
988
|
+
props: any;
|
|
989
|
+
_id: string;
|
|
990
|
+
_component: any;
|
|
991
|
+
render(): ComponentChild | Error;
|
|
992
|
+
mount(domNode: HTMLElement | string): IBaseElement;
|
|
993
|
+
update(props: any): IBaseElement;
|
|
994
|
+
unmount(): IBaseElement;
|
|
995
|
+
remove(): void;
|
|
996
|
+
}
|
|
997
|
+
|
|
998
|
+
interface RiskModuleOptions {
|
|
999
|
+
enabled: boolean;
|
|
1000
|
+
onComplete?: (data: any) => void;
|
|
1001
|
+
onError?: (error: any) => void;
|
|
1002
|
+
node?: string;
|
|
1003
|
+
}
|
|
1004
|
+
interface RiskModuleProps extends BaseElementProps {
|
|
1005
|
+
risk: RiskModuleOptions;
|
|
1006
|
+
loadingContext: string;
|
|
1007
|
+
}
|
|
1008
|
+
declare class RiskElement extends BaseElement<RiskModuleProps> {
|
|
1009
|
+
static type: string;
|
|
1010
|
+
static defaultProps: {
|
|
1011
|
+
risk: {
|
|
1012
|
+
enabled: boolean;
|
|
1013
|
+
onComplete: () => void;
|
|
1014
|
+
onError: () => void;
|
|
1015
|
+
node: string;
|
|
1016
|
+
};
|
|
1017
|
+
};
|
|
1018
|
+
private nodeRiskContainer;
|
|
1019
|
+
constructor(checkout: ICore, props?: any);
|
|
1020
|
+
formatProps(props: any): any;
|
|
1021
|
+
onComplete: (result: any) => void;
|
|
1022
|
+
onError: (error: any) => void;
|
|
1023
|
+
get isValid(): any;
|
|
1024
|
+
get data(): any;
|
|
1025
|
+
cleanUp: () => void;
|
|
1026
|
+
componentWillUnmount(): void;
|
|
1027
|
+
render(): h.JSX.Element;
|
|
1117
1028
|
}
|
|
1118
1029
|
|
|
1119
1030
|
interface GiftCardElementData {
|
|
@@ -1149,6 +1060,12 @@ interface GiftCardConfiguration extends UIElementProps {
|
|
|
1149
1060
|
fieldsLayoutComponent?: FunctionComponent<GiftcardFieldsProps>;
|
|
1150
1061
|
}
|
|
1151
1062
|
|
|
1063
|
+
type NewableComponent = new (checkout: ICore, props?: any) => UIElement;
|
|
1064
|
+
interface IRegistry {
|
|
1065
|
+
add(...items: NewableComponent[]): void;
|
|
1066
|
+
getComponent(type: string): NewableComponent | undefined;
|
|
1067
|
+
}
|
|
1068
|
+
|
|
1152
1069
|
interface CompanyDetailsSchema {
|
|
1153
1070
|
name?: string;
|
|
1154
1071
|
registrationNumber?: string;
|
|
@@ -1326,7 +1243,6 @@ declare enum TxVariants {
|
|
|
1326
1243
|
billdesk_wallet = "billdesk_wallet",
|
|
1327
1244
|
dotpay = "dotpay",
|
|
1328
1245
|
eps = "eps",
|
|
1329
|
-
ideal = "ideal",
|
|
1330
1246
|
molpay_ebanking_fpx_MY = "molpay_ebanking_fpx_MY",
|
|
1331
1247
|
molpay_ebanking_TH = "molpay_ebanking_TH",
|
|
1332
1248
|
molpay_ebanking_VN = "molpay_ebanking_VN",
|
|
@@ -1380,6 +1296,7 @@ declare enum TxVariants {
|
|
|
1380
1296
|
/** Await */
|
|
1381
1297
|
blik = "blik",
|
|
1382
1298
|
mbway = "mbway",
|
|
1299
|
+
ancv = "ancv",
|
|
1383
1300
|
upi = "upi",// also QR
|
|
1384
1301
|
upi_qr = "upi_qr",// also QR
|
|
1385
1302
|
upi_collect = "upi_collect",// also QR
|
|
@@ -1669,6 +1586,40 @@ declare class AmazonPayElement extends UIElement<AmazonPayConfiguration> {
|
|
|
1669
1586
|
render(): h.JSX.Element;
|
|
1670
1587
|
}
|
|
1671
1588
|
|
|
1589
|
+
interface ANCVConfiguration extends UIElementProps {
|
|
1590
|
+
paymentData?: any;
|
|
1591
|
+
data: ANCVDataState;
|
|
1592
|
+
onOrderRequest?: any;
|
|
1593
|
+
onOrderUpdated?: any;
|
|
1594
|
+
}
|
|
1595
|
+
interface ANCVDataState {
|
|
1596
|
+
beneficiaryId: string;
|
|
1597
|
+
}
|
|
1598
|
+
|
|
1599
|
+
declare class ANCVElement extends UIElement<ANCVConfiguration> {
|
|
1600
|
+
static type: string;
|
|
1601
|
+
/**
|
|
1602
|
+
* Formats the component data output
|
|
1603
|
+
*/
|
|
1604
|
+
formatData(): {
|
|
1605
|
+
paymentMethod: {
|
|
1606
|
+
type: string;
|
|
1607
|
+
beneficiaryId: any;
|
|
1608
|
+
};
|
|
1609
|
+
};
|
|
1610
|
+
private onOrderRequest;
|
|
1611
|
+
/**
|
|
1612
|
+
* Check if order exists, if it does Resolve.
|
|
1613
|
+
* Otherwise createOrder and then Resolve.
|
|
1614
|
+
*/
|
|
1615
|
+
createOrder: () => Promise<void>;
|
|
1616
|
+
submit(): boolean;
|
|
1617
|
+
payButton: (props: any) => h.JSX.Element;
|
|
1618
|
+
get isValid(): boolean;
|
|
1619
|
+
get displayName(): string;
|
|
1620
|
+
render(): h.JSX.Element;
|
|
1621
|
+
}
|
|
1622
|
+
|
|
1672
1623
|
declare global {
|
|
1673
1624
|
interface Window {
|
|
1674
1625
|
ApplePaySession: ApplePaySession;
|
|
@@ -1968,16 +1919,6 @@ interface AchConfiguration extends UIElementProps {
|
|
|
1968
1919
|
placeholders?: Placeholders$1;
|
|
1969
1920
|
}
|
|
1970
1921
|
|
|
1971
|
-
interface ANCVConfiguration extends UIElementProps {
|
|
1972
|
-
paymentData?: any;
|
|
1973
|
-
data: ANCVDataState;
|
|
1974
|
-
onOrderRequest?: any;
|
|
1975
|
-
onOrderUpdated?: any;
|
|
1976
|
-
}
|
|
1977
|
-
interface ANCVDataState {
|
|
1978
|
-
beneficiaryId: string;
|
|
1979
|
-
}
|
|
1980
|
-
|
|
1981
1922
|
interface BankTransferConfiguration extends UIElementProps {
|
|
1982
1923
|
reference?: string;
|
|
1983
1924
|
/**
|
|
@@ -3058,22 +2999,7 @@ declare class CashAppPay extends UIElement<CashAppPayConfiguration> {
|
|
|
3058
2999
|
risk?: RiskElement;
|
|
3059
3000
|
};
|
|
3060
3001
|
isDropin?: boolean;
|
|
3061
|
-
onChange?: (state:
|
|
3062
|
-
data: PaymentData;
|
|
3063
|
-
isValid: boolean;
|
|
3064
|
-
valid?: {
|
|
3065
|
-
[fieldKey: string]: boolean;
|
|
3066
|
-
};
|
|
3067
|
-
errors?: {
|
|
3068
|
-
[fieldKey: string]: {
|
|
3069
|
-
isValid: boolean;
|
|
3070
|
-
errorMessage: string;
|
|
3071
|
-
errorI18n: string;
|
|
3072
|
-
error: string;
|
|
3073
|
-
rootNode: HTMLElement;
|
|
3074
|
-
};
|
|
3075
|
-
};
|
|
3076
|
-
}, component: UIElement<UIElementProps>) => void;
|
|
3002
|
+
onChange?: (state: OnChangeData, component: UIElement<UIElementProps>) => void;
|
|
3077
3003
|
onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement<UIElementProps>) => void;
|
|
3078
3004
|
onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement<UIElementProps>) => void;
|
|
3079
3005
|
beforeRedirect?: (resolve: () => void, reject: () => void, redirectData: {
|
|
@@ -3081,27 +3007,10 @@ declare class CashAppPay extends UIElement<CashAppPayConfiguration> {
|
|
|
3081
3007
|
method: string;
|
|
3082
3008
|
data?: any;
|
|
3083
3009
|
}) => void;
|
|
3084
|
-
beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions:
|
|
3085
|
-
|
|
3086
|
-
billingAddress?: AddressData;
|
|
3087
|
-
deliveryAddress?: AddressData;
|
|
3088
|
-
shopperEmail?: string;
|
|
3089
|
-
shopperName?: string;
|
|
3090
|
-
}) => void;
|
|
3091
|
-
reject: () => void;
|
|
3092
|
-
}) => void;
|
|
3093
|
-
onSubmit?: (state: {
|
|
3094
|
-
data: PaymentData;
|
|
3095
|
-
isValid: boolean;
|
|
3096
|
-
}, component: UIElement<UIElementProps>, actions: {
|
|
3097
|
-
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
3098
|
-
reject: (error?: Pick<CheckoutAdvancedFlowResponse, "error">) => void;
|
|
3099
|
-
}) => void;
|
|
3010
|
+
beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions: BeforeSubmitActions) => void;
|
|
3011
|
+
onSubmit?: (state: SubmitData, component: UIElement<UIElementProps>, actions: SubmitActions) => void;
|
|
3100
3012
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
3101
|
-
onAdditionalDetails?: (state:
|
|
3102
|
-
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
3103
|
-
reject: () => void;
|
|
3104
|
-
}) => void;
|
|
3013
|
+
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement<UIElementProps>, actions: AdditionalDetailsActions) => void;
|
|
3105
3014
|
onError?: (error: AdyenCheckoutError, component?: UIElement<UIElementProps>) => void;
|
|
3106
3015
|
onOrderUpdated?: (data: {
|
|
3107
3016
|
order: Order;
|
|
@@ -3163,22 +3072,7 @@ declare class ClickToPayElement extends UIElement<ClickToPayConfiguration> {
|
|
|
3163
3072
|
risk?: RiskElement;
|
|
3164
3073
|
};
|
|
3165
3074
|
isDropin?: boolean;
|
|
3166
|
-
onChange?: (state:
|
|
3167
|
-
data: PaymentData;
|
|
3168
|
-
isValid: boolean;
|
|
3169
|
-
valid?: {
|
|
3170
|
-
[fieldKey: string]: boolean;
|
|
3171
|
-
};
|
|
3172
|
-
errors?: {
|
|
3173
|
-
[fieldKey: string]: {
|
|
3174
|
-
isValid: boolean;
|
|
3175
|
-
errorMessage: string;
|
|
3176
|
-
errorI18n: string;
|
|
3177
|
-
error: string;
|
|
3178
|
-
rootNode: HTMLElement;
|
|
3179
|
-
};
|
|
3180
|
-
};
|
|
3181
|
-
}, component: UIElement<UIElementProps>) => void;
|
|
3075
|
+
onChange?: (state: OnChangeData, component: UIElement<UIElementProps>) => void;
|
|
3182
3076
|
onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement<UIElementProps>) => void;
|
|
3183
3077
|
onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement<UIElementProps>) => void;
|
|
3184
3078
|
beforeRedirect?: (resolve: () => void, reject: () => void, redirectData: {
|
|
@@ -3186,27 +3080,10 @@ declare class ClickToPayElement extends UIElement<ClickToPayConfiguration> {
|
|
|
3186
3080
|
method: string;
|
|
3187
3081
|
data?: any;
|
|
3188
3082
|
}) => void;
|
|
3189
|
-
beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions:
|
|
3190
|
-
|
|
3191
|
-
billingAddress?: AddressData;
|
|
3192
|
-
deliveryAddress?: AddressData;
|
|
3193
|
-
shopperEmail?: string;
|
|
3194
|
-
shopperName?: string;
|
|
3195
|
-
}) => void;
|
|
3196
|
-
reject: () => void;
|
|
3197
|
-
}) => void;
|
|
3198
|
-
onSubmit?: (state: {
|
|
3199
|
-
data: PaymentData;
|
|
3200
|
-
isValid: boolean;
|
|
3201
|
-
}, component: UIElement<UIElementProps>, actions: {
|
|
3202
|
-
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
3203
|
-
reject: (error?: Pick<CheckoutAdvancedFlowResponse, "error">) => void;
|
|
3204
|
-
}) => void;
|
|
3083
|
+
beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions: BeforeSubmitActions) => void;
|
|
3084
|
+
onSubmit?: (state: SubmitData, component: UIElement<UIElementProps>, actions: SubmitActions) => void;
|
|
3205
3085
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
3206
|
-
onAdditionalDetails?: (state:
|
|
3207
|
-
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
3208
|
-
reject: () => void;
|
|
3209
|
-
}) => void;
|
|
3086
|
+
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement<UIElementProps>, actions: AdditionalDetailsActions) => void;
|
|
3210
3087
|
onError?: (error: AdyenCheckoutError, component?: UIElement<UIElementProps>) => void;
|
|
3211
3088
|
onOrderUpdated?: (data: {
|
|
3212
3089
|
order: Order;
|
|
@@ -3318,46 +3195,51 @@ declare class BancontactElement extends CardElement {
|
|
|
3318
3195
|
onReady?(): void;
|
|
3319
3196
|
onTimeout?(error: TimeoutError): void;
|
|
3320
3197
|
};
|
|
3321
|
-
|
|
3322
|
-
|
|
3198
|
+
autoFocus?: boolean;
|
|
3199
|
+
billingAddressAllowedCountries?: string[]; /**
|
|
3200
|
+
* Force type (only for the Dropin is type automatically set to 'bcmc')
|
|
3201
|
+
* - this will bypass the regEx brand detection that SF normally tries to carry out when the first few digits are entered in the PAN
|
|
3202
|
+
*/
|
|
3203
|
+
billingAddressMode?: "none" | "full" | "partial";
|
|
3204
|
+
billingAddressRequiredFields?: string[];
|
|
3323
3205
|
brands?: string[];
|
|
3324
|
-
positionHolderNameOnTop?: boolean;
|
|
3325
|
-
showBrandIcon?: boolean;
|
|
3326
|
-
showContextualElement?: boolean;
|
|
3327
|
-
hideCVC?: boolean;
|
|
3328
|
-
hasHolderName?: boolean;
|
|
3329
|
-
placeholders?: Partial<Record<"cardNumber" | "expiryDate" | "holderName" | "expiryMonth" | "expiryYear" | "securityCodeThreeDigits" | "securityCodeFourDigits" | "password", string>>;
|
|
3330
3206
|
challengeWindowSize?: "02" | "01" | "03" | "04" | "05";
|
|
3331
3207
|
data?: {
|
|
3332
3208
|
holderName?: string;
|
|
3333
3209
|
billingAddress?: Partial<AddressData>;
|
|
3334
3210
|
};
|
|
3335
|
-
|
|
3211
|
+
_disableClickToPay?: boolean;
|
|
3212
|
+
disableIOSArrowKeys?: boolean;
|
|
3213
|
+
disclaimerMessage?: DisclaimerMsgObject;
|
|
3214
|
+
doBinLookup?: boolean;
|
|
3215
|
+
expiryMonth?: string;
|
|
3216
|
+
exposeExpiryDate?: boolean;
|
|
3217
|
+
forceCompat?: boolean;
|
|
3218
|
+
fundingSource?: "debit" | "credit";
|
|
3219
|
+
hasHolderName?: boolean;
|
|
3220
|
+
hideCVC?: boolean;
|
|
3221
|
+
id?: string;
|
|
3222
|
+
keypadFix?: boolean;
|
|
3223
|
+
lastFour?: string;
|
|
3224
|
+
legacyInputMode?: boolean;
|
|
3225
|
+
maskSecurityCode?: boolean;
|
|
3226
|
+
minimumExpiryDate?: string[];
|
|
3227
|
+
name?: string;
|
|
3228
|
+
onBinLookup?: (event: CbObjOnBinLookup) => void;
|
|
3229
|
+
onBinValue?: (event: CbObjOnBinValue) => void;
|
|
3230
|
+
onBlur?: (event: CbObjOnFocus | ComponentFocusObject) => void;
|
|
3231
|
+
onBrand?: (event: CbObjOnBrand) => void;
|
|
3336
3232
|
onConfigSuccess?: (event: CbObjOnConfigSuccess) => void;
|
|
3337
3233
|
onFieldValid?: (event: CbObjOnFieldValid) => void;
|
|
3338
|
-
onBrand?: (event: CbObjOnBrand) => void;
|
|
3339
3234
|
onFocus?: (event: CbObjOnFocus | ComponentFocusObject) => void;
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
billingAddressRequiredFields?: string[];
|
|
3346
|
-
billingAddressAllowedCountries?: string[];
|
|
3347
|
-
id?: string;
|
|
3235
|
+
onLoad?: (event: CbObjOnLoad) => void;
|
|
3236
|
+
placeholders?: Partial<Record<"cardNumber" | "expiryDate" | "holderName" | "expiryMonth" | "expiryYear" | "securityCodeThreeDigits" | "securityCodeFourDigits" | "password", string>>;
|
|
3237
|
+
positionHolderNameOnTop?: boolean;
|
|
3238
|
+
showBrandIcon?: boolean;
|
|
3239
|
+
showContextualElement?: boolean;
|
|
3348
3240
|
showInstallmentAmounts?: boolean;
|
|
3349
|
-
legacyInputMode?: boolean;
|
|
3350
|
-
minimumExpiryDate?: string[];
|
|
3351
|
-
autoFocus?: boolean;
|
|
3352
|
-
maskSecurityCode?: boolean;
|
|
3353
|
-
doBinLookup?: boolean;
|
|
3354
|
-
disableIOSArrowKeys?: boolean;
|
|
3355
|
-
disclaimerMessage?: DisclaimerMsgObject;
|
|
3356
3241
|
styles?: StylesObject;
|
|
3357
3242
|
supportedShopperInteractions?: string[];
|
|
3358
|
-
keypadFix?: boolean;
|
|
3359
|
-
expiryMonth?: string;
|
|
3360
|
-
exposeExpiryDate?: boolean;
|
|
3361
3243
|
order?: Order;
|
|
3362
3244
|
modules?: {
|
|
3363
3245
|
srPanel?: SRPanel;
|
|
@@ -3366,22 +3248,7 @@ declare class BancontactElement extends CardElement {
|
|
|
3366
3248
|
risk?: RiskElement;
|
|
3367
3249
|
};
|
|
3368
3250
|
isDropin?: boolean;
|
|
3369
|
-
onChange?: (state:
|
|
3370
|
-
data: PaymentData;
|
|
3371
|
-
isValid: boolean;
|
|
3372
|
-
valid?: {
|
|
3373
|
-
[fieldKey: string]: boolean;
|
|
3374
|
-
};
|
|
3375
|
-
errors?: {
|
|
3376
|
-
[fieldKey: string]: {
|
|
3377
|
-
isValid: boolean;
|
|
3378
|
-
errorMessage: string;
|
|
3379
|
-
errorI18n: string;
|
|
3380
|
-
error: string;
|
|
3381
|
-
rootNode: HTMLElement;
|
|
3382
|
-
};
|
|
3383
|
-
};
|
|
3384
|
-
}, component: UIElement<UIElementProps>) => void;
|
|
3251
|
+
onChange?: (state: OnChangeData, component: UIElement<UIElementProps>) => void;
|
|
3385
3252
|
onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement<UIElementProps>) => void;
|
|
3386
3253
|
onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement<UIElementProps>) => void;
|
|
3387
3254
|
beforeRedirect?: (resolve: () => void, reject: () => void, redirectData: {
|
|
@@ -3389,27 +3256,10 @@ declare class BancontactElement extends CardElement {
|
|
|
3389
3256
|
method: string;
|
|
3390
3257
|
data?: any;
|
|
3391
3258
|
}) => void;
|
|
3392
|
-
beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions:
|
|
3393
|
-
|
|
3394
|
-
billingAddress?: AddressData;
|
|
3395
|
-
deliveryAddress?: AddressData;
|
|
3396
|
-
shopperEmail?: string;
|
|
3397
|
-
shopperName?: string;
|
|
3398
|
-
}) => void;
|
|
3399
|
-
reject: () => void;
|
|
3400
|
-
}) => void;
|
|
3401
|
-
onSubmit?: (state: {
|
|
3402
|
-
data: PaymentData;
|
|
3403
|
-
isValid: boolean;
|
|
3404
|
-
}, component: UIElement<UIElementProps>, actions: {
|
|
3405
|
-
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
3406
|
-
reject: (error?: Pick<CheckoutAdvancedFlowResponse, "error">) => void;
|
|
3407
|
-
}) => void;
|
|
3259
|
+
beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions: BeforeSubmitActions) => void;
|
|
3260
|
+
onSubmit?: (state: SubmitData, component: UIElement<UIElementProps>, actions: SubmitActions) => void;
|
|
3408
3261
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
3409
|
-
onAdditionalDetails?: (state:
|
|
3410
|
-
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
3411
|
-
reject: () => void;
|
|
3412
|
-
}) => void;
|
|
3262
|
+
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement<UIElementProps>, actions: AdditionalDetailsActions) => void;
|
|
3413
3263
|
onError?: (error: AdyenCheckoutError, component?: UIElement<UIElementProps>) => void;
|
|
3414
3264
|
onOrderUpdated?: (data: {
|
|
3415
3265
|
order: Order;
|
|
@@ -3425,7 +3275,6 @@ declare class BancontactElement extends CardElement {
|
|
|
3425
3275
|
isStoredPaymentMethod?: boolean;
|
|
3426
3276
|
oneClick?: boolean;
|
|
3427
3277
|
statusType?: "custom" | "loading" | "redirect";
|
|
3428
|
-
name?: string;
|
|
3429
3278
|
amount?: PaymentAmount;
|
|
3430
3279
|
secondaryAmount?: PaymentAmountExtended;
|
|
3431
3280
|
showPayButton?: boolean;
|
|
@@ -3558,10 +3407,6 @@ declare class FacilyPay12x extends OpenInvoiceContainer {
|
|
|
3558
3407
|
formatProps(props: any): any;
|
|
3559
3408
|
}
|
|
3560
3409
|
|
|
3561
|
-
declare class IdealElement extends IssuerListContainer {
|
|
3562
|
-
static type: TxVariants;
|
|
3563
|
-
}
|
|
3564
|
-
|
|
3565
3410
|
declare class CustomCard extends UIElement<CustomCardConfiguration> {
|
|
3566
3411
|
static type: TxVariants;
|
|
3567
3412
|
static analyticsType: string;
|
|
@@ -3586,22 +3431,7 @@ declare class CustomCard extends UIElement<CustomCardConfiguration> {
|
|
|
3586
3431
|
onFocus?: (event: CbObjOnFocus | ComponentFocusObject) => void;
|
|
3587
3432
|
order?: Order;
|
|
3588
3433
|
id?: string;
|
|
3589
|
-
onChange?: (state:
|
|
3590
|
-
data: PaymentData;
|
|
3591
|
-
isValid: boolean;
|
|
3592
|
-
valid?: {
|
|
3593
|
-
[fieldKey: string]: boolean;
|
|
3594
|
-
};
|
|
3595
|
-
errors?: {
|
|
3596
|
-
[fieldKey: string]: {
|
|
3597
|
-
isValid: boolean;
|
|
3598
|
-
errorMessage: string;
|
|
3599
|
-
errorI18n: string;
|
|
3600
|
-
error: string;
|
|
3601
|
-
rootNode: HTMLElement;
|
|
3602
|
-
};
|
|
3603
|
-
};
|
|
3604
|
-
}, component: UIElement<UIElementProps>) => void;
|
|
3434
|
+
onChange?: (state: OnChangeData, component: UIElement<UIElementProps>) => void;
|
|
3605
3435
|
amount?: PaymentAmount;
|
|
3606
3436
|
secondaryAmount?: PaymentAmountExtended;
|
|
3607
3437
|
environment?: string;
|
|
@@ -3621,27 +3451,10 @@ declare class CustomCard extends UIElement<CustomCardConfiguration> {
|
|
|
3621
3451
|
method: string;
|
|
3622
3452
|
data?: any;
|
|
3623
3453
|
}) => void;
|
|
3624
|
-
beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions:
|
|
3625
|
-
|
|
3626
|
-
billingAddress?: AddressData;
|
|
3627
|
-
deliveryAddress?: AddressData;
|
|
3628
|
-
shopperEmail?: string;
|
|
3629
|
-
shopperName?: string;
|
|
3630
|
-
}) => void;
|
|
3631
|
-
reject: () => void;
|
|
3632
|
-
}) => void;
|
|
3633
|
-
onSubmit?: (state: {
|
|
3634
|
-
data: PaymentData;
|
|
3635
|
-
isValid: boolean;
|
|
3636
|
-
}, component: UIElement<UIElementProps>, actions: {
|
|
3637
|
-
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
3638
|
-
reject: (error?: Pick<CheckoutAdvancedFlowResponse, "error">) => void;
|
|
3639
|
-
}) => void;
|
|
3454
|
+
beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions: BeforeSubmitActions) => void;
|
|
3455
|
+
onSubmit?: (state: SubmitData, component: UIElement<UIElementProps>, actions: SubmitActions) => void;
|
|
3640
3456
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
3641
|
-
onAdditionalDetails?: (state:
|
|
3642
|
-
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
3643
|
-
reject: () => void;
|
|
3644
|
-
}) => void;
|
|
3457
|
+
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement<UIElementProps>, actions: AdditionalDetailsActions) => void;
|
|
3645
3458
|
onError?: (error: AdyenCheckoutError, component?: UIElement<UIElementProps>) => void;
|
|
3646
3459
|
onOrderUpdated?: (data: {
|
|
3647
3460
|
order: Order;
|
|
@@ -3668,25 +3481,26 @@ declare class CustomCard extends UIElement<CustomCardConfiguration> {
|
|
|
3668
3481
|
onLoad?: (event: CbObjOnLoad) => void;
|
|
3669
3482
|
placeholders?: Partial<Record<"cardNumber" | "expiryDate" | "holderName" | "expiryMonth" | "expiryYear" | "securityCodeThreeDigits" | "securityCodeFourDigits" | "password", string>>;
|
|
3670
3483
|
expiryMonth?: string;
|
|
3484
|
+
billingAddressMode?: "none" | "full" | "partial";
|
|
3671
3485
|
brands?: string[];
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3486
|
+
disableIOSArrowKeys?: boolean;
|
|
3487
|
+
disclaimerMessage?: DisclaimerMsgObject;
|
|
3488
|
+
doBinLookup?: boolean;
|
|
3489
|
+
exposeExpiryDate?: boolean;
|
|
3490
|
+
forceCompat?: boolean;
|
|
3491
|
+
keypadFix?: boolean;
|
|
3678
3492
|
lastFour?: string;
|
|
3679
|
-
billingAddressMode?: "none" | "full" | "partial";
|
|
3680
3493
|
legacyInputMode?: boolean;
|
|
3681
|
-
minimumExpiryDate?: string[];
|
|
3682
3494
|
maskSecurityCode?: boolean;
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3495
|
+
minimumExpiryDate?: string[];
|
|
3496
|
+
onBinLookup?: (event: CbObjOnBinLookup) => void;
|
|
3497
|
+
onBinValue?: (event: CbObjOnBinValue) => void;
|
|
3498
|
+
onBrand?: (event: CbObjOnBrand) => void;
|
|
3499
|
+
onConfigSuccess?: (event: CbObjOnConfigSuccess) => void;
|
|
3500
|
+
onFieldValid?: (event: CbObjOnFieldValid) => void;
|
|
3501
|
+
showStoreDetailsCheckbox?: boolean;
|
|
3686
3502
|
styles?: StylesObject;
|
|
3687
3503
|
supportedShopperInteractions?: string[];
|
|
3688
|
-
keypadFix?: boolean;
|
|
3689
|
-
exposeExpiryDate?: boolean;
|
|
3690
3504
|
onValidationError?: (validationErrors: ValidationError[]) => void;
|
|
3691
3505
|
};
|
|
3692
3506
|
/**
|
|
@@ -3769,22 +3583,7 @@ declare class WeChatPayElement extends QRLoaderContainer {
|
|
|
3769
3583
|
risk?: RiskElement;
|
|
3770
3584
|
};
|
|
3771
3585
|
isDropin?: boolean;
|
|
3772
|
-
onChange?: (state:
|
|
3773
|
-
data: PaymentData;
|
|
3774
|
-
isValid: boolean;
|
|
3775
|
-
valid?: {
|
|
3776
|
-
[fieldKey: string]: boolean;
|
|
3777
|
-
};
|
|
3778
|
-
errors?: {
|
|
3779
|
-
[fieldKey: string]: {
|
|
3780
|
-
isValid: boolean;
|
|
3781
|
-
errorMessage: string;
|
|
3782
|
-
errorI18n: string;
|
|
3783
|
-
error: string;
|
|
3784
|
-
rootNode: HTMLElement;
|
|
3785
|
-
};
|
|
3786
|
-
};
|
|
3787
|
-
}, component: UIElement<UIElementProps>) => void;
|
|
3586
|
+
onChange?: (state: OnChangeData, component: UIElement<UIElementProps>) => void;
|
|
3788
3587
|
onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement<UIElementProps>) => void;
|
|
3789
3588
|
onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement<UIElementProps>) => void;
|
|
3790
3589
|
beforeRedirect?: (resolve: () => void, reject: () => void, redirectData: {
|
|
@@ -3792,27 +3591,10 @@ declare class WeChatPayElement extends QRLoaderContainer {
|
|
|
3792
3591
|
method: string;
|
|
3793
3592
|
data?: any;
|
|
3794
3593
|
}) => void;
|
|
3795
|
-
beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions:
|
|
3796
|
-
|
|
3797
|
-
billingAddress?: AddressData;
|
|
3798
|
-
deliveryAddress?: AddressData;
|
|
3799
|
-
shopperEmail?: string;
|
|
3800
|
-
shopperName?: string;
|
|
3801
|
-
}) => void;
|
|
3802
|
-
reject: () => void;
|
|
3803
|
-
}) => void;
|
|
3804
|
-
onSubmit?: (state: {
|
|
3805
|
-
data: PaymentData;
|
|
3806
|
-
isValid: boolean;
|
|
3807
|
-
}, component: UIElement<UIElementProps>, actions: {
|
|
3808
|
-
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
3809
|
-
reject: (error?: Pick<CheckoutAdvancedFlowResponse, "error">) => void;
|
|
3810
|
-
}) => void;
|
|
3594
|
+
beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions: BeforeSubmitActions) => void;
|
|
3595
|
+
onSubmit?: (state: SubmitData, component: UIElement<UIElementProps>, actions: SubmitActions) => void;
|
|
3811
3596
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
3812
|
-
onAdditionalDetails?: (state:
|
|
3813
|
-
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
3814
|
-
reject: () => void;
|
|
3815
|
-
}) => void;
|
|
3597
|
+
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement<UIElementProps>, actions: AdditionalDetailsActions) => void;
|
|
3816
3598
|
onError?: (error: AdyenCheckoutError, component?: UIElement<UIElementProps>) => void;
|
|
3817
3599
|
onOrderUpdated?: (data: {
|
|
3818
3600
|
order: Order;
|
|
@@ -3868,22 +3650,7 @@ declare class PayNowElement extends QRLoaderContainer {
|
|
|
3868
3650
|
risk?: RiskElement;
|
|
3869
3651
|
};
|
|
3870
3652
|
isDropin?: boolean;
|
|
3871
|
-
onChange?: (state:
|
|
3872
|
-
data: PaymentData;
|
|
3873
|
-
isValid: boolean;
|
|
3874
|
-
valid?: {
|
|
3875
|
-
[fieldKey: string]: boolean;
|
|
3876
|
-
};
|
|
3877
|
-
errors?: {
|
|
3878
|
-
[fieldKey: string]: {
|
|
3879
|
-
isValid: boolean;
|
|
3880
|
-
errorMessage: string;
|
|
3881
|
-
errorI18n: string;
|
|
3882
|
-
error: string;
|
|
3883
|
-
rootNode: HTMLElement;
|
|
3884
|
-
};
|
|
3885
|
-
};
|
|
3886
|
-
}, component: UIElement<UIElementProps>) => void;
|
|
3653
|
+
onChange?: (state: OnChangeData, component: UIElement<UIElementProps>) => void;
|
|
3887
3654
|
onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement<UIElementProps>) => void;
|
|
3888
3655
|
onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement<UIElementProps>) => void;
|
|
3889
3656
|
beforeRedirect?: (resolve: () => void, reject: () => void, redirectData: {
|
|
@@ -3891,27 +3658,10 @@ declare class PayNowElement extends QRLoaderContainer {
|
|
|
3891
3658
|
method: string;
|
|
3892
3659
|
data?: any;
|
|
3893
3660
|
}) => void;
|
|
3894
|
-
beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions:
|
|
3895
|
-
|
|
3896
|
-
billingAddress?: AddressData;
|
|
3897
|
-
deliveryAddress?: AddressData;
|
|
3898
|
-
shopperEmail?: string;
|
|
3899
|
-
shopperName?: string;
|
|
3900
|
-
}) => void;
|
|
3901
|
-
reject: () => void;
|
|
3902
|
-
}) => void;
|
|
3903
|
-
onSubmit?: (state: {
|
|
3904
|
-
data: PaymentData;
|
|
3905
|
-
isValid: boolean;
|
|
3906
|
-
}, component: UIElement<UIElementProps>, actions: {
|
|
3907
|
-
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
3908
|
-
reject: (error?: Pick<CheckoutAdvancedFlowResponse, "error">) => void;
|
|
3909
|
-
}) => void;
|
|
3661
|
+
beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions: BeforeSubmitActions) => void;
|
|
3662
|
+
onSubmit?: (state: SubmitData, component: UIElement<UIElementProps>, actions: SubmitActions) => void;
|
|
3910
3663
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
3911
|
-
onAdditionalDetails?: (state:
|
|
3912
|
-
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
3913
|
-
reject: () => void;
|
|
3914
|
-
}) => void;
|
|
3664
|
+
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement<UIElementProps>, actions: AdditionalDetailsActions) => void;
|
|
3915
3665
|
onError?: (error: AdyenCheckoutError, component?: UIElement<UIElementProps>) => void;
|
|
3916
3666
|
onOrderUpdated?: (data: {
|
|
3917
3667
|
order: Order;
|
|
@@ -3968,22 +3718,7 @@ declare class BCMCMobileElement extends QRLoaderContainer {
|
|
|
3968
3718
|
risk?: RiskElement;
|
|
3969
3719
|
};
|
|
3970
3720
|
isDropin?: boolean;
|
|
3971
|
-
onChange?: (state:
|
|
3972
|
-
data: PaymentData;
|
|
3973
|
-
isValid: boolean;
|
|
3974
|
-
valid?: {
|
|
3975
|
-
[fieldKey: string]: boolean;
|
|
3976
|
-
};
|
|
3977
|
-
errors?: {
|
|
3978
|
-
[fieldKey: string]: {
|
|
3979
|
-
isValid: boolean;
|
|
3980
|
-
errorMessage: string;
|
|
3981
|
-
errorI18n: string;
|
|
3982
|
-
error: string;
|
|
3983
|
-
rootNode: HTMLElement;
|
|
3984
|
-
};
|
|
3985
|
-
};
|
|
3986
|
-
}, component: UIElement<UIElementProps>) => void;
|
|
3721
|
+
onChange?: (state: OnChangeData, component: UIElement<UIElementProps>) => void;
|
|
3987
3722
|
onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement<UIElementProps>) => void;
|
|
3988
3723
|
onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement<UIElementProps>) => void;
|
|
3989
3724
|
beforeRedirect?: (resolve: () => void, reject: () => void, redirectData: {
|
|
@@ -3991,27 +3726,10 @@ declare class BCMCMobileElement extends QRLoaderContainer {
|
|
|
3991
3726
|
method: string;
|
|
3992
3727
|
data?: any;
|
|
3993
3728
|
}) => void;
|
|
3994
|
-
beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions:
|
|
3995
|
-
|
|
3996
|
-
billingAddress?: AddressData;
|
|
3997
|
-
deliveryAddress?: AddressData;
|
|
3998
|
-
shopperEmail?: string;
|
|
3999
|
-
shopperName?: string;
|
|
4000
|
-
}) => void;
|
|
4001
|
-
reject: () => void;
|
|
4002
|
-
}) => void;
|
|
4003
|
-
onSubmit?: (state: {
|
|
4004
|
-
data: PaymentData;
|
|
4005
|
-
isValid: boolean;
|
|
4006
|
-
}, component: UIElement<UIElementProps>, actions: {
|
|
4007
|
-
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
4008
|
-
reject: (error?: Pick<CheckoutAdvancedFlowResponse, "error">) => void;
|
|
4009
|
-
}) => void;
|
|
3729
|
+
beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions: BeforeSubmitActions) => void;
|
|
3730
|
+
onSubmit?: (state: SubmitData, component: UIElement<UIElementProps>, actions: SubmitActions) => void;
|
|
4010
3731
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
4011
|
-
onAdditionalDetails?: (state:
|
|
4012
|
-
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
4013
|
-
reject: () => void;
|
|
4014
|
-
}) => void;
|
|
3732
|
+
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement<UIElementProps>, actions: AdditionalDetailsActions) => void;
|
|
4015
3733
|
onError?: (error: AdyenCheckoutError, component?: UIElement<UIElementProps>) => void;
|
|
4016
3734
|
onOrderUpdated?: (data: {
|
|
4017
3735
|
order: Order;
|
|
@@ -4085,22 +3803,7 @@ declare class DragonpayElement extends UIElement<DragonpayConfiguraton> {
|
|
|
4085
3803
|
risk?: RiskElement;
|
|
4086
3804
|
};
|
|
4087
3805
|
isDropin?: boolean;
|
|
4088
|
-
onChange?: (state:
|
|
4089
|
-
data: PaymentData;
|
|
4090
|
-
isValid: boolean;
|
|
4091
|
-
valid?: {
|
|
4092
|
-
[fieldKey: string]: boolean;
|
|
4093
|
-
};
|
|
4094
|
-
errors?: {
|
|
4095
|
-
[fieldKey: string]: {
|
|
4096
|
-
isValid: boolean;
|
|
4097
|
-
errorMessage: string;
|
|
4098
|
-
errorI18n: string;
|
|
4099
|
-
error: string;
|
|
4100
|
-
rootNode: HTMLElement;
|
|
4101
|
-
};
|
|
4102
|
-
};
|
|
4103
|
-
}, component: UIElement<UIElementProps>) => void;
|
|
3806
|
+
onChange?: (state: OnChangeData, component: UIElement<UIElementProps>) => void;
|
|
4104
3807
|
onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement<UIElementProps>) => void;
|
|
4105
3808
|
onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement<UIElementProps>) => void;
|
|
4106
3809
|
beforeRedirect?: (resolve: () => void, reject: () => void, redirectData: {
|
|
@@ -4108,27 +3811,10 @@ declare class DragonpayElement extends UIElement<DragonpayConfiguraton> {
|
|
|
4108
3811
|
method: string;
|
|
4109
3812
|
data?: any;
|
|
4110
3813
|
}) => void;
|
|
4111
|
-
beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions:
|
|
4112
|
-
|
|
4113
|
-
billingAddress?: AddressData;
|
|
4114
|
-
deliveryAddress?: AddressData;
|
|
4115
|
-
shopperEmail?: string;
|
|
4116
|
-
shopperName?: string;
|
|
4117
|
-
}) => void;
|
|
4118
|
-
reject: () => void;
|
|
4119
|
-
}) => void;
|
|
4120
|
-
onSubmit?: (state: {
|
|
4121
|
-
data: PaymentData;
|
|
4122
|
-
isValid: boolean;
|
|
4123
|
-
}, component: UIElement<UIElementProps>, actions: {
|
|
4124
|
-
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
4125
|
-
reject: (error?: Pick<CheckoutAdvancedFlowResponse, "error">) => void;
|
|
4126
|
-
}) => void;
|
|
3814
|
+
beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions: BeforeSubmitActions) => void;
|
|
3815
|
+
onSubmit?: (state: SubmitData, component: UIElement<UIElementProps>, actions: SubmitActions) => void;
|
|
4127
3816
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
4128
|
-
onAdditionalDetails?: (state:
|
|
4129
|
-
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
4130
|
-
reject: () => void;
|
|
4131
|
-
}) => void;
|
|
3817
|
+
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement<UIElementProps>, actions: AdditionalDetailsActions) => void;
|
|
4132
3818
|
onError?: (error: AdyenCheckoutError, component?: UIElement<UIElementProps>) => void;
|
|
4133
3819
|
onOrderUpdated?: (data: {
|
|
4134
3820
|
order: Order;
|
|
@@ -4294,22 +3980,7 @@ declare class SwishElement extends QRLoaderContainer {
|
|
|
4294
3980
|
risk?: RiskElement;
|
|
4295
3981
|
};
|
|
4296
3982
|
isDropin?: boolean;
|
|
4297
|
-
onChange?: (state:
|
|
4298
|
-
data: PaymentData;
|
|
4299
|
-
isValid: boolean;
|
|
4300
|
-
valid?: {
|
|
4301
|
-
[fieldKey: string]: boolean;
|
|
4302
|
-
};
|
|
4303
|
-
errors?: {
|
|
4304
|
-
[fieldKey: string]: {
|
|
4305
|
-
isValid: boolean;
|
|
4306
|
-
errorMessage: string;
|
|
4307
|
-
errorI18n: string;
|
|
4308
|
-
error: string;
|
|
4309
|
-
rootNode: HTMLElement;
|
|
4310
|
-
};
|
|
4311
|
-
};
|
|
4312
|
-
}, component: UIElement<UIElementProps>) => void;
|
|
3983
|
+
onChange?: (state: OnChangeData, component: UIElement<UIElementProps>) => void;
|
|
4313
3984
|
onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement<UIElementProps>) => void;
|
|
4314
3985
|
onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement<UIElementProps>) => void;
|
|
4315
3986
|
beforeRedirect?: (resolve: () => void, reject: () => void, redirectData: {
|
|
@@ -4317,27 +3988,10 @@ declare class SwishElement extends QRLoaderContainer {
|
|
|
4317
3988
|
method: string;
|
|
4318
3989
|
data?: any;
|
|
4319
3990
|
}) => void;
|
|
4320
|
-
beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions:
|
|
4321
|
-
|
|
4322
|
-
billingAddress?: AddressData;
|
|
4323
|
-
deliveryAddress?: AddressData;
|
|
4324
|
-
shopperEmail?: string;
|
|
4325
|
-
shopperName?: string;
|
|
4326
|
-
}) => void;
|
|
4327
|
-
reject: () => void;
|
|
4328
|
-
}) => void;
|
|
4329
|
-
onSubmit?: (state: {
|
|
4330
|
-
data: PaymentData;
|
|
4331
|
-
isValid: boolean;
|
|
4332
|
-
}, component: UIElement<UIElementProps>, actions: {
|
|
4333
|
-
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
4334
|
-
reject: (error?: Pick<CheckoutAdvancedFlowResponse, "error">) => void;
|
|
4335
|
-
}) => void;
|
|
3991
|
+
beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions: BeforeSubmitActions) => void;
|
|
3992
|
+
onSubmit?: (state: SubmitData, component: UIElement<UIElementProps>, actions: SubmitActions) => void;
|
|
4336
3993
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
4337
|
-
onAdditionalDetails?: (state:
|
|
4338
|
-
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
4339
|
-
reject: () => void;
|
|
4340
|
-
}) => void;
|
|
3994
|
+
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement<UIElementProps>, actions: AdditionalDetailsActions) => void;
|
|
4341
3995
|
onError?: (error: AdyenCheckoutError, component?: UIElement<UIElementProps>) => void;
|
|
4342
3996
|
onOrderUpdated?: (data: {
|
|
4343
3997
|
order: Order;
|
|
@@ -4387,22 +4041,7 @@ declare class AchElement extends UIElement<AchConfiguration> {
|
|
|
4387
4041
|
risk?: RiskElement;
|
|
4388
4042
|
};
|
|
4389
4043
|
isDropin?: boolean;
|
|
4390
|
-
onChange?: (state:
|
|
4391
|
-
data: PaymentData;
|
|
4392
|
-
isValid: boolean;
|
|
4393
|
-
valid?: {
|
|
4394
|
-
[fieldKey: string]: boolean;
|
|
4395
|
-
};
|
|
4396
|
-
errors?: {
|
|
4397
|
-
[fieldKey: string]: {
|
|
4398
|
-
isValid: boolean;
|
|
4399
|
-
errorMessage: string;
|
|
4400
|
-
errorI18n: string;
|
|
4401
|
-
error: string;
|
|
4402
|
-
rootNode: HTMLElement;
|
|
4403
|
-
};
|
|
4404
|
-
};
|
|
4405
|
-
}, component: UIElement<UIElementProps>) => void;
|
|
4044
|
+
onChange?: (state: OnChangeData, component: UIElement<UIElementProps>) => void;
|
|
4406
4045
|
onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement<UIElementProps>) => void;
|
|
4407
4046
|
onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement<UIElementProps>) => void;
|
|
4408
4047
|
beforeRedirect?: (resolve: () => void, reject: () => void, redirectData: {
|
|
@@ -4410,27 +4049,10 @@ declare class AchElement extends UIElement<AchConfiguration> {
|
|
|
4410
4049
|
method: string;
|
|
4411
4050
|
data?: any;
|
|
4412
4051
|
}) => void;
|
|
4413
|
-
beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions:
|
|
4414
|
-
|
|
4415
|
-
billingAddress?: AddressData;
|
|
4416
|
-
deliveryAddress?: AddressData;
|
|
4417
|
-
shopperEmail?: string;
|
|
4418
|
-
shopperName?: string;
|
|
4419
|
-
}) => void;
|
|
4420
|
-
reject: () => void;
|
|
4421
|
-
}) => void;
|
|
4422
|
-
onSubmit?: (state: {
|
|
4423
|
-
data: PaymentData;
|
|
4424
|
-
isValid: boolean;
|
|
4425
|
-
}, component: UIElement<UIElementProps>, actions: {
|
|
4426
|
-
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
4427
|
-
reject: (error?: Pick<CheckoutAdvancedFlowResponse, "error">) => void;
|
|
4428
|
-
}) => void;
|
|
4052
|
+
beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions: BeforeSubmitActions) => void;
|
|
4053
|
+
onSubmit?: (state: SubmitData, component: UIElement<UIElementProps>, actions: SubmitActions) => void;
|
|
4429
4054
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
4430
|
-
onAdditionalDetails?: (state:
|
|
4431
|
-
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
4432
|
-
reject: () => void;
|
|
4433
|
-
}) => void;
|
|
4055
|
+
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement<UIElementProps>, actions: AdditionalDetailsActions) => void;
|
|
4434
4056
|
onError?: (error: AdyenCheckoutError, component?: UIElement<UIElementProps>) => void;
|
|
4435
4057
|
onOrderUpdated?: (data: {
|
|
4436
4058
|
order: Order;
|
|
@@ -4441,7 +4063,9 @@ declare class AchElement extends UIElement<AchConfiguration> {
|
|
|
4441
4063
|
}) => void;
|
|
4442
4064
|
environment?: string;
|
|
4443
4065
|
session?: Session;
|
|
4444
|
-
onComplete?: (state: any, element: UIElement<UIElementProps>) => void;
|
|
4066
|
+
onComplete?: (state: any, element: UIElement<UIElementProps>) => void; /**
|
|
4067
|
+
* Formats the component data output
|
|
4068
|
+
*/
|
|
4445
4069
|
isInstantPayment?: boolean;
|
|
4446
4070
|
isStoredPaymentMethod?: boolean;
|
|
4447
4071
|
oneClick?: boolean;
|
|
@@ -4745,22 +4369,7 @@ declare class PromptPayElement extends QRLoaderContainer {
|
|
|
4745
4369
|
risk?: RiskElement;
|
|
4746
4370
|
};
|
|
4747
4371
|
isDropin?: boolean;
|
|
4748
|
-
onChange?: (state:
|
|
4749
|
-
data: PaymentData;
|
|
4750
|
-
isValid: boolean;
|
|
4751
|
-
valid?: {
|
|
4752
|
-
[fieldKey: string]: boolean;
|
|
4753
|
-
};
|
|
4754
|
-
errors?: {
|
|
4755
|
-
[fieldKey: string]: {
|
|
4756
|
-
isValid: boolean;
|
|
4757
|
-
errorMessage: string;
|
|
4758
|
-
errorI18n: string;
|
|
4759
|
-
error: string;
|
|
4760
|
-
rootNode: HTMLElement;
|
|
4761
|
-
};
|
|
4762
|
-
};
|
|
4763
|
-
}, component: UIElement<UIElementProps>) => void;
|
|
4372
|
+
onChange?: (state: OnChangeData, component: UIElement<UIElementProps>) => void;
|
|
4764
4373
|
onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement<UIElementProps>) => void;
|
|
4765
4374
|
onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement<UIElementProps>) => void;
|
|
4766
4375
|
beforeRedirect?: (resolve: () => void, reject: () => void, redirectData: {
|
|
@@ -4768,27 +4377,10 @@ declare class PromptPayElement extends QRLoaderContainer {
|
|
|
4768
4377
|
method: string;
|
|
4769
4378
|
data?: any;
|
|
4770
4379
|
}) => void;
|
|
4771
|
-
beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions:
|
|
4772
|
-
|
|
4773
|
-
billingAddress?: AddressData;
|
|
4774
|
-
deliveryAddress?: AddressData;
|
|
4775
|
-
shopperEmail?: string;
|
|
4776
|
-
shopperName?: string;
|
|
4777
|
-
}) => void;
|
|
4778
|
-
reject: () => void;
|
|
4779
|
-
}) => void;
|
|
4780
|
-
onSubmit?: (state: {
|
|
4781
|
-
data: PaymentData;
|
|
4782
|
-
isValid: boolean;
|
|
4783
|
-
}, component: UIElement<UIElementProps>, actions: {
|
|
4784
|
-
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
4785
|
-
reject: (error?: Pick<CheckoutAdvancedFlowResponse, "error">) => void;
|
|
4786
|
-
}) => void;
|
|
4380
|
+
beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions: BeforeSubmitActions) => void;
|
|
4381
|
+
onSubmit?: (state: SubmitData, component: UIElement<UIElementProps>, actions: SubmitActions) => void;
|
|
4787
4382
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
4788
|
-
onAdditionalDetails?: (state:
|
|
4789
|
-
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
4790
|
-
reject: () => void;
|
|
4791
|
-
}) => void;
|
|
4383
|
+
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement<UIElementProps>, actions: AdditionalDetailsActions) => void;
|
|
4792
4384
|
onError?: (error: AdyenCheckoutError, component?: UIElement<UIElementProps>) => void;
|
|
4793
4385
|
onOrderUpdated?: (data: {
|
|
4794
4386
|
order: Order;
|
|
@@ -4844,22 +4436,7 @@ declare class DuitNowElement extends QRLoaderContainer {
|
|
|
4844
4436
|
risk?: RiskElement;
|
|
4845
4437
|
};
|
|
4846
4438
|
isDropin?: boolean;
|
|
4847
|
-
onChange?: (state:
|
|
4848
|
-
data: PaymentData;
|
|
4849
|
-
isValid: boolean;
|
|
4850
|
-
valid?: {
|
|
4851
|
-
[fieldKey: string]: boolean;
|
|
4852
|
-
};
|
|
4853
|
-
errors?: {
|
|
4854
|
-
[fieldKey: string]: {
|
|
4855
|
-
isValid: boolean;
|
|
4856
|
-
errorMessage: string;
|
|
4857
|
-
errorI18n: string;
|
|
4858
|
-
error: string;
|
|
4859
|
-
rootNode: HTMLElement;
|
|
4860
|
-
};
|
|
4861
|
-
};
|
|
4862
|
-
}, component: UIElement<UIElementProps>) => void;
|
|
4439
|
+
onChange?: (state: OnChangeData, component: UIElement<UIElementProps>) => void;
|
|
4863
4440
|
onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement<UIElementProps>) => void;
|
|
4864
4441
|
onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement<UIElementProps>) => void;
|
|
4865
4442
|
beforeRedirect?: (resolve: () => void, reject: () => void, redirectData: {
|
|
@@ -4867,27 +4444,10 @@ declare class DuitNowElement extends QRLoaderContainer {
|
|
|
4867
4444
|
method: string;
|
|
4868
4445
|
data?: any;
|
|
4869
4446
|
}) => void;
|
|
4870
|
-
beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions:
|
|
4871
|
-
|
|
4872
|
-
billingAddress?: AddressData;
|
|
4873
|
-
deliveryAddress?: AddressData;
|
|
4874
|
-
shopperEmail?: string;
|
|
4875
|
-
shopperName?: string;
|
|
4876
|
-
}) => void;
|
|
4877
|
-
reject: () => void;
|
|
4878
|
-
}) => void;
|
|
4879
|
-
onSubmit?: (state: {
|
|
4880
|
-
data: PaymentData;
|
|
4881
|
-
isValid: boolean;
|
|
4882
|
-
}, component: UIElement<UIElementProps>, actions: {
|
|
4883
|
-
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
4884
|
-
reject: (error?: Pick<CheckoutAdvancedFlowResponse, "error">) => void;
|
|
4885
|
-
}) => void;
|
|
4447
|
+
beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions: BeforeSubmitActions) => void;
|
|
4448
|
+
onSubmit?: (state: SubmitData, component: UIElement<UIElementProps>, actions: SubmitActions) => void;
|
|
4886
4449
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
4887
|
-
onAdditionalDetails?: (state:
|
|
4888
|
-
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
4889
|
-
reject: () => void;
|
|
4890
|
-
}) => void;
|
|
4450
|
+
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement<UIElementProps>, actions: AdditionalDetailsActions) => void;
|
|
4891
4451
|
onError?: (error: AdyenCheckoutError, component?: UIElement<UIElementProps>) => void;
|
|
4892
4452
|
onOrderUpdated?: (data: {
|
|
4893
4453
|
order: Order;
|
|
@@ -4963,27 +4523,10 @@ declare class Riverty extends OpenInvoiceContainer {
|
|
|
4963
4523
|
method: string;
|
|
4964
4524
|
data?: any;
|
|
4965
4525
|
}) => void;
|
|
4966
|
-
beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions:
|
|
4967
|
-
|
|
4968
|
-
billingAddress?: AddressData;
|
|
4969
|
-
deliveryAddress?: AddressData;
|
|
4970
|
-
shopperEmail?: string;
|
|
4971
|
-
shopperName?: string;
|
|
4972
|
-
}) => void;
|
|
4973
|
-
reject: () => void;
|
|
4974
|
-
}) => void;
|
|
4975
|
-
onSubmit?: (state: {
|
|
4976
|
-
data: PaymentData;
|
|
4977
|
-
isValid: boolean;
|
|
4978
|
-
}, component: UIElement<UIElementProps>, actions: {
|
|
4979
|
-
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
4980
|
-
reject: (error?: Pick<CheckoutAdvancedFlowResponse, "error">) => void;
|
|
4981
|
-
}) => void;
|
|
4526
|
+
beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions: BeforeSubmitActions) => void;
|
|
4527
|
+
onSubmit?: (state: SubmitData, component: UIElement<UIElementProps>, actions: SubmitActions) => void;
|
|
4982
4528
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
4983
|
-
onAdditionalDetails?: (state:
|
|
4984
|
-
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
4985
|
-
reject: () => void;
|
|
4986
|
-
}) => void;
|
|
4529
|
+
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement<UIElementProps>, actions: AdditionalDetailsActions) => void;
|
|
4987
4530
|
onError?: (error: AdyenCheckoutError, component?: UIElement<UIElementProps>) => void;
|
|
4988
4531
|
onOrderUpdated?: (data: {
|
|
4989
4532
|
order: Order;
|
|
@@ -5094,7 +4637,6 @@ declare const ComponentsMap: {
|
|
|
5094
4637
|
billdesk_wallet: typeof BillDeskWalletElement;
|
|
5095
4638
|
dotpay: typeof DotpayElement;
|
|
5096
4639
|
eps: typeof EPSElement;
|
|
5097
|
-
ideal: typeof IdealElement;
|
|
5098
4640
|
molpay_ebanking_fpx_MY: typeof MolPayEBankingMYElement;
|
|
5099
4641
|
molpay_ebanking_TH: typeof MolPayEBankingTHElement;
|
|
5100
4642
|
molpay_ebanking_VN: typeof MolPayEbankingVNElement;
|
|
@@ -5146,6 +4688,7 @@ declare const ComponentsMap: {
|
|
|
5146
4688
|
/** Await */
|
|
5147
4689
|
blik: typeof BlikElement;
|
|
5148
4690
|
mbway: typeof MBWayElement;
|
|
4691
|
+
ancv: typeof ANCVElement;
|
|
5149
4692
|
upi: typeof UPI;
|
|
5150
4693
|
upi_qr: typeof UPI;
|
|
5151
4694
|
upi_collect: typeof UPI;
|
|
@@ -5211,11 +4754,36 @@ interface DropinConfiguration extends UIElementProps {
|
|
|
5211
4754
|
* @defaultValue []
|
|
5212
4755
|
*/
|
|
5213
4756
|
instantPaymentTypes?: InstantPaymentTypes[];
|
|
4757
|
+
/**
|
|
4758
|
+
* Pre-select a specific payment method when Drop-in is rendered
|
|
4759
|
+
*
|
|
4760
|
+
* @default undefined
|
|
4761
|
+
*/
|
|
4762
|
+
openPaymentMethod?: {
|
|
4763
|
+
type: string;
|
|
4764
|
+
};
|
|
4765
|
+
/**
|
|
4766
|
+
* Pre-select the first stored payment method.
|
|
4767
|
+
* It has priority over 'openFirstPaymentMethod' property
|
|
4768
|
+
*
|
|
4769
|
+
* @default true
|
|
4770
|
+
*/
|
|
5214
4771
|
openFirstStoredPaymentMethod?: boolean;
|
|
4772
|
+
/**
|
|
4773
|
+
* Pre-select the first non-stored payment method.
|
|
4774
|
+
* 'openFirstStoredPaymentMethod' has priority over this property
|
|
4775
|
+
*
|
|
4776
|
+
* @default true
|
|
4777
|
+
*/
|
|
5215
4778
|
openFirstPaymentMethod?: boolean;
|
|
5216
|
-
|
|
5217
|
-
|
|
5218
|
-
|
|
4779
|
+
/**
|
|
4780
|
+
* Callback triggered once the Drop-in is ready to be used
|
|
4781
|
+
*/
|
|
4782
|
+
onReady?(): void;
|
|
4783
|
+
/**
|
|
4784
|
+
* Callback triggered once the shopper selects a different payment method in the Drop-in
|
|
4785
|
+
*/
|
|
4786
|
+
onSelect?(paymentMethod: UIElement): void;
|
|
5219
4787
|
/**
|
|
5220
4788
|
* Show/Hide the remove payment method button on stored payment methods
|
|
5221
4789
|
* Requires {@link DropinConfiguration.onDisableStoredPaymentMethod}
|
|
@@ -5249,8 +4817,7 @@ type onOrderCancelType = (data: onOrderCancelData, actions: {
|
|
|
5249
4817
|
}) => void;
|
|
5250
4818
|
interface DropinComponentProps extends DropinConfiguration {
|
|
5251
4819
|
core: ICore;
|
|
5252
|
-
onCreateElements: any;
|
|
5253
|
-
onChange: (newState?: object) => void;
|
|
4820
|
+
onCreateElements(): any;
|
|
5254
4821
|
onOrderCancel?: onOrderCancelType;
|
|
5255
4822
|
}
|
|
5256
4823
|
interface DropinStatus {
|
|
@@ -5287,7 +4854,7 @@ interface ICore {
|
|
|
5287
4854
|
register(...items: NewableComponent[]): void;
|
|
5288
4855
|
update(options: CoreConfiguration): Promise<ICore>;
|
|
5289
4856
|
remove(component: any): ICore;
|
|
5290
|
-
submitDetails(details:
|
|
4857
|
+
submitDetails(details: AdditionalDetailsData['data']): void;
|
|
5291
4858
|
getCorePropsForComponent(): any;
|
|
5292
4859
|
getComponent(txVariant: string): NewableComponent | undefined;
|
|
5293
4860
|
createFromAction(action: PaymentAction, options: any): UIElement;
|
|
@@ -5296,7 +4863,6 @@ interface ICore {
|
|
|
5296
4863
|
paymentMethodsResponse: PaymentMethods$1;
|
|
5297
4864
|
session?: Session;
|
|
5298
4865
|
}
|
|
5299
|
-
type AdyenEnvironment = 'test' | 'live' | 'live-us' | 'live-au' | 'live-apse' | 'live-in' | string;
|
|
5300
4866
|
type PaymentCompletedData = SessionsResponse | {
|
|
5301
4867
|
resultCode: ResultCode;
|
|
5302
4868
|
donationToken?: string;
|
|
@@ -5304,20 +4870,68 @@ type PaymentCompletedData = SessionsResponse | {
|
|
|
5304
4870
|
type PaymentFailedData = SessionsResponse | {
|
|
5305
4871
|
resultCode: ResultCode;
|
|
5306
4872
|
};
|
|
4873
|
+
type SubmitData = {
|
|
4874
|
+
data: PaymentData;
|
|
4875
|
+
isValid: boolean;
|
|
4876
|
+
};
|
|
4877
|
+
type SubmitActions = {
|
|
4878
|
+
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
4879
|
+
reject: (error?: Pick<CheckoutAdvancedFlowResponse, 'error'>) => void;
|
|
4880
|
+
};
|
|
4881
|
+
type AdditionalDetailsData = {
|
|
4882
|
+
data: {
|
|
4883
|
+
details: {
|
|
4884
|
+
redirectResult?: string;
|
|
4885
|
+
threeDSResult?: string;
|
|
4886
|
+
[key: string]: any;
|
|
4887
|
+
};
|
|
4888
|
+
paymentData?: string;
|
|
4889
|
+
sessionData?: string;
|
|
4890
|
+
};
|
|
4891
|
+
};
|
|
4892
|
+
type AdditionalDetailsActions = {
|
|
4893
|
+
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
4894
|
+
reject: () => void;
|
|
4895
|
+
};
|
|
4896
|
+
type BeforeSubmitActions = {
|
|
4897
|
+
resolve: (data: PaymentData & {
|
|
4898
|
+
billingAddress?: AddressData;
|
|
4899
|
+
deliveryAddress?: AddressData;
|
|
4900
|
+
shopperEmail?: string;
|
|
4901
|
+
shopperName?: string;
|
|
4902
|
+
}) => void;
|
|
4903
|
+
reject: () => void;
|
|
4904
|
+
};
|
|
4905
|
+
type OnChangeData = {
|
|
4906
|
+
data: PaymentData;
|
|
4907
|
+
isValid: boolean;
|
|
4908
|
+
valid?: {
|
|
4909
|
+
[fieldKey: string]: boolean;
|
|
4910
|
+
};
|
|
4911
|
+
errors?: {
|
|
4912
|
+
[fieldKey: string]: {
|
|
4913
|
+
isValid: boolean;
|
|
4914
|
+
errorMessage: string;
|
|
4915
|
+
errorI18n: string;
|
|
4916
|
+
error: string;
|
|
4917
|
+
rootNode: HTMLElement;
|
|
4918
|
+
};
|
|
4919
|
+
};
|
|
4920
|
+
};
|
|
5307
4921
|
interface CoreConfiguration {
|
|
5308
4922
|
/**
|
|
5309
4923
|
* The payment session object from your call to /sessions.
|
|
5310
4924
|
*/
|
|
5311
4925
|
session?: {
|
|
5312
4926
|
id: string;
|
|
5313
|
-
sessionData
|
|
4927
|
+
sessionData?: string;
|
|
5314
4928
|
shopperEmail?: string;
|
|
5315
4929
|
telephoneNumber?: string;
|
|
5316
4930
|
};
|
|
5317
4931
|
/**
|
|
5318
4932
|
* 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}.
|
|
5319
4933
|
*/
|
|
5320
|
-
environment?:
|
|
4934
|
+
environment?: 'test' | 'live' | 'live-us' | 'live-au' | 'live-apse' | 'live-in' | string;
|
|
5321
4935
|
/**
|
|
5322
4936
|
* Show or hides a Pay Button for each payment method
|
|
5323
4937
|
* @default true
|
|
@@ -5390,162 +5004,278 @@ interface CoreConfiguration {
|
|
|
5390
5004
|
data?: any;
|
|
5391
5005
|
}): void;
|
|
5392
5006
|
/**
|
|
5393
|
-
* Called when the shopper selects the Pay button (it only works on Sessions flow)
|
|
5394
|
-
*
|
|
5395
|
-
* Allows you to add details which will be sent in the payment request to Adyen's servers.
|
|
5396
|
-
* For example, you can add shopper details like 'billingAddress', 'deliveryAddress', 'shopperEmail' or 'shopperName'
|
|
5007
|
+
* Called when the shopper selects the Pay button (it only works on Sessions flow)
|
|
5008
|
+
*
|
|
5009
|
+
* Allows you to add details which will be sent in the payment request to Adyen's servers.
|
|
5010
|
+
* For example, you can add shopper details like 'billingAddress', 'deliveryAddress', 'shopperEmail' or 'shopperName'
|
|
5011
|
+
*
|
|
5012
|
+
* @param state
|
|
5013
|
+
* @param component
|
|
5014
|
+
* @param actions
|
|
5015
|
+
*/
|
|
5016
|
+
beforeSubmit?(state: PaymentData, component: UIElement, actions: BeforeSubmitActions): void;
|
|
5017
|
+
/**
|
|
5018
|
+
* Called when the payment succeeds.
|
|
5019
|
+
*
|
|
5020
|
+
* The first parameter is the sessions response (when using sessions flow), or the result code.
|
|
5021
|
+
*
|
|
5022
|
+
* @param data
|
|
5023
|
+
* @param component
|
|
5024
|
+
*/
|
|
5025
|
+
onPaymentCompleted?(data: PaymentCompletedData, component?: UIElement): void;
|
|
5026
|
+
/**
|
|
5027
|
+
* Called when the payment fails.
|
|
5028
|
+
*
|
|
5029
|
+
* The first parameter is populated when merchant is using sessions, or when the payment was rejected
|
|
5030
|
+
* with an object. (Ex: 'action.reject(obj)' ). Otherwise, it will be empty.
|
|
5031
|
+
*
|
|
5032
|
+
* @param data - session response or resultCode. It can also be undefined if payment was rejected without argument ('action.reject()')
|
|
5033
|
+
* @param component
|
|
5034
|
+
*/
|
|
5035
|
+
onPaymentFailed?(data?: PaymentFailedData, component?: UIElement): void;
|
|
5036
|
+
/**
|
|
5037
|
+
* Callback used in the Advanced flow to perform the /payments API call
|
|
5038
|
+
*
|
|
5039
|
+
* The payment response must be passed to the 'resolve' function, even if the payment wasn't authorized (Ex: resultCode = Refused).
|
|
5040
|
+
* The 'reject' should be used only if a critical error occurred.
|
|
5041
|
+
*
|
|
5042
|
+
* @param state
|
|
5043
|
+
* @param component
|
|
5044
|
+
* @param actions
|
|
5045
|
+
*/
|
|
5046
|
+
onSubmit?(state: SubmitData, component: UIElement, actions: SubmitActions): void;
|
|
5047
|
+
/**
|
|
5048
|
+
* Callback used in the Advanced flow to perform the /payments/details API call.
|
|
5049
|
+
*
|
|
5050
|
+
* The payment response must be passed to the 'resolve' function, even if the payment wasn't authorized (Ex: resultCode = Refused).
|
|
5051
|
+
* The 'reject' should be used only if a critical error occurred.
|
|
5052
|
+
*
|
|
5053
|
+
* @param state
|
|
5054
|
+
* @param component - Component submitting details. It is undefined when using checkout.submitDetails()
|
|
5055
|
+
* @param actions
|
|
5056
|
+
*/
|
|
5057
|
+
onAdditionalDetails?(state: AdditionalDetailsData, component: UIElement, actions: AdditionalDetailsActions): void;
|
|
5058
|
+
/**
|
|
5059
|
+
* Callback called when an action (for example a QR code or 3D Secure 2 authentication screen) is shown to the shopper.
|
|
5060
|
+
*
|
|
5061
|
+
* @param actionHandled
|
|
5062
|
+
*/
|
|
5063
|
+
onActionHandled?(actionHandled: ActionHandledReturnObject): void;
|
|
5064
|
+
onChange?(state: OnChangeData, component: UIElement): void;
|
|
5065
|
+
/**
|
|
5066
|
+
* Callback called in two different scenarios:
|
|
5067
|
+
* - when a critical error happened (network error; implementation error; script failed to load)
|
|
5068
|
+
* - when the shopper cancels the payment flow in payment methods that have an overlay (GooglePay, PayPal, ApplePay)
|
|
5069
|
+
*
|
|
5070
|
+
* @param error
|
|
5071
|
+
* @param component
|
|
5072
|
+
*/
|
|
5073
|
+
onError?(error: AdyenCheckoutError, component?: UIElement): void;
|
|
5074
|
+
onBalanceCheck?: onBalanceCheckCallbackType;
|
|
5075
|
+
onOrderRequest?: onOrderRequestCallbackType;
|
|
5076
|
+
/**
|
|
5077
|
+
* Callback called when it is required to fetch/update the payment methods list.
|
|
5078
|
+
* It is currently used mainly on Giftcard flow (Partial orders), since the payment method list might change depending on the amount left to be paid
|
|
5079
|
+
*
|
|
5080
|
+
* The /paymentMethods response must be passed to the 'resolve' function
|
|
5081
|
+
*
|
|
5082
|
+
* @param data
|
|
5083
|
+
* @param actions
|
|
5084
|
+
*/
|
|
5085
|
+
onPaymentMethodsRequest?(data: PaymentMethodsRequestData, actions: {
|
|
5086
|
+
resolve: (response: PaymentMethodsResponse) => void;
|
|
5087
|
+
reject: () => void;
|
|
5088
|
+
}): void;
|
|
5089
|
+
onOrderCancel?: onOrderCancelType;
|
|
5090
|
+
/**
|
|
5091
|
+
* Called when the gift card balance is less than the transaction amount.
|
|
5092
|
+
* Returns an Order object that includes the remaining amount to be paid.
|
|
5093
|
+
* https://docs.adyen.com/payment-methods/gift-cards/web-component?tab=config-sessions_1
|
|
5094
|
+
*/
|
|
5095
|
+
onOrderUpdated?(data: {
|
|
5096
|
+
order: Order;
|
|
5097
|
+
}): void;
|
|
5098
|
+
/**
|
|
5099
|
+
* @internal
|
|
5100
|
+
*/
|
|
5101
|
+
loadingContext?: string;
|
|
5102
|
+
/**
|
|
5103
|
+
* Used internally in order to set different URL's instead of using the ones mapped in our codebase.
|
|
5104
|
+
*
|
|
5105
|
+
* @internal
|
|
5106
|
+
*/
|
|
5107
|
+
_environmentUrls?: {
|
|
5108
|
+
api?: string;
|
|
5109
|
+
analytics?: string;
|
|
5110
|
+
cdn?: {
|
|
5111
|
+
images?: string;
|
|
5112
|
+
translations?: string;
|
|
5113
|
+
};
|
|
5114
|
+
};
|
|
5115
|
+
}
|
|
5116
|
+
|
|
5117
|
+
declare abstract class BaseElement<P extends BaseElementProps> implements IBaseElement {
|
|
5118
|
+
readonly _id: string;
|
|
5119
|
+
readonly core: ICore;
|
|
5120
|
+
props: P;
|
|
5121
|
+
state: any;
|
|
5122
|
+
_component: any;
|
|
5123
|
+
protected _node: HTMLElement;
|
|
5124
|
+
protected static defaultProps: {};
|
|
5125
|
+
constructor(checkout: ICore, props?: P);
|
|
5126
|
+
protected buildElementProps(componentProps?: P): void;
|
|
5127
|
+
/**
|
|
5128
|
+
* Executed during creation of any payment element.
|
|
5129
|
+
* Gives a chance to any paymentMethod to format the props we're receiving.
|
|
5130
|
+
*/
|
|
5131
|
+
protected formatProps(props: P): P;
|
|
5132
|
+
/**
|
|
5133
|
+
* Executed on the `data` getter.
|
|
5134
|
+
* Returns the component data necessary for the /payments request
|
|
5135
|
+
*/
|
|
5136
|
+
protected formatData(): any;
|
|
5137
|
+
protected setUpAnalytics(setUpAnalyticsObj: AnalyticsInitialEvent): any;
|
|
5138
|
+
protected submitAnalytics(analyticsObj?: SendAnalyticsObject): any;
|
|
5139
|
+
protected setState(newState: object): void;
|
|
5140
|
+
/**
|
|
5141
|
+
* Returns the component payment data ready to submit to the Checkout API
|
|
5142
|
+
* Note: this does not ensure validity, check isValid first
|
|
5143
|
+
*/
|
|
5144
|
+
get data(): PaymentData;
|
|
5145
|
+
render(): ComponentChild | Error;
|
|
5146
|
+
/**
|
|
5147
|
+
* Mounts an element into the dom
|
|
5148
|
+
* @param domNode - Node (or selector) where we will mount the payment element
|
|
5149
|
+
* @returns this - the payment element instance we mounted
|
|
5150
|
+
*/
|
|
5151
|
+
mount(domNode: HTMLElement | string): this;
|
|
5152
|
+
/**
|
|
5153
|
+
* Updates props, resets the internal state and remounts the element.
|
|
5154
|
+
*
|
|
5155
|
+
* @param props - props to update
|
|
5156
|
+
* @returns this - the element instance
|
|
5157
|
+
*/
|
|
5158
|
+
update(props: Partial<P>): this;
|
|
5159
|
+
/**
|
|
5160
|
+
* Unmounts a payment element from the DOM
|
|
5161
|
+
*/
|
|
5162
|
+
unmount(): this;
|
|
5163
|
+
/**
|
|
5164
|
+
* Unmounts an element and removes it from the parent instance
|
|
5165
|
+
* For "destroy" type cleanup - when you don't intend to use the component again
|
|
5166
|
+
*/
|
|
5167
|
+
remove(): void;
|
|
5168
|
+
}
|
|
5169
|
+
|
|
5170
|
+
declare abstract class UIElement<P extends UIElementProps = UIElementProps> extends BaseElement<P> {
|
|
5171
|
+
protected componentRef: any;
|
|
5172
|
+
protected resources: Resources;
|
|
5173
|
+
elementRef: UIElement;
|
|
5174
|
+
static type: any;
|
|
5175
|
+
/**
|
|
5176
|
+
* Defines all txVariants that the Component supports (in case it support multiple ones besides the 'type' one)
|
|
5177
|
+
*/
|
|
5178
|
+
static txVariants: string[];
|
|
5179
|
+
constructor(checkout: ICore, props?: P);
|
|
5180
|
+
protected buildElementProps(componentProps?: P): void;
|
|
5181
|
+
protected storeElementRefOnCore(props?: P): void;
|
|
5182
|
+
isAvailable(): Promise<void>;
|
|
5183
|
+
setState(newState: object): void;
|
|
5184
|
+
showValidation(): this;
|
|
5185
|
+
setElementStatus(status: UIElementStatus, props?: any): this;
|
|
5186
|
+
setStatus(status: UIElementStatus, props?: any): this;
|
|
5187
|
+
protected onChange(): void;
|
|
5188
|
+
protected setUpAnalytics(setUpAnalyticsObj: AnalyticsInitialEvent): Promise<any>;
|
|
5189
|
+
/**
|
|
5190
|
+
* A function for all UIElements, or BaseElement, to use to create an analytics action for when it's been:
|
|
5191
|
+
* - mounted,
|
|
5192
|
+
* - a PM has been selected
|
|
5193
|
+
* - onSubmit has been called (as a result of the pay button being pressed)
|
|
5194
|
+
*
|
|
5195
|
+
* In some other cases e.g. 3DS2 components, this function is overridden to allow more specific analytics actions to be created
|
|
5196
|
+
*/
|
|
5197
|
+
protected submitAnalytics(analyticsObj: SendAnalyticsObject, uiElementProps?: any): void;
|
|
5198
|
+
submit(): void;
|
|
5199
|
+
protected makePaymentsCall(): Promise<CheckoutAdvancedFlowResponse | CheckoutSessionPaymentResponse>;
|
|
5200
|
+
private submitUsingAdvancedFlow;
|
|
5201
|
+
private submitUsingSessionsFlow;
|
|
5202
|
+
protected onComplete(state: any): void;
|
|
5203
|
+
protected handleError: (error: AdyenCheckoutError) => void;
|
|
5204
|
+
protected handleAdditionalDetails(state: AdditionalDetailsData): void;
|
|
5205
|
+
private makeAdditionalDetailsCall;
|
|
5206
|
+
private submitAdditionalDetailsUsingSessionsFlow;
|
|
5207
|
+
handleAction(action: PaymentAction, props?: {}): UIElement | null;
|
|
5208
|
+
protected handleOrder: (response: PaymentResponseData) => void;
|
|
5209
|
+
/**
|
|
5210
|
+
* Handles when the payment fails. The payment fails when:
|
|
5211
|
+
* - adv flow: the merchant rejects the payment due to a critical error
|
|
5212
|
+
* - adv flow: the merchant resolves the payment with a failed resultCode
|
|
5213
|
+
* - sessions: a network error occurs when making the payment
|
|
5214
|
+
* - sessions: the payment fails with a failed resultCode
|
|
5397
5215
|
*
|
|
5398
|
-
* @param
|
|
5399
|
-
* @param component
|
|
5400
|
-
* @param actions
|
|
5216
|
+
* @param result
|
|
5401
5217
|
*/
|
|
5402
|
-
|
|
5403
|
-
|
|
5404
|
-
billingAddress?: AddressData;
|
|
5405
|
-
deliveryAddress?: AddressData;
|
|
5406
|
-
shopperEmail?: string;
|
|
5407
|
-
shopperName?: string;
|
|
5408
|
-
}) => void;
|
|
5409
|
-
reject: () => void;
|
|
5410
|
-
}): void;
|
|
5218
|
+
protected handleFailedResult: (result?: PaymentResponseData) => void;
|
|
5219
|
+
protected handleSuccessResult: (result: PaymentResponseData) => void;
|
|
5411
5220
|
/**
|
|
5412
|
-
*
|
|
5413
|
-
*
|
|
5414
|
-
* The first parameter is the sessions response (when using sessions flow), or the result code.
|
|
5221
|
+
* Handles a session /payments or /payments/details response.
|
|
5222
|
+
* The component will handle automatically actions, orders, and final results.
|
|
5415
5223
|
*
|
|
5416
|
-
* @param
|
|
5417
|
-
* @param component
|
|
5224
|
+
* @param rawResponse -
|
|
5418
5225
|
*/
|
|
5419
|
-
|
|
5226
|
+
protected handleResponse(rawResponse: RawPaymentResponse): void;
|
|
5420
5227
|
/**
|
|
5421
|
-
*
|
|
5422
|
-
*
|
|
5423
|
-
*
|
|
5424
|
-
* with an object. (Ex: 'action.reject(obj)' ). Otherwise, it will be empty.
|
|
5425
|
-
*
|
|
5426
|
-
* @param data - session response or resultCode. It can also be undefined if payment was rejected without argument ('action.reject()')
|
|
5427
|
-
* @param component
|
|
5228
|
+
* Call update on parent instance
|
|
5229
|
+
* This function exist to make safe access to the protect _parentInstance
|
|
5230
|
+
* @param options - CoreOptions
|
|
5428
5231
|
*/
|
|
5429
|
-
|
|
5232
|
+
updateParent(options?: CoreConfiguration): Promise<ICore>;
|
|
5233
|
+
setComponentRef: (ref: ComponentMethodsRef) => void;
|
|
5430
5234
|
/**
|
|
5431
|
-
*
|
|
5432
|
-
*
|
|
5433
|
-
* The payment response must be passed to the 'resolve' function, even if the payment wasn't authorized (Ex: resultCode = Refused).
|
|
5434
|
-
* The 'reject' should be used only if a critical error occurred.
|
|
5435
|
-
*
|
|
5436
|
-
* @param state
|
|
5437
|
-
* @param component
|
|
5438
|
-
* @param actions
|
|
5235
|
+
* Get the current validation status of the element
|
|
5439
5236
|
*/
|
|
5440
|
-
|
|
5441
|
-
data: PaymentData;
|
|
5442
|
-
isValid: boolean;
|
|
5443
|
-
}, component: UIElement, actions: {
|
|
5444
|
-
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
5445
|
-
reject: (error?: Pick<CheckoutAdvancedFlowResponse, 'error'>) => void;
|
|
5446
|
-
}): void;
|
|
5237
|
+
get isValid(): boolean;
|
|
5447
5238
|
/**
|
|
5448
|
-
*
|
|
5449
|
-
*
|
|
5450
|
-
* The payment response must be passed to the 'resolve' function, even if the payment wasn't authorized (Ex: resultCode = Refused).
|
|
5451
|
-
* The 'reject' should be used only if a critical error occurred.
|
|
5452
|
-
*
|
|
5453
|
-
* @param state
|
|
5454
|
-
* @param component - Component submitting details. It is undefined when using checkout.submitDetails()
|
|
5455
|
-
* @param actions
|
|
5239
|
+
* Get the element icon URL for the current environment
|
|
5456
5240
|
*/
|
|
5457
|
-
|
|
5458
|
-
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
5459
|
-
reject: () => void;
|
|
5460
|
-
}): void;
|
|
5241
|
+
get icon(): string;
|
|
5461
5242
|
/**
|
|
5462
|
-
*
|
|
5463
|
-
*
|
|
5464
|
-
* @param actionHandled
|
|
5243
|
+
* Get the element's displayable name
|
|
5465
5244
|
*/
|
|
5466
|
-
|
|
5467
|
-
onChange?(state: {
|
|
5468
|
-
data: PaymentData;
|
|
5469
|
-
isValid: boolean;
|
|
5470
|
-
valid?: {
|
|
5471
|
-
[fieldKey: string]: boolean;
|
|
5472
|
-
};
|
|
5473
|
-
errors?: {
|
|
5474
|
-
[fieldKey: string]: {
|
|
5475
|
-
isValid: boolean;
|
|
5476
|
-
errorMessage: string;
|
|
5477
|
-
errorI18n: string;
|
|
5478
|
-
error: string;
|
|
5479
|
-
rootNode: HTMLElement;
|
|
5480
|
-
};
|
|
5481
|
-
};
|
|
5482
|
-
}, component: UIElement): void;
|
|
5245
|
+
get displayName(): string;
|
|
5483
5246
|
/**
|
|
5484
|
-
*
|
|
5485
|
-
* - when a critical error happened (network error; implementation error; script failed to load)
|
|
5486
|
-
* - when the shopper cancels the payment flow in payment methods that have an overlay (GooglePay, PayPal, ApplePay)
|
|
5487
|
-
*
|
|
5488
|
-
* @param error
|
|
5489
|
-
* @param component
|
|
5247
|
+
* Get the element accessible name, used in the aria-label of the button that controls selected payment method
|
|
5490
5248
|
*/
|
|
5491
|
-
|
|
5492
|
-
onBalanceCheck?: onBalanceCheckCallbackType;
|
|
5493
|
-
onOrderRequest?: onOrderRequestCallbackType;
|
|
5249
|
+
get accessibleName(): string;
|
|
5494
5250
|
/**
|
|
5495
|
-
*
|
|
5496
|
-
* It is currently used mainly on Giftcard flow (Partial orders), since the payment method list might change depending on the amount left to be paid
|
|
5497
|
-
*
|
|
5498
|
-
* The /paymentMethods response must be passed to the 'resolve' function
|
|
5499
|
-
*
|
|
5500
|
-
* @param data
|
|
5501
|
-
* @param actions
|
|
5251
|
+
* Used to display the second line of a payment method item
|
|
5502
5252
|
*/
|
|
5503
|
-
|
|
5504
|
-
resolve: (response: PaymentMethodsResponse) => void;
|
|
5505
|
-
reject: () => void;
|
|
5506
|
-
}): void;
|
|
5507
|
-
onOrderCancel?: onOrderCancelType;
|
|
5253
|
+
get additionalInfo(): string;
|
|
5508
5254
|
/**
|
|
5509
|
-
*
|
|
5510
|
-
* Returns an Order object that includes the remaining amount to be paid.
|
|
5511
|
-
* https://docs.adyen.com/payment-methods/gift-cards/web-component?tab=config-sessions_1
|
|
5255
|
+
* Return the type of an element
|
|
5512
5256
|
*/
|
|
5513
|
-
|
|
5514
|
-
order: Order;
|
|
5515
|
-
}): void;
|
|
5257
|
+
get type(): string;
|
|
5516
5258
|
/**
|
|
5517
|
-
*
|
|
5259
|
+
* Get the payButton component for the current element
|
|
5518
5260
|
*/
|
|
5519
|
-
|
|
5261
|
+
protected payButton: (props: PayButtonFunctionProps) => h.JSX.Element;
|
|
5520
5262
|
/**
|
|
5521
|
-
* Used
|
|
5263
|
+
* Used in the Partial Orders flow.
|
|
5264
|
+
* When the Order is updated, the merchant can request new payment methods based on the new remaining amount
|
|
5522
5265
|
*
|
|
5523
|
-
* @
|
|
5266
|
+
* @private
|
|
5524
5267
|
*/
|
|
5525
|
-
|
|
5526
|
-
api?: string;
|
|
5527
|
-
analytics?: string;
|
|
5528
|
-
cdn?: {
|
|
5529
|
-
images?: string;
|
|
5530
|
-
translations?: string;
|
|
5531
|
-
};
|
|
5532
|
-
};
|
|
5533
|
-
}
|
|
5534
|
-
|
|
5535
|
-
type NewableComponent = new (checkout: ICore, props?: any) => IUIElement;
|
|
5536
|
-
interface IRegistry {
|
|
5537
|
-
add(...items: NewableComponent[]): void;
|
|
5538
|
-
getComponent(type: string): NewableComponent | undefined;
|
|
5268
|
+
protected handleAdvanceFlowPaymentMethodsUpdate(order: Order | null, amount?: PaymentAmount): Promise<ICore>;
|
|
5539
5269
|
}
|
|
5540
5270
|
|
|
5541
5271
|
declare const actionTypes: {
|
|
5542
|
-
readonly redirect: (core: ICore, registry: any, action: PaymentAction, props: any) =>
|
|
5543
|
-
readonly threeDS2: (core: ICore, registry: any, action: PaymentAction, props: any) =>
|
|
5544
|
-
readonly voucher: (core: ICore, registry: IRegistry, action: PaymentAction, props: any) =>
|
|
5545
|
-
readonly qrCode: (core: ICore, registry: IRegistry, action: PaymentAction, props: any) =>
|
|
5546
|
-
readonly await: (core: ICore, registry: IRegistry, action: PaymentAction, props: any) =>
|
|
5547
|
-
readonly bankTransfer: (core: ICore, registry: IRegistry, action: PaymentAction, props: any) =>
|
|
5548
|
-
readonly sdk: (core: ICore, registry: IRegistry, action: PaymentAction, props: any) =>
|
|
5272
|
+
readonly redirect: (core: ICore, registry: any, action: PaymentAction, props: any) => UIElement<UIElementProps>;
|
|
5273
|
+
readonly threeDS2: (core: ICore, registry: any, action: PaymentAction, props: any) => UIElement<UIElementProps>;
|
|
5274
|
+
readonly voucher: (core: ICore, registry: IRegistry, action: PaymentAction, props: any) => UIElement<UIElementProps>;
|
|
5275
|
+
readonly qrCode: (core: ICore, registry: IRegistry, action: PaymentAction, props: any) => UIElement<UIElementProps>;
|
|
5276
|
+
readonly await: (core: ICore, registry: IRegistry, action: PaymentAction, props: any) => UIElement<UIElementProps>;
|
|
5277
|
+
readonly bankTransfer: (core: ICore, registry: IRegistry, action: PaymentAction, props: any) => UIElement<UIElementProps>;
|
|
5278
|
+
readonly sdk: (core: ICore, registry: IRegistry, action: PaymentAction, props: any) => UIElement<UIElementProps>;
|
|
5549
5279
|
};
|
|
5550
5280
|
|
|
5551
5281
|
interface CAActions {
|
|
@@ -5843,17 +5573,6 @@ interface ActionHandledReturnObject {
|
|
|
5843
5573
|
componentType: string;
|
|
5844
5574
|
actionDescription: ActionDescriptionType;
|
|
5845
5575
|
}
|
|
5846
|
-
type AdditionalDetailsStateData = {
|
|
5847
|
-
data: {
|
|
5848
|
-
details: {
|
|
5849
|
-
redirectResult?: string;
|
|
5850
|
-
threeDSResult?: string;
|
|
5851
|
-
[key: string]: any;
|
|
5852
|
-
};
|
|
5853
|
-
paymentData?: string;
|
|
5854
|
-
sessionData?: string;
|
|
5855
|
-
};
|
|
5856
|
-
};
|
|
5857
5576
|
interface AnalyticsModule {
|
|
5858
5577
|
setUp: (a: AnalyticsInitialEvent) => Promise<any>;
|
|
5859
5578
|
getCheckoutAttemptId: () => string;
|
|
@@ -5956,7 +5675,7 @@ declare class Session {
|
|
|
5956
5675
|
/**
|
|
5957
5676
|
* Submits session payment additional details
|
|
5958
5677
|
*/
|
|
5959
|
-
submitDetails(data:
|
|
5678
|
+
submitDetails(data: AdditionalDetailsData['data']): Promise<CheckoutSessionDetailsResponse>;
|
|
5960
5679
|
/**
|
|
5961
5680
|
* Checks the balance for a payment method
|
|
5962
5681
|
*/
|
|
@@ -6041,47 +5760,49 @@ declare class CardElement extends UIElement<CardConfiguration> {
|
|
|
6041
5760
|
onReady?(): void;
|
|
6042
5761
|
onTimeout?(error: TimeoutError): void;
|
|
6043
5762
|
};
|
|
6044
|
-
|
|
6045
|
-
|
|
6046
|
-
|
|
5763
|
+
autoFocus?: boolean;
|
|
5764
|
+
billingAddressAllowedCountries?: string[];
|
|
5765
|
+
billingAddressMode?: "none" | "full" | "partial";
|
|
5766
|
+
billingAddressRequiredFields?: string[];
|
|
6047
5767
|
brands?: string[];
|
|
6048
|
-
positionHolderNameOnTop?: boolean;
|
|
6049
|
-
showBrandIcon?: boolean;
|
|
6050
|
-
showContextualElement?: boolean;
|
|
6051
|
-
hideCVC?: boolean;
|
|
6052
|
-
hasHolderName?: boolean;
|
|
6053
|
-
placeholders?: Partial<Record<"cardNumber" | "expiryDate" | "holderName" | "expiryMonth" | "expiryYear" | "securityCodeThreeDigits" | "securityCodeFourDigits" | "password", string>>;
|
|
6054
5768
|
challengeWindowSize?: "02" | "01" | "03" | "04" | "05";
|
|
6055
5769
|
data?: {
|
|
6056
5770
|
holderName?: string;
|
|
6057
5771
|
billingAddress?: Partial<AddressData>;
|
|
6058
5772
|
};
|
|
6059
|
-
|
|
5773
|
+
_disableClickToPay?: boolean;
|
|
5774
|
+
disableIOSArrowKeys?: boolean;
|
|
5775
|
+
disclaimerMessage?: DisclaimerMsgObject;
|
|
5776
|
+
doBinLookup?: boolean;
|
|
5777
|
+
expiryMonth?: string;
|
|
5778
|
+
exposeExpiryDate?: boolean;
|
|
5779
|
+
forceCompat?: boolean;
|
|
5780
|
+
fundingSource?: "debit" | "credit";
|
|
5781
|
+
hasHolderName?: boolean;
|
|
5782
|
+
hideCVC?: boolean;
|
|
5783
|
+
id?: string;
|
|
5784
|
+
keypadFix?: boolean;
|
|
5785
|
+
lastFour?: string;
|
|
5786
|
+
legacyInputMode?: boolean;
|
|
5787
|
+
maskSecurityCode?: boolean;
|
|
5788
|
+
minimumExpiryDate?: string[];
|
|
5789
|
+
name?: string;
|
|
5790
|
+
onBinLookup?: (event: CbObjOnBinLookup) => void;
|
|
5791
|
+
onBinValue?: (event: CbObjOnBinValue) => void;
|
|
5792
|
+
onBlur?: (event: CbObjOnFocus | ComponentFocusObject) => void;
|
|
5793
|
+
onBrand?: (event: CbObjOnBrand) => void;
|
|
6060
5794
|
onConfigSuccess?: (event: CbObjOnConfigSuccess) => void;
|
|
6061
5795
|
onFieldValid?: (event: CbObjOnFieldValid) => void;
|
|
6062
|
-
onBrand?: (event: CbObjOnBrand) => void;
|
|
6063
5796
|
onFocus?: (event: CbObjOnFocus | ComponentFocusObject) => void;
|
|
6064
|
-
|
|
6065
|
-
|
|
6066
|
-
|
|
6067
|
-
|
|
6068
|
-
|
|
6069
|
-
billingAddressRequiredFields?: string[];
|
|
6070
|
-
billingAddressAllowedCountries?: string[];
|
|
6071
|
-
id?: string;
|
|
5797
|
+
onLoad?: (event: CbObjOnLoad) => void;
|
|
5798
|
+
placeholders?: Partial<Record<"cardNumber" | "expiryDate" | "holderName" | "expiryMonth" | "expiryYear" | "securityCodeThreeDigits" | "securityCodeFourDigits" | "password", string>>;
|
|
5799
|
+
positionHolderNameOnTop?: boolean;
|
|
5800
|
+
showBrandIcon?: boolean;
|
|
5801
|
+
showContextualElement?: boolean;
|
|
6072
5802
|
showInstallmentAmounts?: boolean;
|
|
6073
|
-
legacyInputMode?: boolean;
|
|
6074
|
-
minimumExpiryDate?: string[];
|
|
6075
|
-
autoFocus?: boolean;
|
|
6076
|
-
maskSecurityCode?: boolean;
|
|
6077
|
-
doBinLookup?: boolean;
|
|
6078
|
-
disableIOSArrowKeys?: boolean;
|
|
6079
|
-
disclaimerMessage?: DisclaimerMsgObject;
|
|
6080
5803
|
styles?: StylesObject;
|
|
6081
5804
|
supportedShopperInteractions?: string[];
|
|
6082
|
-
|
|
6083
|
-
expiryMonth?: string;
|
|
6084
|
-
exposeExpiryDate?: boolean;
|
|
5805
|
+
type?: string;
|
|
6085
5806
|
order?: Order;
|
|
6086
5807
|
modules?: {
|
|
6087
5808
|
srPanel?: SRPanel;
|
|
@@ -6090,22 +5811,7 @@ declare class CardElement extends UIElement<CardConfiguration> {
|
|
|
6090
5811
|
risk?: RiskElement;
|
|
6091
5812
|
};
|
|
6092
5813
|
isDropin?: boolean;
|
|
6093
|
-
onChange?: (state:
|
|
6094
|
-
data: PaymentData;
|
|
6095
|
-
isValid: boolean;
|
|
6096
|
-
valid?: {
|
|
6097
|
-
[fieldKey: string]: boolean;
|
|
6098
|
-
};
|
|
6099
|
-
errors?: {
|
|
6100
|
-
[fieldKey: string]: {
|
|
6101
|
-
isValid: boolean;
|
|
6102
|
-
errorMessage: string;
|
|
6103
|
-
errorI18n: string;
|
|
6104
|
-
error: string;
|
|
6105
|
-
rootNode: HTMLElement;
|
|
6106
|
-
};
|
|
6107
|
-
};
|
|
6108
|
-
}, component: UIElement<UIElementProps>) => void;
|
|
5814
|
+
onChange?: (state: OnChangeData, component: UIElement<UIElementProps>) => void;
|
|
6109
5815
|
onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement<UIElementProps>) => void;
|
|
6110
5816
|
onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement<UIElementProps>) => void;
|
|
6111
5817
|
beforeRedirect?: (resolve: () => void, reject: () => void, redirectData: {
|
|
@@ -6113,27 +5819,10 @@ declare class CardElement extends UIElement<CardConfiguration> {
|
|
|
6113
5819
|
method: string;
|
|
6114
5820
|
data?: any;
|
|
6115
5821
|
}) => void;
|
|
6116
|
-
beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions:
|
|
6117
|
-
|
|
6118
|
-
billingAddress?: AddressData;
|
|
6119
|
-
deliveryAddress?: AddressData;
|
|
6120
|
-
shopperEmail?: string;
|
|
6121
|
-
shopperName?: string;
|
|
6122
|
-
}) => void;
|
|
6123
|
-
reject: () => void;
|
|
6124
|
-
}) => void;
|
|
6125
|
-
onSubmit?: (state: {
|
|
6126
|
-
data: PaymentData;
|
|
6127
|
-
isValid: boolean;
|
|
6128
|
-
}, component: UIElement<UIElementProps>, actions: {
|
|
6129
|
-
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
6130
|
-
reject: (error?: Pick<CheckoutAdvancedFlowResponse, "error">) => void;
|
|
6131
|
-
}) => void;
|
|
5822
|
+
beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions: BeforeSubmitActions) => void;
|
|
5823
|
+
onSubmit?: (state: SubmitData, component: UIElement<UIElementProps>, actions: SubmitActions) => void;
|
|
6132
5824
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
6133
|
-
onAdditionalDetails?: (state:
|
|
6134
|
-
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
6135
|
-
reject: () => void;
|
|
6136
|
-
}) => void;
|
|
5825
|
+
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement<UIElementProps>, actions: AdditionalDetailsActions) => void;
|
|
6137
5826
|
onError?: (error: AdyenCheckoutError, component?: UIElement<UIElementProps>) => void;
|
|
6138
5827
|
onOrderUpdated?: (data: {
|
|
6139
5828
|
order: Order;
|
|
@@ -6149,7 +5838,6 @@ declare class CardElement extends UIElement<CardConfiguration> {
|
|
|
6149
5838
|
isStoredPaymentMethod?: boolean;
|
|
6150
5839
|
oneClick?: boolean;
|
|
6151
5840
|
statusType?: "custom" | "loading" | "redirect";
|
|
6152
|
-
name?: string;
|
|
6153
5841
|
amount?: PaymentAmount;
|
|
6154
5842
|
secondaryAmount?: PaymentAmountExtended;
|
|
6155
5843
|
showPayButton?: boolean;
|
|
@@ -6251,22 +5939,7 @@ declare class PayMeElement extends QRLoaderContainer {
|
|
|
6251
5939
|
risk?: RiskElement;
|
|
6252
5940
|
};
|
|
6253
5941
|
isDropin?: boolean;
|
|
6254
|
-
onChange?: (state:
|
|
6255
|
-
data: PaymentData;
|
|
6256
|
-
isValid: boolean;
|
|
6257
|
-
valid?: {
|
|
6258
|
-
[fieldKey: string]: boolean;
|
|
6259
|
-
};
|
|
6260
|
-
errors?: {
|
|
6261
|
-
[fieldKey: string]: {
|
|
6262
|
-
isValid: boolean;
|
|
6263
|
-
errorMessage: string;
|
|
6264
|
-
errorI18n: string;
|
|
6265
|
-
error: string;
|
|
6266
|
-
rootNode: HTMLElement;
|
|
6267
|
-
};
|
|
6268
|
-
};
|
|
6269
|
-
}, component: UIElement<UIElementProps>) => void;
|
|
5942
|
+
onChange?: (state: OnChangeData, component: UIElement<UIElementProps>) => void;
|
|
6270
5943
|
onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement<UIElementProps>) => void;
|
|
6271
5944
|
onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement<UIElementProps>) => void;
|
|
6272
5945
|
beforeRedirect?: (resolve: () => void, reject: () => void, redirectData: {
|
|
@@ -6274,27 +5947,10 @@ declare class PayMeElement extends QRLoaderContainer {
|
|
|
6274
5947
|
method: string;
|
|
6275
5948
|
data?: any;
|
|
6276
5949
|
}) => void;
|
|
6277
|
-
beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions:
|
|
6278
|
-
|
|
6279
|
-
billingAddress?: AddressData;
|
|
6280
|
-
deliveryAddress?: AddressData;
|
|
6281
|
-
shopperEmail?: string;
|
|
6282
|
-
shopperName?: string;
|
|
6283
|
-
}) => void;
|
|
6284
|
-
reject: () => void;
|
|
6285
|
-
}) => void;
|
|
6286
|
-
onSubmit?: (state: {
|
|
6287
|
-
data: PaymentData;
|
|
6288
|
-
isValid: boolean;
|
|
6289
|
-
}, component: UIElement<UIElementProps>, actions: {
|
|
6290
|
-
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
6291
|
-
reject: (error?: Pick<CheckoutAdvancedFlowResponse, "error">) => void;
|
|
6292
|
-
}) => void;
|
|
5950
|
+
beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions: BeforeSubmitActions) => void;
|
|
5951
|
+
onSubmit?: (state: SubmitData, component: UIElement<UIElementProps>, actions: SubmitActions) => void;
|
|
6293
5952
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
6294
|
-
onAdditionalDetails?: (state:
|
|
6295
|
-
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
6296
|
-
reject: () => void;
|
|
6297
|
-
}) => void;
|
|
5953
|
+
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement<UIElementProps>, actions: AdditionalDetailsActions) => void;
|
|
6298
5954
|
onError?: (error: AdyenCheckoutError, component?: UIElement<UIElementProps>) => void;
|
|
6299
5955
|
onOrderUpdated?: (data: {
|
|
6300
5956
|
order: Order;
|
|
@@ -6327,30 +5983,6 @@ declare class PayMeElement extends QRLoaderContainer {
|
|
|
6327
5983
|
};
|
|
6328
5984
|
}
|
|
6329
5985
|
|
|
6330
|
-
declare class ANCVElement extends UIElement<ANCVConfiguration> {
|
|
6331
|
-
static type: string;
|
|
6332
|
-
/**
|
|
6333
|
-
* Formats the component data output
|
|
6334
|
-
*/
|
|
6335
|
-
formatData(): {
|
|
6336
|
-
paymentMethod: {
|
|
6337
|
-
type: string;
|
|
6338
|
-
beneficiaryId: any;
|
|
6339
|
-
};
|
|
6340
|
-
};
|
|
6341
|
-
private onOrderRequest;
|
|
6342
|
-
/**
|
|
6343
|
-
* Check if order exists, if it does Resolve.
|
|
6344
|
-
* Otherwise createOrder and then Resolve.
|
|
6345
|
-
*/
|
|
6346
|
-
createOrder: () => Promise<void>;
|
|
6347
|
-
submit(): boolean;
|
|
6348
|
-
payButton: (props: any) => h.JSX.Element;
|
|
6349
|
-
get isValid(): boolean;
|
|
6350
|
-
get displayName(): string;
|
|
6351
|
-
render(): h.JSX.Element;
|
|
6352
|
-
}
|
|
6353
|
-
|
|
6354
5986
|
declare class DropinElement extends UIElement<DropinConfiguration> implements IDropin {
|
|
6355
5987
|
static type: TxVariants;
|
|
6356
5988
|
protected static defaultProps: DropinConfiguration;
|
|
@@ -6370,11 +6002,13 @@ declare class DropinElement extends UIElement<DropinConfiguration> implements ID
|
|
|
6370
6002
|
showStoredPaymentMethods?: boolean;
|
|
6371
6003
|
disableFinalAnimation?: boolean;
|
|
6372
6004
|
showPaymentMethods?: boolean;
|
|
6005
|
+
openPaymentMethod?: {
|
|
6006
|
+
type: string;
|
|
6007
|
+
};
|
|
6373
6008
|
openFirstStoredPaymentMethod?: boolean;
|
|
6374
6009
|
openFirstPaymentMethod?: boolean;
|
|
6375
|
-
|
|
6376
|
-
|
|
6377
|
-
onSelect?: (paymentMethod: UIElement<UIElementProps>) => void;
|
|
6010
|
+
onReady?(): void;
|
|
6011
|
+
onSelect?(paymentMethod: UIElement<UIElementProps>): void;
|
|
6378
6012
|
showRemovePaymentMethodButton?: boolean;
|
|
6379
6013
|
showRadioButton?: boolean;
|
|
6380
6014
|
onDisableStoredPaymentMethod?: (storedPaymentMethod: any, resolve: any, reject: any) => void;
|
|
@@ -6385,22 +6019,7 @@ declare class DropinElement extends UIElement<DropinConfiguration> implements ID
|
|
|
6385
6019
|
risk?: RiskElement;
|
|
6386
6020
|
};
|
|
6387
6021
|
isDropin?: boolean;
|
|
6388
|
-
onChange?: (state:
|
|
6389
|
-
data: PaymentData;
|
|
6390
|
-
isValid: boolean;
|
|
6391
|
-
valid?: {
|
|
6392
|
-
[fieldKey: string]: boolean;
|
|
6393
|
-
};
|
|
6394
|
-
errors?: {
|
|
6395
|
-
[fieldKey: string]: {
|
|
6396
|
-
isValid: boolean;
|
|
6397
|
-
errorMessage: string;
|
|
6398
|
-
errorI18n: string;
|
|
6399
|
-
error: string;
|
|
6400
|
-
rootNode: HTMLElement;
|
|
6401
|
-
};
|
|
6402
|
-
};
|
|
6403
|
-
}, component: UIElement<UIElementProps>) => void;
|
|
6022
|
+
onChange?: (state: OnChangeData, component: UIElement<UIElementProps>) => void;
|
|
6404
6023
|
onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement<UIElementProps>) => void;
|
|
6405
6024
|
onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement<UIElementProps>) => void;
|
|
6406
6025
|
beforeRedirect?: (resolve: () => void, reject: () => void, redirectData: {
|
|
@@ -6408,20 +6027,10 @@ declare class DropinElement extends UIElement<DropinConfiguration> implements ID
|
|
|
6408
6027
|
method: string;
|
|
6409
6028
|
data?: any;
|
|
6410
6029
|
}) => void;
|
|
6411
|
-
beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions:
|
|
6412
|
-
|
|
6413
|
-
billingAddress?: AddressData;
|
|
6414
|
-
deliveryAddress?: AddressData;
|
|
6415
|
-
shopperEmail?: string;
|
|
6416
|
-
shopperName?: string;
|
|
6417
|
-
}) => void;
|
|
6418
|
-
reject: () => void;
|
|
6419
|
-
}) => void;
|
|
6030
|
+
beforeSubmit?: (state: PaymentData, component: UIElement<UIElementProps>, actions: BeforeSubmitActions) => void;
|
|
6031
|
+
onSubmit?: (state: SubmitData, component: UIElement<UIElementProps>, actions: SubmitActions) => void;
|
|
6420
6032
|
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
6421
|
-
onAdditionalDetails?: (state:
|
|
6422
|
-
resolve: (response: CheckoutAdvancedFlowResponse) => void;
|
|
6423
|
-
reject: () => void;
|
|
6424
|
-
}) => void;
|
|
6033
|
+
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement<UIElementProps>, actions: AdditionalDetailsActions) => void;
|
|
6425
6034
|
onError?: (error: AdyenCheckoutError, component?: UIElement<UIElementProps>) => void;
|
|
6426
6035
|
onOrderUpdated?: (data: {
|
|
6427
6036
|
order: Order;
|
|
@@ -6512,13 +6121,19 @@ declare const index_d_ThreeDS2DeviceFingerprint: typeof ThreeDS2DeviceFingerprin
|
|
|
6512
6121
|
type index_d_UPI = UPI;
|
|
6513
6122
|
declare const index_d_UPI: typeof UPI;
|
|
6514
6123
|
declare namespace index_d {
|
|
6515
|
-
export { ANCVElement as ANCV, AchElement as Ach, AddressElement as Address, index_d_Affirm as Affirm, index_d_AfterPay as AfterPay, index_d_AfterPayB2B as AfterPayB2B, AmazonPayElement as AmazonPay, ApplePayElement as ApplePay, index_d_Atome as Atome, BacsElement as BacsDirectDebit, BancontactElement as Bancontact, BankTransferElement as BankTransfer, BCMCMobileElement as BcmcMobile, BillDeskOnlineElement as BillDeskOnline, BillDeskWalletElement as BillDeskWallet, BlikElement as Blik, BoletoElement as Boleto, CardElement as Card, index_d_CashAppPay as CashAppPay, ClickToPayElement as ClickToPay, index_d_CustomCard as CustomCard, DokuElement as Doku, DonationElement as Donation, DotpayElement as Dotpay, DragonpayElement as Dragonpay, DropinElement as Dropin, DuitNowElement as DuitNow, EPSElement as EPS, EcontextElement as Econtext, FacilyPay10x as FacilPay10x, FacilyPay12x as FacilPay12x, FacilyPay3x as FacilPay3x, FacilyPay4x as FacilPay4x, FacilyPay6x as FacilPay6x, GiftcardElement as Giftcard, GiropayElement as Giropay, index_d_GooglePay as GooglePay,
|
|
6124
|
+
export { ANCVElement as ANCV, AchElement as Ach, AddressElement as Address, index_d_Affirm as Affirm, index_d_AfterPay as AfterPay, index_d_AfterPayB2B as AfterPayB2B, AmazonPayElement as AmazonPay, ApplePayElement as ApplePay, index_d_Atome as Atome, BacsElement as BacsDirectDebit, BancontactElement as Bancontact, BankTransferElement as BankTransfer, BCMCMobileElement as BcmcMobile, BillDeskOnlineElement as BillDeskOnline, BillDeskWalletElement as BillDeskWallet, BlikElement as Blik, BoletoElement as Boleto, CardElement as Card, index_d_CashAppPay as CashAppPay, ClickToPayElement as ClickToPay, index_d_CustomCard as CustomCard, DokuElement as Doku, DonationElement as Donation, DotpayElement as Dotpay, DragonpayElement as Dragonpay, DropinElement as Dropin, DuitNowElement as DuitNow, EPSElement as EPS, EcontextElement as Econtext, FacilyPay10x as FacilPay10x, FacilyPay12x as FacilPay12x, FacilyPay3x as FacilPay3x, FacilyPay4x as FacilPay4x, FacilyPay6x as FacilPay6x, GiftcardElement as Giftcard, GiropayElement as Giropay, index_d_GooglePay as GooglePay, KlarnaPayments as Klarna, MBWayElement as MBWay, MealVoucherFRElement as MealVoucherFR, MolPayEBankingMYElement as MolPayEBankingMY, MolPayEBankingTHElement as MolPayEBankingTH, MolPayEbankingVNElement as MolPayEBankingVN, MultibancoElement as Multibanco, OnlineBankingCZElement as OnlineBankingCZ, index_d_OnlineBankingFI as OnlineBankingFI, OnlineBankingINElement as OnlineBankingIN, index_d_OnlineBankingPL as OnlineBankingPL, OnlineBankingSKElement as OnlineBankingSK, OxxoElement as Oxxo, index_d_PayByBank as PayByBank, PayMeElement as PayMe, PayNowElement as PayNow, PaypalElement as PayPal, PayuNetCashcardElement as PayuCashcard, PayuNetBankingElement as PayuNetBanking, PersonalDetailsElement as PersonalDetails, PixElement as Pix, PromptPayElement as PromptPay, index_d_RatePay as RatePay, index_d_RatePayDirectDebit as RatePayDirectDebit, RedirectElement as Redirect, index_d_Riverty as Riverty, SepaElement as SepaDirectDebit, SwishElement as Swish, index_d_ThreeDS2Challenge as ThreeDS2Challenge, index_d_ThreeDS2DeviceFingerprint as ThreeDS2DeviceFingerprint, TrustlyElement as Trustly, TwintElement as Twint, index_d_UPI as UPI, VippsElement as Vipps, WalletINElement as WalletIN, WeChatPayElement as WeChat };
|
|
6516
6125
|
}
|
|
6517
6126
|
|
|
6518
6127
|
declare class Core implements ICore {
|
|
6519
6128
|
session?: Session;
|
|
6520
6129
|
paymentMethodsResponse: PaymentMethods$1;
|
|
6521
|
-
modules:
|
|
6130
|
+
modules: Readonly<{
|
|
6131
|
+
risk: RiskElement;
|
|
6132
|
+
analytics: AnalyticsModule;
|
|
6133
|
+
resources: Resources;
|
|
6134
|
+
i18n: Language;
|
|
6135
|
+
srPanel: SRPanel;
|
|
6136
|
+
}>;
|
|
6522
6137
|
options: CoreConfiguration;
|
|
6523
6138
|
analyticsContext: string;
|
|
6524
6139
|
loadingContext: string;
|
|
@@ -6534,7 +6149,10 @@ declare class Core implements ICore {
|
|
|
6534
6149
|
supportedTxVariants: Set<string>;
|
|
6535
6150
|
add(...items: NewableComponent[]): void;
|
|
6536
6151
|
getComponent(type: string): NewableComponent;
|
|
6537
|
-
createComponentsMap(components: NewableComponent[]): {};
|
|
6152
|
+
createComponentsMap(components: NewableComponent[]): {}; /**
|
|
6153
|
+
* Used internally by the PaymentMethod components to auto-register themselves
|
|
6154
|
+
* @internal
|
|
6155
|
+
*/
|
|
6538
6156
|
};
|
|
6539
6157
|
static setBundleType(type: string): void;
|
|
6540
6158
|
static register(...items: NewableComponent[]): void;
|
|
@@ -6556,7 +6174,7 @@ declare class Core implements ICore {
|
|
|
6556
6174
|
* @see {https://docs.adyen.com/online-payments/build-your-integration/?platform=Web&integration=Components&version=5.55.1#handle-the-redirect}
|
|
6557
6175
|
* @param details - Details object containing the redirectResult
|
|
6558
6176
|
*/
|
|
6559
|
-
submitDetails(details:
|
|
6177
|
+
submitDetails(details: AdditionalDetailsData['data']): void;
|
|
6560
6178
|
/**
|
|
6561
6179
|
* Instantiates a new element component ready to be mounted from an action object
|
|
6562
6180
|
*
|
|
@@ -6600,8 +6218,8 @@ declare class Core implements ICore {
|
|
|
6600
6218
|
|
|
6601
6219
|
declare function AdyenCheckout(props: CoreConfiguration): Promise<Core>;
|
|
6602
6220
|
declare namespace AdyenCheckout {
|
|
6603
|
-
var register: (...items: (new (checkout: ICore, props: any) =>
|
|
6221
|
+
var register: (...items: (new (checkout: ICore, props: any) => UIElement<UIElementProps>)[]) => void;
|
|
6604
6222
|
var setBundleType: (type: string) => void;
|
|
6605
6223
|
}
|
|
6606
6224
|
|
|
6607
|
-
export { ANCVElement as ANCV, type ANCVConfiguration, type ANCVDataState, AchElement as Ach, type AchConfiguration, type ActionDescriptionType, type ActionHandledReturnObject, type
|
|
6225
|
+
export { ANCVElement as ANCV, type ANCVConfiguration, type ANCVDataState, AchElement as Ach, type AchConfiguration, type ActionDescriptionType, type ActionHandledReturnObject, type AdditionalDetailsActions, type AdditionalDetailsData, AddressElement as Address, type AddressData, type AddressField, AdyenCheckout, AdyenCheckoutError, 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, type BeforeSubmitActions, 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 ChallengeResolveData, 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 ComponentMethodsRef, type CoreConfiguration, type Currency, CustomCard, type CustomCardConfiguration, type DecodeObject, 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 ErrorCodeObject, type ExtendedMerchantInfo, FacilyPay10x as FacilPay10x, FacilyPay12x as FacilPay12x, FacilyPay3x as FacilPay3x, FacilyPay4x as FacilPay4x, FacilyPay6x as FacilPay6x, type FieldsetVisibility, type FingerPrintData, type FingerprintResolveData, type FundingSource, type GiftCardConfiguration, type GiftCardElementData, GiftcardElement as Giftcard, GiropayElement as Giropay, GooglePay, type GooglePayConfiguration, type GooglePaymentDataRequest, type ICore, type IDropin, 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, type OnChangeData, 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, type PayButtonFunctionProps, PayByBank, PayMeElement as PayMe, PayNowElement as PayNow, PaypalElement as PayPal, type PayPalConfiguration, type PayloadJSON, type PaymentAction, type PaymentActionsType, type PaymentAmount, type PaymentAmountExtended, type PaymentCompletedData, type PaymentData, type PaymentFailedData, 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 SubmitActions, type SubmitData, type SupportedLocale, SwishElement as Swish, ThreeDS2Challenge, type ThreeDS2ChallengeConfiguration, ThreeDS2DeviceFingerprint, type ThreeDS2DeviceFingerprintConfiguration, type ThreeDS2FingerprintResponse, type ThreeDS2FlowObject, type ThreeDS2Token, TrustlyElement as Trustly, TwintElement as Twint, UIElement, type UIElementProps, type UIElementStatus, 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, type balanceCheckResponseType, index_d as components, type onBalanceCheckCallbackType, type onOrderCancelData, type onOrderCancelType, type onOrderRequestCallbackType };
|