@paydock/client-sdk 1.128.2 → 1.131.0-beta
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/README.md +529 -0
- package/bundles/index.cjs +2661 -401
- package/bundles/index.cjs.d.ts +395 -194
- package/bundles/index.mjs +2660 -401
- package/bundles/index.mjs.d.ts +395 -194
- package/bundles/types/api/api-internal.d.ts +3 -1
- package/bundles/types/api/api-internal.d.ts.map +1 -1
- package/bundles/types/api/api-payment-source-internal.d.ts +8 -0
- package/bundles/types/api/api-payment-source-internal.d.ts.map +1 -0
- package/bundles/types/checkout/checkout.d.ts +8 -14
- package/bundles/types/checkout/checkout.d.ts.map +1 -1
- package/bundles/types/checkout/helpers/instruction-debugger.d.ts +4 -0
- package/bundles/types/checkout/helpers/instruction-debugger.d.ts.map +1 -0
- package/bundles/types/checkout/helpers/instruction-handler.d.ts +4 -4
- package/bundles/types/checkout/helpers/instruction-handler.d.ts.map +1 -1
- package/bundles/types/checkout/images/card-icons.d.ts +10 -0
- package/bundles/types/checkout/images/card-icons.d.ts.map +1 -0
- package/bundles/types/checkout/index.d.ts +2 -1
- package/bundles/types/checkout/index.d.ts.map +1 -1
- package/bundles/types/checkout/models/checkout.models.d.ts +14 -0
- package/bundles/types/checkout/models/checkout.models.d.ts.map +1 -0
- package/bundles/types/checkout/utils/checkout-styles.util.d.ts +2 -0
- package/bundles/types/checkout/utils/checkout-styles.util.d.ts.map +1 -0
- package/bundles/types/checkout/utils/checkout-version-handler.util.d.ts +3 -0
- package/bundles/types/checkout/utils/checkout-version-handler.util.d.ts.map +1 -0
- package/bundles/types/checkout/v1/helpers/widget-structure-handler.d.ts +10 -0
- package/bundles/types/checkout/v1/helpers/widget-structure-handler.d.ts.map +1 -0
- package/bundles/types/checkout/{instructions/v1 → v1/instructions}/index.d.ts.map +1 -1
- package/bundles/types/checkout/{instructions/v1 → v1/instructions}/instruction.afterpay_checkout_form.show.d.ts +2 -2
- package/bundles/types/checkout/v1/instructions/instruction.afterpay_checkout_form.show.d.ts.map +1 -0
- package/bundles/types/checkout/{instructions/v1 → v1/instructions}/instruction.afterpay_wallet_form.show.d.ts +3 -2
- package/bundles/types/checkout/v1/instructions/instruction.afterpay_wallet_form.show.d.ts.map +1 -0
- package/bundles/types/checkout/{instructions/v1 → v1/instructions}/instruction.apple_pay_form.show.d.ts +3 -2
- package/bundles/types/checkout/v1/instructions/instruction.apple_pay_form.show.d.ts.map +1 -0
- package/bundles/types/checkout/{instructions/v1 → v1/instructions}/instruction.bank_account_form.show.d.ts +2 -2
- package/bundles/types/checkout/v1/instructions/instruction.bank_account_form.show.d.ts.map +1 -0
- package/bundles/types/checkout/{instructions/v1 → v1/instructions}/instruction.canvas_3ds.show.d.ts.map +1 -1
- package/bundles/types/checkout/{instructions/v1 → v1/instructions}/instruction.card_form.show.d.ts +1 -1
- package/bundles/types/checkout/v1/instructions/instruction.card_form.show.d.ts.map +1 -0
- package/bundles/types/checkout/{instructions/v1 → v1/instructions}/instruction.disable_payment_method_event.emit.d.ts +2 -2
- package/bundles/types/checkout/v1/instructions/instruction.disable_payment_method_event.emit.d.ts.map +1 -0
- package/bundles/types/checkout/{instructions/v1 → v1/instructions}/instruction.fraud_service.show.d.ts.map +1 -1
- package/bundles/types/checkout/{instructions/v1 → v1/instructions}/instruction.generic.show_message.d.ts +1 -1
- package/bundles/types/checkout/v1/instructions/instruction.generic.show_message.d.ts.map +1 -0
- package/bundles/types/checkout/{instructions/v1 → v1/instructions}/instruction.google_pay_form.show.d.ts +3 -2
- package/bundles/types/checkout/v1/instructions/instruction.google_pay_form.show.d.ts.map +1 -0
- package/bundles/types/checkout/{instructions/v1 → v1/instructions}/instruction.merchant_event.emit.d.ts +2 -2
- package/bundles/types/checkout/v1/instructions/instruction.merchant_event.emit.d.ts.map +1 -0
- package/bundles/types/checkout/{instructions/v1 → v1/instructions}/instruction.payment_methods.show.d.ts.map +1 -1
- package/bundles/types/checkout/{instructions/v1 → v1/instructions}/instruction.paypal_form.show.d.ts +2 -2
- package/bundles/types/checkout/v1/instructions/instruction.paypal_form.show.d.ts.map +1 -0
- package/bundles/types/checkout/{instructions/v1 → v1/instructions}/instruction.zip_checkout_form.show.d.ts +3 -2
- package/bundles/types/checkout/v1/instructions/instruction.zip_checkout_form.show.d.ts.map +1 -0
- package/bundles/types/checkout/v1/layout-widgets/additionals.d.ts +3 -0
- package/bundles/types/checkout/v1/layout-widgets/additionals.d.ts.map +1 -0
- package/bundles/types/checkout/v1/layout-widgets/default-variables.enum.d.ts.map +1 -0
- package/bundles/types/checkout/{layout-widgets → v1/layout-widgets}/message.d.ts +6 -6
- package/bundles/types/checkout/v1/layout-widgets/message.d.ts.map +1 -0
- package/bundles/types/checkout/v1/layout-widgets/payment-methods-template.d.ts.map +1 -0
- package/bundles/types/checkout/{layout-widgets → v1/layout-widgets}/payment-methods.d.ts +5 -5
- package/bundles/types/checkout/v1/layout-widgets/payment-methods.d.ts.map +1 -0
- package/bundles/types/checkout/v1/layout-widgets/payment-template.d.ts.map +1 -0
- package/bundles/types/checkout/v1/models/checkout.models.d.ts +5 -0
- package/bundles/types/checkout/v1/models/checkout.models.d.ts.map +1 -0
- package/bundles/types/checkout/v3/components/go-back-to-payments-button/go-back-to-payments.d.ts +4 -0
- package/bundles/types/checkout/v3/components/go-back-to-payments-button/go-back-to-payments.d.ts.map +1 -0
- package/bundles/types/checkout/v3/components/list-items-wrapper/list-items-wrapper.d.ts +8 -0
- package/bundles/types/checkout/v3/components/list-items-wrapper/list-items-wrapper.d.ts.map +1 -0
- package/bundles/types/checkout/v3/components/payment-methods-list/payment-methods-list.d.ts +3 -0
- package/bundles/types/checkout/v3/components/payment-methods-list/payment-methods-list.d.ts.map +1 -0
- package/bundles/types/checkout/v3/components/payments-wrapper/payments-wrapper.d.ts +9 -0
- package/bundles/types/checkout/v3/components/payments-wrapper/payments-wrapper.d.ts.map +1 -0
- package/bundles/types/checkout/v3/helpers/widget-structure-handler.d.ts +10 -0
- package/bundles/types/checkout/v3/helpers/widget-structure-handler.d.ts.map +1 -0
- package/bundles/types/checkout/v3/instructions/index.d.ts +4 -0
- package/bundles/types/checkout/v3/instructions/index.d.ts.map +1 -0
- package/bundles/types/checkout/v3/instructions/instruction.afterpay_checkout_form.show.d.ts +20 -0
- package/bundles/types/checkout/v3/instructions/instruction.afterpay_checkout_form.show.d.ts.map +1 -0
- package/bundles/types/checkout/v3/instructions/instruction.afterpay_wallet_form.show.d.ts +17 -0
- package/bundles/types/checkout/v3/instructions/instruction.afterpay_wallet_form.show.d.ts.map +1 -0
- package/bundles/types/checkout/v3/instructions/instruction.apple_pay_form.show.d.ts +17 -0
- package/bundles/types/checkout/v3/instructions/instruction.apple_pay_form.show.d.ts.map +1 -0
- package/bundles/types/checkout/v3/instructions/instruction.bank_account_form.show.d.ts +14 -0
- package/bundles/types/checkout/v3/instructions/instruction.bank_account_form.show.d.ts.map +1 -0
- package/bundles/types/checkout/v3/instructions/instruction.canvas_3ds.show.d.ts +12 -0
- package/bundles/types/checkout/v3/instructions/instruction.canvas_3ds.show.d.ts.map +1 -0
- package/bundles/types/checkout/v3/instructions/instruction.card_form.show.d.ts +24 -0
- package/bundles/types/checkout/v3/instructions/instruction.card_form.show.d.ts.map +1 -0
- package/bundles/types/checkout/v3/instructions/instruction.disable_payment_method_event.emit.d.ts +21 -0
- package/bundles/types/checkout/v3/instructions/instruction.disable_payment_method_event.emit.d.ts.map +1 -0
- package/bundles/types/checkout/v3/instructions/instruction.fraud_service.show.d.ts +21 -0
- package/bundles/types/checkout/v3/instructions/instruction.fraud_service.show.d.ts.map +1 -0
- package/bundles/types/checkout/v3/instructions/instruction.generic.show_message.d.ts +27 -0
- package/bundles/types/checkout/v3/instructions/instruction.generic.show_message.d.ts.map +1 -0
- package/bundles/types/checkout/v3/instructions/instruction.google_pay_form.show.d.ts +17 -0
- package/bundles/types/checkout/v3/instructions/instruction.google_pay_form.show.d.ts.map +1 -0
- package/bundles/types/checkout/v3/instructions/instruction.merchant_event.emit.d.ts +18 -0
- package/bundles/types/checkout/v3/instructions/instruction.merchant_event.emit.d.ts.map +1 -0
- package/bundles/types/checkout/v3/instructions/instruction.payment_methods.show.d.ts +23 -0
- package/bundles/types/checkout/v3/instructions/instruction.payment_methods.show.d.ts.map +1 -0
- package/bundles/types/checkout/v3/instructions/instruction.paypal_form.show.d.ts +19 -0
- package/bundles/types/checkout/v3/instructions/instruction.paypal_form.show.d.ts.map +1 -0
- package/bundles/types/checkout/v3/instructions/instruction.saved_card_form.show.d.ts +22 -0
- package/bundles/types/checkout/v3/instructions/instruction.saved_card_form.show.d.ts.map +1 -0
- package/bundles/types/checkout/v3/instructions/instruction.zip_checkout_form.show.d.ts +19 -0
- package/bundles/types/checkout/v3/instructions/instruction.zip_checkout_form.show.d.ts.map +1 -0
- package/bundles/types/checkout/v3/models/card.model.d.ts +20 -0
- package/bundles/types/checkout/v3/models/card.model.d.ts.map +1 -0
- package/bundles/types/checkout/v3/models/checkout-styles.model.d.ts +9 -0
- package/bundles/types/checkout/v3/models/checkout-styles.model.d.ts.map +1 -0
- package/bundles/types/checkout/v3/models/checkout.models.d.ts +4 -0
- package/bundles/types/checkout/v3/models/checkout.models.d.ts.map +1 -0
- package/bundles/types/checkout/v3/models/payment-methods.model.d.ts +13 -0
- package/bundles/types/checkout/v3/models/payment-methods.model.d.ts.map +1 -0
- package/bundles/types/checkout/v3/styles/additionals.d.ts +3 -0
- package/bundles/types/checkout/v3/styles/additionals.d.ts.map +1 -0
- package/bundles/types/checkout/v3/utils/checkout-customisation-styles.util.d.ts +3 -0
- package/bundles/types/checkout/v3/utils/checkout-customisation-styles.util.d.ts.map +1 -0
- package/bundles/types/components/param.d.ts +5 -0
- package/bundles/types/components/param.d.ts.map +1 -1
- package/bundles/types/configs/env/environment.uba.d.ts +28 -0
- package/bundles/types/configs/env/environment.uba.d.ts.map +1 -0
- package/bundles/types/constants/validators.d.ts +2 -2
- package/bundles/types/constants/validators.d.ts.map +1 -1
- package/bundles/types/fraud-prevention/providers/forter/templates/{forter-snippet-2025-02-06t14:19:34z.template.d.ts → forter-snippet-20250206141934.template.d.ts} +1 -1
- package/bundles/types/fraud-prevention/providers/forter/templates/forter-snippet-20250206141934.template.d.ts.map +1 -0
- package/bundles/types/helper/card-scheme.d.ts +76 -0
- package/bundles/types/helper/card-scheme.d.ts.map +1 -0
- package/bundles/types/index.d.ts +1 -0
- package/bundles/types/index.d.ts.map +1 -1
- package/bundles/types/open-wallets/base/base-open-wallet.d.ts +33 -0
- package/bundles/types/open-wallets/base/base-open-wallet.d.ts.map +1 -0
- package/bundles/types/open-wallets/enum/event.enum.d.ts +8 -0
- package/bundles/types/open-wallets/enum/event.enum.d.ts.map +1 -0
- package/bundles/types/open-wallets/index.d.ts +6 -0
- package/bundles/types/open-wallets/index.d.ts.map +1 -0
- package/bundles/types/open-wallets/interfaces/base-service-config.interface.d.ts +30 -0
- package/bundles/types/open-wallets/interfaces/base-service-config.interface.d.ts.map +1 -0
- package/bundles/types/open-wallets/interfaces/base-wallet-meta.interface.d.ts +5 -0
- package/bundles/types/open-wallets/interfaces/base-wallet-meta.interface.d.ts.map +1 -0
- package/bundles/types/open-wallets/interfaces/events.interface.d.ts +34 -0
- package/bundles/types/open-wallets/interfaces/events.interface.d.ts.map +1 -0
- package/bundles/types/open-wallets/interfaces/index.d.ts +8 -0
- package/bundles/types/open-wallets/interfaces/index.d.ts.map +1 -0
- package/bundles/types/open-wallets/interfaces/payment-source.interface.d.ts +5 -0
- package/bundles/types/open-wallets/interfaces/payment-source.interface.d.ts.map +1 -0
- package/bundles/types/open-wallets/services/index.d.ts +9 -0
- package/bundles/types/open-wallets/services/index.d.ts.map +1 -0
- package/bundles/types/open-wallets/types/index.d.ts +5 -0
- package/bundles/types/open-wallets/types/index.d.ts.map +1 -0
- package/bundles/types/open-wallets/types/ott-backend.type.d.ts +26 -0
- package/bundles/types/open-wallets/types/ott-backend.type.d.ts.map +1 -0
- package/bundles/types/open-wallets/types/ott-response.type.d.ts +8 -0
- package/bundles/types/open-wallets/types/ott-response.type.d.ts.map +1 -0
- package/bundles/types/open-wallets/types/wallet-type.type.d.ts +6 -0
- package/bundles/types/open-wallets/types/wallet-type.type.d.ts.map +1 -0
- package/bundles/types/shared/services/configuration-validation/configuration-validation.d.ts.map +1 -1
- package/bundles/types/shared-ui/components/button.d.ts +23 -0
- package/bundles/types/shared-ui/components/button.d.ts.map +1 -0
- package/bundles/types/shared-ui/components/item-info-blocks.d.ts +20 -0
- package/bundles/types/shared-ui/components/item-info-blocks.d.ts.map +1 -0
- package/bundles/types/shared-ui/components/list-item.d.ts +13 -0
- package/bundles/types/shared-ui/components/list-item.d.ts.map +1 -0
- package/bundles/types/shared-ui/components/loading-spinner.d.ts +12 -0
- package/bundles/types/shared-ui/components/loading-spinner.d.ts.map +1 -0
- package/bundles/types/shared-ui/components/message-card.d.ts +19 -0
- package/bundles/types/shared-ui/components/message-card.d.ts.map +1 -0
- package/bundles/types/shared-ui/components/svg-container.d.ts +2 -0
- package/bundles/types/shared-ui/components/svg-container.d.ts.map +1 -0
- package/bundles/types/shared-ui/components/widget-wrapper.d.ts +2 -0
- package/bundles/types/shared-ui/components/widget-wrapper.d.ts.map +1 -0
- package/bundles/types/shared-ui/models/widget-root.model.d.ts +12 -0
- package/bundles/types/shared-ui/models/widget-root.model.d.ts.map +1 -0
- package/bundles/types/shared-ui/styles/widget-root-styles.d.ts +3 -0
- package/bundles/types/shared-ui/styles/widget-root-styles.d.ts.map +1 -0
- package/bundles/types/shared-ui/utils/loading-spinner.util.d.ts +8 -0
- package/bundles/types/shared-ui/utils/loading-spinner.util.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/enums.d.ts +2 -1
- package/bundles/types/wallet-buttons/enums.d.ts.map +1 -1
- package/bundles/types/wallet-buttons/wallet-buttons.d.ts +12 -6
- package/bundles/types/wallet-buttons/wallet-buttons.d.ts.map +1 -1
- package/bundles/types/wallet-buttons/wallet-services/afterpay.wallet-service.d.ts +2 -2
- package/bundles/types/wallet-buttons/wallet-services/afterpay.wallet-service.d.ts.map +1 -1
- package/bundles/types/wallet-buttons/wallet-services/apple.wallet-service.d.ts +3 -3
- package/bundles/types/wallet-buttons/wallet-services/apple.wallet-service.d.ts.map +1 -1
- package/bundles/types/wallet-buttons/wallet-services/flypay-v2.wallet-service.d.ts +2 -2
- package/bundles/types/wallet-buttons/wallet-services/flypay-v2.wallet-service.d.ts.map +1 -1
- package/bundles/types/wallet-buttons/wallet-services/flypay.wallet-service.d.ts +7 -7
- package/bundles/types/wallet-buttons/wallet-services/flypay.wallet-service.d.ts.map +1 -1
- package/bundles/types/wallet-buttons/wallet-services/google.wallet-service.d.ts.map +1 -1
- package/bundles/types/wallet-buttons/wallet-services/paypal.wallet-service.d.ts +2 -2
- package/bundles/types/wallet-buttons/wallet-services/paypal.wallet-service.d.ts.map +1 -1
- package/bundles/types/wallet-buttons/wallet-services/stripe.wallet-service.d.ts +3 -3
- package/bundles/types/wallet-buttons/wallet-services/stripe.wallet-service.d.ts.map +1 -1
- package/bundles/types/wallet-buttons/wallet-services/wallet-service.d.ts +6 -6
- package/bundles/types/wallet-buttons/wallet-services/wallet-service.d.ts.map +1 -1
- package/bundles/types/wallet-buttons-express/interfaces/charge-wallet-token-meta.interface.d.ts +1 -0
- package/bundles/types/wallet-buttons-express/interfaces/charge-wallet-token-meta.interface.d.ts.map +1 -1
- package/bundles/types/wallet-buttons-express/interfaces/wallet-capture-request.interface.d.ts +20 -0
- package/bundles/types/wallet-buttons-express/interfaces/wallet-capture-request.interface.d.ts.map +1 -1
- package/bundles/types/wallet-buttons-express/services/apple-pay/apple-pay.wallet-button-express.d.ts.map +1 -1
- package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-shipping-data.d.ts +3 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-shipping-data.d.ts.map +1 -1
- package/bundles/types/widget/configuration.d.ts +2 -0
- package/bundles/types/widget/configuration.d.ts.map +1 -1
- package/bundles/types/widget/html-multi-widget.d.ts +7 -5
- package/bundles/types/widget/html-multi-widget.d.ts.map +1 -1
- package/bundles/types/widget/html-widget.d.ts +1 -0
- package/bundles/types/widget/html-widget.d.ts.map +1 -1
- package/bundles/types/widget/multi-widget.d.ts +8 -0
- package/bundles/types/widget/multi-widget.d.ts.map +1 -1
- package/bundles/widget.umd.js +2661 -401
- package/bundles/widget.umd.js.d.ts +395 -194
- package/bundles/widget.umd.js.min.d.ts +395 -194
- package/bundles/widget.umd.min.js +1 -1
- package/docs/wallet-buttons-express-examples.md +528 -0
- package/docs/wallet-buttons.md +1 -0
- package/package.json +3 -2
- package/bundles/types/checkout/instructions/index.d.ts +0 -3
- package/bundles/types/checkout/instructions/index.d.ts.map +0 -1
- package/bundles/types/checkout/instructions/v1/instruction.afterpay_checkout_form.show.d.ts.map +0 -1
- package/bundles/types/checkout/instructions/v1/instruction.afterpay_wallet_form.show.d.ts.map +0 -1
- package/bundles/types/checkout/instructions/v1/instruction.apple_pay_form.show.d.ts.map +0 -1
- package/bundles/types/checkout/instructions/v1/instruction.bank_account_form.show.d.ts.map +0 -1
- package/bundles/types/checkout/instructions/v1/instruction.card_form.show.d.ts.map +0 -1
- package/bundles/types/checkout/instructions/v1/instruction.disable_payment_method_event.emit.d.ts.map +0 -1
- package/bundles/types/checkout/instructions/v1/instruction.generic.show_message.d.ts.map +0 -1
- package/bundles/types/checkout/instructions/v1/instruction.google_pay_form.show.d.ts.map +0 -1
- package/bundles/types/checkout/instructions/v1/instruction.merchant_event.emit.d.ts.map +0 -1
- package/bundles/types/checkout/instructions/v1/instruction.paypal_form.show.d.ts.map +0 -1
- package/bundles/types/checkout/instructions/v1/instruction.zip_checkout_form.show.d.ts.map +0 -1
- package/bundles/types/checkout/layout-widgets/additionals.d.ts +0 -3
- package/bundles/types/checkout/layout-widgets/additionals.d.ts.map +0 -1
- package/bundles/types/checkout/layout-widgets/default-variables.enum.d.ts.map +0 -1
- package/bundles/types/checkout/layout-widgets/message.d.ts.map +0 -1
- package/bundles/types/checkout/layout-widgets/payment-methods-template.d.ts.map +0 -1
- package/bundles/types/checkout/layout-widgets/payment-methods.d.ts.map +0 -1
- package/bundles/types/checkout/layout-widgets/payment-template.d.ts.map +0 -1
- package/bundles/types/fraud-prevention/providers/forter/templates/forter-snippet-2025-02-06t14:19:34z.template.d.ts.map +0 -1
- /package/bundles/types/checkout/{instructions/v1 → v1/instructions}/index.d.ts +0 -0
- /package/bundles/types/checkout/{instructions/v1 → v1/instructions}/instruction.canvas_3ds.show.d.ts +0 -0
- /package/bundles/types/checkout/{instructions/v1 → v1/instructions}/instruction.fraud_service.show.d.ts +0 -0
- /package/bundles/types/checkout/{instructions/v1 → v1/instructions}/instruction.payment_methods.show.d.ts +0 -0
- /package/bundles/types/checkout/{layout-widgets → v1/layout-widgets}/default-variables.enum.d.ts +0 -0
- /package/bundles/types/checkout/{layout-widgets → v1/layout-widgets}/payment-methods-template.d.ts +0 -0
- /package/bundles/types/checkout/{layout-widgets → v1/layout-widgets}/payment-template.d.ts +0 -0
|
@@ -239,7 +239,7 @@ declare const CARD_VALIDATORS: {
|
|
|
239
239
|
readonly NUMBER: "cardNumberValidator";
|
|
240
240
|
readonly PIN: "cardPinValidator";
|
|
241
241
|
};
|
|
242
|
-
type CardValidatorValue = typeof CARD_VALIDATORS[keyof typeof CARD_VALIDATORS];
|
|
242
|
+
type CardValidatorValue = (typeof CARD_VALIDATORS)[keyof typeof CARD_VALIDATORS];
|
|
243
243
|
/**
|
|
244
244
|
* List of available generic form field validators and their definition
|
|
245
245
|
*
|
|
@@ -253,7 +253,7 @@ type CardValidatorValue = typeof CARD_VALIDATORS[keyof typeof CARD_VALIDATORS];
|
|
|
253
253
|
declare const GENERIC_VALIDATORS: {
|
|
254
254
|
readonly REQUIRED: "required";
|
|
255
255
|
};
|
|
256
|
-
type GenericValidatorValue = typeof GENERIC_VALIDATORS[keyof typeof GENERIC_VALIDATORS];
|
|
256
|
+
type GenericValidatorValue = (typeof GENERIC_VALIDATORS)[keyof typeof GENERIC_VALIDATORS];
|
|
257
257
|
|
|
258
258
|
declare const FORM_FIELD: {
|
|
259
259
|
CARD_NAME: string;
|
|
@@ -282,6 +282,8 @@ declare const FORM_FIELD: {
|
|
|
282
282
|
ADDRESS_POSTCODE: string;
|
|
283
283
|
ADDRESS_COMPANY: string;
|
|
284
284
|
SAVE_CARD_CONSENT_ACCEPTED: string;
|
|
285
|
+
ENABLE_CVV_TOKENIZATION_MODE: string;
|
|
286
|
+
CARD_NUMBER_LAST4: string;
|
|
285
287
|
};
|
|
286
288
|
declare const STYLE: {
|
|
287
289
|
BACKGROUND_COLOR: string;
|
|
@@ -364,6 +366,7 @@ interface IFormPropertyOption {
|
|
|
364
366
|
address_city?: string;
|
|
365
367
|
address_postcode?: string;
|
|
366
368
|
address_company?: string;
|
|
369
|
+
card_number_last4?: string;
|
|
367
370
|
}
|
|
368
371
|
interface IFormValues extends IFormPropertyOption {
|
|
369
372
|
}
|
|
@@ -457,6 +460,8 @@ interface IParams extends IStyles$1, ITexts, ICommonParams {
|
|
|
457
460
|
sdk_origin?: boolean;
|
|
458
461
|
hide_ui_errors?: boolean;
|
|
459
462
|
save_card_consent_accepted?: string;
|
|
463
|
+
enable_cvv_tokenization_mode?: string;
|
|
464
|
+
card_number_last4?: string;
|
|
460
465
|
}
|
|
461
466
|
interface ICountryPhoneMask {
|
|
462
467
|
preferred_countries?: string[];
|
|
@@ -564,7 +569,7 @@ interface VaultDisplayStyle {
|
|
|
564
569
|
font_size?: string;
|
|
565
570
|
font_family?: string;
|
|
566
571
|
}
|
|
567
|
-
interface IApplePayShippingOption {
|
|
572
|
+
interface IApplePayShippingOption$1 {
|
|
568
573
|
id: string;
|
|
569
574
|
label: string;
|
|
570
575
|
detail: string;
|
|
@@ -584,7 +589,7 @@ interface IPayPalShippingOption {
|
|
|
584
589
|
currency: string;
|
|
585
590
|
type: 'SHIPPING' | 'PICKUP';
|
|
586
591
|
}
|
|
587
|
-
type IShippingOption = IApplePayShippingOption | IGooglePayShippingOption | IPayPalShippingOption;
|
|
592
|
+
type IShippingOption = IApplePayShippingOption$1 | IGooglePayShippingOption | IPayPalShippingOption;
|
|
588
593
|
declare enum WALLET_TYPE {
|
|
589
594
|
GOOGLE = "google",
|
|
590
595
|
APPLE = "apple",
|
|
@@ -723,6 +728,7 @@ interface IGeneral {
|
|
|
723
728
|
meta?: IPayPalMeta;
|
|
724
729
|
label?: string;
|
|
725
730
|
dynamic_fields_position?: boolean;
|
|
731
|
+
disable_result_message?: boolean;
|
|
726
732
|
}
|
|
727
733
|
interface IPredefinedFields {
|
|
728
734
|
gateway_id: string;
|
|
@@ -846,6 +852,7 @@ declare class Configuration {
|
|
|
846
852
|
private getUrl;
|
|
847
853
|
private getDefaultGatewayUrl;
|
|
848
854
|
setGiftCardSchemeData(giftCardScheme: any, processingNetwork: any): void;
|
|
855
|
+
disableResultMessage(): void;
|
|
849
856
|
}
|
|
850
857
|
|
|
851
858
|
/**
|
|
@@ -1225,6 +1232,14 @@ declare class MultiWidget {
|
|
|
1225
1232
|
*
|
|
1226
1233
|
*/
|
|
1227
1234
|
enableSaveCardConsentCheckbox(): void;
|
|
1235
|
+
/**
|
|
1236
|
+
* The Current method enable the cvv mode for card form
|
|
1237
|
+
*
|
|
1238
|
+
* @example
|
|
1239
|
+
* widget.enableCvvTokenizationMode();
|
|
1240
|
+
*
|
|
1241
|
+
*/
|
|
1242
|
+
enableCvvTokenizationMode(): void;
|
|
1228
1243
|
}
|
|
1229
1244
|
|
|
1230
1245
|
interface ITriggerData {
|
|
@@ -1284,6 +1299,8 @@ interface IEventMetaData extends IEventData$1 {
|
|
|
1284
1299
|
interface IEventFinishData extends IEventData$1 {
|
|
1285
1300
|
payment_source: string;
|
|
1286
1301
|
payment_source_token?: string;
|
|
1302
|
+
card_scheme?: string;
|
|
1303
|
+
save_card_consent_accepted?: boolean;
|
|
1287
1304
|
}
|
|
1288
1305
|
/**
|
|
1289
1306
|
* Interface of data from validation event.
|
|
@@ -1700,6 +1717,7 @@ declare class HtmlWidget extends HtmlMultiWidget {
|
|
|
1700
1717
|
*/
|
|
1701
1718
|
setMeta(meta: IPayPalMeta | IBamboraMeta): void;
|
|
1702
1719
|
setGiftCardScheme(giftCardScheme: any, processingNetwork: any): void;
|
|
1720
|
+
disableResultMessage(): void;
|
|
1703
1721
|
}
|
|
1704
1722
|
|
|
1705
1723
|
/**
|
|
@@ -1724,7 +1742,7 @@ interface IEventData$1 {
|
|
|
1724
1742
|
ref_id?: string;
|
|
1725
1743
|
error?: IEventError;
|
|
1726
1744
|
}
|
|
1727
|
-
declare const EVENT$
|
|
1745
|
+
declare const EVENT$2: {
|
|
1728
1746
|
readonly AFTER_LOAD: "afterLoad";
|
|
1729
1747
|
readonly SUBMIT: "submit";
|
|
1730
1748
|
readonly FINISH: "finish";
|
|
@@ -1756,7 +1774,7 @@ declare const EVENT$1: {
|
|
|
1756
1774
|
readonly DISPATCH_SUCCESS: "dispatchSuccess";
|
|
1757
1775
|
readonly DISPATCH_ERROR: "dispatchError";
|
|
1758
1776
|
};
|
|
1759
|
-
type EventTypes = typeof EVENT$
|
|
1777
|
+
type EventTypes = typeof EVENT$2[keyof typeof EVENT$2];
|
|
1760
1778
|
interface Listener {
|
|
1761
1779
|
event: string;
|
|
1762
1780
|
listener: (event: any) => void;
|
|
@@ -2855,110 +2873,6 @@ declare class HtmlPaymentSourceWidget extends PaymentSourceWidget {
|
|
|
2855
2873
|
onSelectInsert(selector: string, dataType: string): void;
|
|
2856
2874
|
}
|
|
2857
2875
|
|
|
2858
|
-
declare const TYPE: {
|
|
2859
|
-
EXTERNAL_CHECKOUT_TOKEN: string;
|
|
2860
|
-
CHECKOUT_TOKEN: string;
|
|
2861
|
-
BANK_ACCOUNT: string;
|
|
2862
|
-
CARD: string;
|
|
2863
|
-
};
|
|
2864
|
-
interface IBody {
|
|
2865
|
-
gateway_id: string;
|
|
2866
|
-
type: string;
|
|
2867
|
-
checkout_token?: string;
|
|
2868
|
-
}
|
|
2869
|
-
declare class Builder extends HttpCore {
|
|
2870
|
-
private body;
|
|
2871
|
-
constructor(gatewayID: string, checkoutToken: string, type: string);
|
|
2872
|
-
constructor(gatewayID: string, externalCheckoutToken: string, type: string);
|
|
2873
|
-
constructor(gatewayID: string, card: any, type: string);
|
|
2874
|
-
constructor(gatewayID: string, bankAccount: any, type: string);
|
|
2875
|
-
protected getLink(): string;
|
|
2876
|
-
send(accessToken: string, cb: (token: string) => void, errorCb?: (error: any) => void): void;
|
|
2877
|
-
getConfigs(): IBody;
|
|
2878
|
-
}
|
|
2879
|
-
|
|
2880
|
-
interface IBaseSRCMeta {
|
|
2881
|
-
customizations?: IStyles;
|
|
2882
|
-
dpa_data?: {
|
|
2883
|
-
dpa_presentation_name?: string;
|
|
2884
|
-
dpa_uri?: string;
|
|
2885
|
-
};
|
|
2886
|
-
dpa_transaction_options?: {
|
|
2887
|
-
dpa_locale?: string;
|
|
2888
|
-
dpa_accepted_billing_countries?: string[];
|
|
2889
|
-
consumer_name_requested?: boolean;
|
|
2890
|
-
consumer_email_address_requested?: boolean;
|
|
2891
|
-
consumer_phone_number_requested?: boolean;
|
|
2892
|
-
transaction_amount?: {
|
|
2893
|
-
transaction_amount?: number;
|
|
2894
|
-
transaction_currency_code?: string;
|
|
2895
|
-
};
|
|
2896
|
-
merchant_order_id?: string;
|
|
2897
|
-
merchant_category_code?: string;
|
|
2898
|
-
merchant_country_code?: string;
|
|
2899
|
-
};
|
|
2900
|
-
}
|
|
2901
|
-
interface PhoneNumber {
|
|
2902
|
-
country_code: string;
|
|
2903
|
-
phone_number: string;
|
|
2904
|
-
}
|
|
2905
|
-
interface Customer {
|
|
2906
|
-
email?: string;
|
|
2907
|
-
phone?: {
|
|
2908
|
-
country_code?: string;
|
|
2909
|
-
phone?: string;
|
|
2910
|
-
};
|
|
2911
|
-
first_name?: string;
|
|
2912
|
-
last_name?: string;
|
|
2913
|
-
}
|
|
2914
|
-
interface DpaConfig {
|
|
2915
|
-
dpa_id: string;
|
|
2916
|
-
dpa_name: string;
|
|
2917
|
-
dpa_supported_card_schemes: ('MASTERCARD' | 'VISA' | 'AMEX' | 'DISCOVER')[];
|
|
2918
|
-
mode: 'sandbox' | 'live';
|
|
2919
|
-
}
|
|
2920
|
-
interface IClickToPayMeta extends IBaseSRCMeta {
|
|
2921
|
-
dpa_data?: IBaseSRCMeta['dpa_data'] & {
|
|
2922
|
-
dpa_address?: string;
|
|
2923
|
-
dpa_email_address?: string;
|
|
2924
|
-
dpa_phone_number?: PhoneNumber;
|
|
2925
|
-
dpa_logo_uri?: string;
|
|
2926
|
-
dpa_supported_email_address?: string;
|
|
2927
|
-
dpa_supported_phone_number?: PhoneNumber;
|
|
2928
|
-
dpa_uri?: string;
|
|
2929
|
-
dpa_support_uri?: string;
|
|
2930
|
-
application_type?: 'WEB_BROWSER' | 'MOBILE_APP';
|
|
2931
|
-
};
|
|
2932
|
-
disable_summary_screen?: boolean;
|
|
2933
|
-
co_brand_names?: string[];
|
|
2934
|
-
checkout_experience?: 'WITHIN_CHECKOUT' | 'PAYMENT_SETTINGS';
|
|
2935
|
-
services?: 'INLINE_CHECKOUT' | 'INLINE_INSTALLMENTS';
|
|
2936
|
-
dpa_transaction_options?: IBaseSRCMeta['dpa_transaction_options'] & {
|
|
2937
|
-
dpa_billing_preference?: MASTERCARD_DPA_SHIPPING_BILLING_PREFERENCE;
|
|
2938
|
-
payment_options?: Array<{
|
|
2939
|
-
dynamic_data_type?: string;
|
|
2940
|
-
}>;
|
|
2941
|
-
order_type?: MASTERCARD_ORDER_TYPE;
|
|
2942
|
-
three_ds_preference?: string;
|
|
2943
|
-
confirm_payment?: boolean;
|
|
2944
|
-
};
|
|
2945
|
-
customer?: Customer;
|
|
2946
|
-
unaccepted_card_type?: 'CREDIT' | 'DEBIT';
|
|
2947
|
-
recognition_token?: string;
|
|
2948
|
-
dpa_config?: DpaConfig;
|
|
2949
|
-
hold_for_customer_data?: boolean;
|
|
2950
|
-
}
|
|
2951
|
-
type MASTERCARD_DPA_SHIPPING_BILLING_PREFERENCE = 'FULL' | 'POSTAL_COUNTRY' | 'NONE';
|
|
2952
|
-
type MASTERCARD_ORDER_TYPE = 'SPLIT_SHIPMENT' | 'PREFERRED_CARD';
|
|
2953
|
-
interface IStyles {
|
|
2954
|
-
primary_button_color?: string;
|
|
2955
|
-
secondary_button_color?: string;
|
|
2956
|
-
primary_button_text_color?: string;
|
|
2957
|
-
secondary_button_text_color?: string;
|
|
2958
|
-
font_family?: string;
|
|
2959
|
-
enable_src_popup?: boolean;
|
|
2960
|
-
}
|
|
2961
|
-
|
|
2962
2876
|
declare class ApiChargeInternal {
|
|
2963
2877
|
protected api: ApiInternal;
|
|
2964
2878
|
constructor(api: ApiInternal);
|
|
@@ -3056,6 +2970,15 @@ interface ProcessAuthenticationResponse {
|
|
|
3056
2970
|
};
|
|
3057
2971
|
}
|
|
3058
2972
|
|
|
2973
|
+
declare class ApiCheckoutInternal {
|
|
2974
|
+
protected api: ApiInternal;
|
|
2975
|
+
constructor(api: ApiInternal);
|
|
2976
|
+
instructions(): Observable<object>;
|
|
2977
|
+
private getInstructionLink;
|
|
2978
|
+
callback(payload: Object): Promise<Object>;
|
|
2979
|
+
status(id: string): Promise<Object>;
|
|
2980
|
+
}
|
|
2981
|
+
|
|
3059
2982
|
declare class ApiGatewayInternal {
|
|
3060
2983
|
protected api: ApiInternal;
|
|
3061
2984
|
constructor(api: ApiInternal);
|
|
@@ -3067,6 +2990,36 @@ interface GetWalletConfigResponse {
|
|
|
3067
2990
|
credentials?: object;
|
|
3068
2991
|
}
|
|
3069
2992
|
|
|
2993
|
+
interface CreateOTTResponse {
|
|
2994
|
+
status: number;
|
|
2995
|
+
error: string | null;
|
|
2996
|
+
resource: {
|
|
2997
|
+
type: string;
|
|
2998
|
+
data: {
|
|
2999
|
+
token: string;
|
|
3000
|
+
'3ds_required': boolean;
|
|
3001
|
+
};
|
|
3002
|
+
};
|
|
3003
|
+
}
|
|
3004
|
+
interface CreateOTTRequest {
|
|
3005
|
+
checkoutData: CheckoutResponse;
|
|
3006
|
+
}
|
|
3007
|
+
type CheckoutResponse = ApplePayJS.ApplePayPaymentAuthorizedEvent | google.payments.api.PaymentAuthorizationResult;
|
|
3008
|
+
declare enum CheckoutActionCode {
|
|
3009
|
+
COMPLETE = "COMPLETE",
|
|
3010
|
+
CANCEL = "CANCEL",
|
|
3011
|
+
ERROR = "ERROR",
|
|
3012
|
+
CHANGE_CARD = "CHANGE_CARD",
|
|
3013
|
+
ADD_CARD = "ADD_CARD",
|
|
3014
|
+
SWITCH_CONSUMER = "SWITCH_CONSUMER"
|
|
3015
|
+
}
|
|
3016
|
+
|
|
3017
|
+
declare class ApiPaymentSourceInternal {
|
|
3018
|
+
protected api: ApiInternal;
|
|
3019
|
+
constructor(api: ApiInternal);
|
|
3020
|
+
createOTT(payload: CreateOTTRequest): Promise<CreateOTTResponse>;
|
|
3021
|
+
}
|
|
3022
|
+
|
|
3070
3023
|
declare class ApiServiceInternal {
|
|
3071
3024
|
protected api: ApiInternal;
|
|
3072
3025
|
constructor(api: ApiInternal);
|
|
@@ -3081,20 +3034,242 @@ interface GetConfigResponse {
|
|
|
3081
3034
|
certificate_passphrase: string;
|
|
3082
3035
|
}
|
|
3083
3036
|
|
|
3084
|
-
declare class ApiCheckoutInternal {
|
|
3085
|
-
protected api: ApiInternal;
|
|
3086
|
-
constructor(api: ApiInternal);
|
|
3087
|
-
instructions(): Observable<object>;
|
|
3088
|
-
private getInstructionLink;
|
|
3089
|
-
callback(payload: Object): Promise<Object>;
|
|
3090
|
-
status(id: string): Promise<Object>;
|
|
3091
|
-
}
|
|
3092
|
-
|
|
3093
3037
|
declare class ApiInternal extends ApiBase {
|
|
3094
3038
|
charge(): ApiChargeInternal;
|
|
3095
3039
|
service(): ApiServiceInternal;
|
|
3096
3040
|
checkout(): ApiCheckoutInternal;
|
|
3097
3041
|
gateway(): ApiGatewayInternal;
|
|
3042
|
+
paymentSource(): ApiPaymentSourceInternal;
|
|
3043
|
+
}
|
|
3044
|
+
|
|
3045
|
+
type WalletType = WALLET_TYPES;
|
|
3046
|
+
declare enum WALLET_TYPES {
|
|
3047
|
+
APPLE_PAY = "ApplePay",
|
|
3048
|
+
GOOGLE_PAY = "GooglePay"
|
|
3049
|
+
}
|
|
3050
|
+
|
|
3051
|
+
interface OTTResponse {
|
|
3052
|
+
token: string;
|
|
3053
|
+
token_type: string;
|
|
3054
|
+
three_ds_required?: boolean;
|
|
3055
|
+
wallet_type: WalletType;
|
|
3056
|
+
}
|
|
3057
|
+
|
|
3058
|
+
interface BaseServiceConfig<T = Record<string, unknown>> {
|
|
3059
|
+
type: string;
|
|
3060
|
+
credentials?: T;
|
|
3061
|
+
meta?: Record<string, unknown>;
|
|
3062
|
+
}
|
|
3063
|
+
interface ApplePayServiceConfig {
|
|
3064
|
+
apple: {
|
|
3065
|
+
merchant: {
|
|
3066
|
+
merchant_id: string;
|
|
3067
|
+
domain_name: string;
|
|
3068
|
+
display_name: string;
|
|
3069
|
+
};
|
|
3070
|
+
certificate: {
|
|
3071
|
+
certificate_id: string;
|
|
3072
|
+
private_key: string;
|
|
3073
|
+
};
|
|
3074
|
+
};
|
|
3075
|
+
}
|
|
3076
|
+
interface GooglePayServiceConfig {
|
|
3077
|
+
google_pay: {
|
|
3078
|
+
merchant: {
|
|
3079
|
+
merchant_id: string;
|
|
3080
|
+
merchant_name: string;
|
|
3081
|
+
};
|
|
3082
|
+
gateway_merchant_id: string;
|
|
3083
|
+
allowed_auth_methods: string[];
|
|
3084
|
+
allowed_card_networks: string[];
|
|
3085
|
+
};
|
|
3086
|
+
}
|
|
3087
|
+
|
|
3088
|
+
interface BaseWalletMeta$1 {
|
|
3089
|
+
amount: number;
|
|
3090
|
+
currency: string;
|
|
3091
|
+
}
|
|
3092
|
+
|
|
3093
|
+
interface BaseEventData<T> {
|
|
3094
|
+
event: string;
|
|
3095
|
+
chargeId?: string;
|
|
3096
|
+
data?: T | undefined;
|
|
3097
|
+
}
|
|
3098
|
+
|
|
3099
|
+
declare enum EVENT$1 {
|
|
3100
|
+
ON_CLICK = "onClick",
|
|
3101
|
+
SUCCESS = "success",
|
|
3102
|
+
UNAVAILABLE = "unavailable",
|
|
3103
|
+
ERROR = "error"
|
|
3104
|
+
}
|
|
3105
|
+
type OpenWalletEventType = EVENT$1;
|
|
3106
|
+
|
|
3107
|
+
interface OnClickEventData$1 {
|
|
3108
|
+
request_type: string;
|
|
3109
|
+
wallet_type?: string;
|
|
3110
|
+
meta?: Record<string, unknown>;
|
|
3111
|
+
}
|
|
3112
|
+
interface OnCrateOTTSuccessfulEventData {
|
|
3113
|
+
token: string;
|
|
3114
|
+
token_type: string;
|
|
3115
|
+
checkoutData?: CheckoutResponse | unknown;
|
|
3116
|
+
three_ds_required?: boolean;
|
|
3117
|
+
wallet_type: string;
|
|
3118
|
+
}
|
|
3119
|
+
interface OnCreateOTTErrorEventData extends BaseEventData<{
|
|
3120
|
+
message?: string;
|
|
3121
|
+
code?: string;
|
|
3122
|
+
}> {
|
|
3123
|
+
event: EVENT$1.ERROR;
|
|
3124
|
+
}
|
|
3125
|
+
interface OnUnavailableEventData$1 {
|
|
3126
|
+
wallet_type: string;
|
|
3127
|
+
reason: string;
|
|
3128
|
+
details?: Record<string, unknown>;
|
|
3129
|
+
}
|
|
3130
|
+
interface OnErrorEventData$1 {
|
|
3131
|
+
error: Error;
|
|
3132
|
+
context?: {
|
|
3133
|
+
operation?: string;
|
|
3134
|
+
wallet_type?: string;
|
|
3135
|
+
};
|
|
3136
|
+
}
|
|
3137
|
+
|
|
3138
|
+
interface WalletPaymentSource {
|
|
3139
|
+
load(): void;
|
|
3140
|
+
setMeta(meta: object): void;
|
|
3141
|
+
}
|
|
3142
|
+
|
|
3143
|
+
declare abstract class BaseOpenWallet<T extends BaseWalletMeta$1> implements WalletPaymentSource {
|
|
3144
|
+
protected container: Container;
|
|
3145
|
+
protected api: ApiInternal;
|
|
3146
|
+
protected env: string;
|
|
3147
|
+
protected serviceId: string;
|
|
3148
|
+
protected meta: T;
|
|
3149
|
+
protected eventEmitter: EventEmitter;
|
|
3150
|
+
abstract readonly walletType: WalletType;
|
|
3151
|
+
constructor(selector: string, publicKeyOrAccessToken: string, serviceId: string, meta: T, requiredMetaFields: string[]);
|
|
3152
|
+
private getApiAuthType;
|
|
3153
|
+
setEnv(env: string, alias?: string): void;
|
|
3154
|
+
private validateRequiredMetaFields;
|
|
3155
|
+
abstract load(): void;
|
|
3156
|
+
abstract setMeta(meta: object): void;
|
|
3157
|
+
onClick(handler: (data: OnClickEventData$1) => Promise<string>): () => void;
|
|
3158
|
+
onSuccess(handler?: (data: OnCrateOTTSuccessfulEventData) => void): Promise<unknown> | (() => void);
|
|
3159
|
+
onUnavailable(handler?: (data: OnUnavailableEventData$1) => void): Promise<unknown> | (() => void);
|
|
3160
|
+
onError(handler?: (data: OnErrorEventData$1) => void): Promise<unknown> | (() => void);
|
|
3161
|
+
protected getServiceWalletConfig<K>(): Promise<BaseServiceConfig<K>>;
|
|
3162
|
+
protected executeOpenWalletCallback<K, U extends {
|
|
3163
|
+
request_type: string;
|
|
3164
|
+
}>(data: U): Promise<K>;
|
|
3165
|
+
protected createOTT(data: CreateOTTRequest): Promise<CreateOTTResponse>;
|
|
3166
|
+
protected handleOnError(error: Error): void;
|
|
3167
|
+
protected handleOnUnavailable(reason?: string): void;
|
|
3168
|
+
destroy(): void;
|
|
3169
|
+
}
|
|
3170
|
+
|
|
3171
|
+
declare const TYPE: {
|
|
3172
|
+
EXTERNAL_CHECKOUT_TOKEN: string;
|
|
3173
|
+
CHECKOUT_TOKEN: string;
|
|
3174
|
+
BANK_ACCOUNT: string;
|
|
3175
|
+
CARD: string;
|
|
3176
|
+
};
|
|
3177
|
+
interface IBody {
|
|
3178
|
+
gateway_id: string;
|
|
3179
|
+
type: string;
|
|
3180
|
+
checkout_token?: string;
|
|
3181
|
+
}
|
|
3182
|
+
declare class Builder extends HttpCore {
|
|
3183
|
+
private body;
|
|
3184
|
+
constructor(gatewayID: string, checkoutToken: string, type: string);
|
|
3185
|
+
constructor(gatewayID: string, externalCheckoutToken: string, type: string);
|
|
3186
|
+
constructor(gatewayID: string, card: any, type: string);
|
|
3187
|
+
constructor(gatewayID: string, bankAccount: any, type: string);
|
|
3188
|
+
protected getLink(): string;
|
|
3189
|
+
send(accessToken: string, cb: (token: string) => void, errorCb?: (error: any) => void): void;
|
|
3190
|
+
getConfigs(): IBody;
|
|
3191
|
+
}
|
|
3192
|
+
|
|
3193
|
+
interface IBaseSRCMeta {
|
|
3194
|
+
customizations?: IStyles;
|
|
3195
|
+
dpa_data?: {
|
|
3196
|
+
dpa_presentation_name?: string;
|
|
3197
|
+
dpa_uri?: string;
|
|
3198
|
+
};
|
|
3199
|
+
dpa_transaction_options?: {
|
|
3200
|
+
dpa_locale?: string;
|
|
3201
|
+
dpa_accepted_billing_countries?: string[];
|
|
3202
|
+
consumer_name_requested?: boolean;
|
|
3203
|
+
consumer_email_address_requested?: boolean;
|
|
3204
|
+
consumer_phone_number_requested?: boolean;
|
|
3205
|
+
transaction_amount?: {
|
|
3206
|
+
transaction_amount?: number;
|
|
3207
|
+
transaction_currency_code?: string;
|
|
3208
|
+
};
|
|
3209
|
+
merchant_order_id?: string;
|
|
3210
|
+
merchant_category_code?: string;
|
|
3211
|
+
merchant_country_code?: string;
|
|
3212
|
+
};
|
|
3213
|
+
}
|
|
3214
|
+
interface PhoneNumber {
|
|
3215
|
+
country_code: string;
|
|
3216
|
+
phone_number: string;
|
|
3217
|
+
}
|
|
3218
|
+
interface Customer {
|
|
3219
|
+
email?: string;
|
|
3220
|
+
phone?: {
|
|
3221
|
+
country_code?: string;
|
|
3222
|
+
phone?: string;
|
|
3223
|
+
};
|
|
3224
|
+
first_name?: string;
|
|
3225
|
+
last_name?: string;
|
|
3226
|
+
}
|
|
3227
|
+
interface DpaConfig {
|
|
3228
|
+
dpa_id: string;
|
|
3229
|
+
dpa_name: string;
|
|
3230
|
+
dpa_supported_card_schemes: ('MASTERCARD' | 'VISA' | 'AMEX' | 'DISCOVER')[];
|
|
3231
|
+
mode: 'sandbox' | 'live';
|
|
3232
|
+
}
|
|
3233
|
+
interface IClickToPayMeta extends IBaseSRCMeta {
|
|
3234
|
+
dpa_data?: IBaseSRCMeta['dpa_data'] & {
|
|
3235
|
+
dpa_address?: string;
|
|
3236
|
+
dpa_email_address?: string;
|
|
3237
|
+
dpa_phone_number?: PhoneNumber;
|
|
3238
|
+
dpa_logo_uri?: string;
|
|
3239
|
+
dpa_supported_email_address?: string;
|
|
3240
|
+
dpa_supported_phone_number?: PhoneNumber;
|
|
3241
|
+
dpa_uri?: string;
|
|
3242
|
+
dpa_support_uri?: string;
|
|
3243
|
+
application_type?: 'WEB_BROWSER' | 'MOBILE_APP';
|
|
3244
|
+
};
|
|
3245
|
+
disable_summary_screen?: boolean;
|
|
3246
|
+
co_brand_names?: string[];
|
|
3247
|
+
checkout_experience?: 'WITHIN_CHECKOUT' | 'PAYMENT_SETTINGS';
|
|
3248
|
+
services?: 'INLINE_CHECKOUT' | 'INLINE_INSTALLMENTS';
|
|
3249
|
+
dpa_transaction_options?: IBaseSRCMeta['dpa_transaction_options'] & {
|
|
3250
|
+
dpa_billing_preference?: MASTERCARD_DPA_SHIPPING_BILLING_PREFERENCE;
|
|
3251
|
+
payment_options?: Array<{
|
|
3252
|
+
dynamic_data_type?: string;
|
|
3253
|
+
}>;
|
|
3254
|
+
order_type?: MASTERCARD_ORDER_TYPE;
|
|
3255
|
+
three_ds_preference?: string;
|
|
3256
|
+
confirm_payment?: boolean;
|
|
3257
|
+
};
|
|
3258
|
+
customer?: Customer;
|
|
3259
|
+
unaccepted_card_type?: 'CREDIT' | 'DEBIT';
|
|
3260
|
+
recognition_token?: string;
|
|
3261
|
+
dpa_config?: DpaConfig;
|
|
3262
|
+
hold_for_customer_data?: boolean;
|
|
3263
|
+
}
|
|
3264
|
+
type MASTERCARD_DPA_SHIPPING_BILLING_PREFERENCE = 'FULL' | 'POSTAL_COUNTRY' | 'NONE';
|
|
3265
|
+
type MASTERCARD_ORDER_TYPE = 'SPLIT_SHIPMENT' | 'PREFERRED_CARD';
|
|
3266
|
+
interface IStyles {
|
|
3267
|
+
primary_button_color?: string;
|
|
3268
|
+
secondary_button_color?: string;
|
|
3269
|
+
primary_button_text_color?: string;
|
|
3270
|
+
secondary_button_text_color?: string;
|
|
3271
|
+
font_family?: string;
|
|
3272
|
+
enable_src_popup?: boolean;
|
|
3098
3273
|
}
|
|
3099
3274
|
|
|
3100
3275
|
type CustomerData = Customer;
|
|
@@ -3307,6 +3482,64 @@ declare class VaultDisplayWidget {
|
|
|
3307
3482
|
load(): void;
|
|
3308
3483
|
}
|
|
3309
3484
|
|
|
3485
|
+
declare enum EventEnum {
|
|
3486
|
+
UNAVAILABLE = "unavailable",
|
|
3487
|
+
UPDATE = "update",
|
|
3488
|
+
PAYMENT_SUCCESSFUL = "paymentSuccessful",
|
|
3489
|
+
PAYMENT_ERROR = "paymentError",
|
|
3490
|
+
PAYMENT_IN_REVIEW = "paymentInReview",
|
|
3491
|
+
AUTH_TOKENS_CHANGED = "authTokensChanged",
|
|
3492
|
+
ON_CLICK = "onClick",
|
|
3493
|
+
ON_CHECKOUT_OPEN = "onCheckoutOpen",
|
|
3494
|
+
ON_CHECKOUT_CLOSE = "onCheckoutClose",
|
|
3495
|
+
ON_WALLET_LOADED = "onWalletLoaded"
|
|
3496
|
+
}
|
|
3497
|
+
|
|
3498
|
+
interface IWalletPaymentSuccessful {
|
|
3499
|
+
id: string;
|
|
3500
|
+
amount: number;
|
|
3501
|
+
currency: string;
|
|
3502
|
+
status: string;
|
|
3503
|
+
payer_name?: string;
|
|
3504
|
+
payer_email?: string;
|
|
3505
|
+
payer_phone?: string;
|
|
3506
|
+
}
|
|
3507
|
+
interface IWalletUnavailable {
|
|
3508
|
+
wallet?: WALLET_TYPE;
|
|
3509
|
+
}
|
|
3510
|
+
interface IWalletOnClick {
|
|
3511
|
+
attachResult: (result: Promise<void> | boolean) => void;
|
|
3512
|
+
}
|
|
3513
|
+
interface IWalletUpdate {
|
|
3514
|
+
wallet_response_code?: string;
|
|
3515
|
+
wallet_order_id?: string;
|
|
3516
|
+
wallet_session_id?: string;
|
|
3517
|
+
payment_source?: {
|
|
3518
|
+
wallet_payment_method_id?: string;
|
|
3519
|
+
card_number_last4?: string;
|
|
3520
|
+
card_scheme?: string;
|
|
3521
|
+
};
|
|
3522
|
+
wallet_loyalty_account?: {
|
|
3523
|
+
id?: string;
|
|
3524
|
+
barcode?: string;
|
|
3525
|
+
};
|
|
3526
|
+
shipping?: {
|
|
3527
|
+
address_line1?: string;
|
|
3528
|
+
address_line2?: string;
|
|
3529
|
+
address_postcode?: string;
|
|
3530
|
+
address_city?: string;
|
|
3531
|
+
address_state?: string;
|
|
3532
|
+
address_country?: string;
|
|
3533
|
+
address_company?: string;
|
|
3534
|
+
post_office_box_number?: string;
|
|
3535
|
+
wallet_address_id?: string;
|
|
3536
|
+
wallet_address_name?: string;
|
|
3537
|
+
wallet_address_created_timestamp?: string;
|
|
3538
|
+
wallet_address_updated_timestamp?: string;
|
|
3539
|
+
};
|
|
3540
|
+
selected_shipping_option?: IShippingOption;
|
|
3541
|
+
}
|
|
3542
|
+
|
|
3310
3543
|
interface IWalletServiceUpdateData {
|
|
3311
3544
|
amount: number;
|
|
3312
3545
|
shipping_options?: IShippingOption[];
|
|
@@ -3359,8 +3592,7 @@ interface IPaymentMethod {
|
|
|
3359
3592
|
};
|
|
3360
3593
|
};
|
|
3361
3594
|
}
|
|
3362
|
-
|
|
3363
|
-
}
|
|
3595
|
+
type IUnavailableWalletEventBody = Record<string, never>;
|
|
3364
3596
|
interface IPaymentMethodSelectedWalletEventBody {
|
|
3365
3597
|
data: IPaymentMethod;
|
|
3366
3598
|
onSuccess: () => void;
|
|
@@ -3373,64 +3605,7 @@ interface IWalletService {
|
|
|
3373
3605
|
enable(): void;
|
|
3374
3606
|
disable(): void;
|
|
3375
3607
|
setEnv(env: string): any;
|
|
3376
|
-
on(eventName: string, cb?: (data: IUnavailableWalletEventBody | IPaymentMethodSelectedWalletEventBody |
|
|
3377
|
-
}
|
|
3378
|
-
|
|
3379
|
-
interface IWalletPaymentSuccessful {
|
|
3380
|
-
id: string;
|
|
3381
|
-
amount: number;
|
|
3382
|
-
currency: string;
|
|
3383
|
-
status: string;
|
|
3384
|
-
payer_name?: string;
|
|
3385
|
-
payer_email?: string;
|
|
3386
|
-
payer_phone?: string;
|
|
3387
|
-
}
|
|
3388
|
-
interface IWalletUnavailable {
|
|
3389
|
-
wallet?: WALLET_TYPE;
|
|
3390
|
-
}
|
|
3391
|
-
interface IWalletOnClick {
|
|
3392
|
-
attachResult: (result: Promise<void> | boolean) => void;
|
|
3393
|
-
}
|
|
3394
|
-
interface IWalletUpdate {
|
|
3395
|
-
wallet_response_code?: string;
|
|
3396
|
-
wallet_order_id?: string;
|
|
3397
|
-
wallet_session_id?: string;
|
|
3398
|
-
payment_source?: {
|
|
3399
|
-
wallet_payment_method_id?: string;
|
|
3400
|
-
card_number_last4?: string;
|
|
3401
|
-
card_scheme?: string;
|
|
3402
|
-
};
|
|
3403
|
-
wallet_loyalty_account?: {
|
|
3404
|
-
id?: string;
|
|
3405
|
-
barcode?: string;
|
|
3406
|
-
};
|
|
3407
|
-
shipping?: {
|
|
3408
|
-
address_line1?: string;
|
|
3409
|
-
address_line2?: string;
|
|
3410
|
-
address_postcode?: string;
|
|
3411
|
-
address_city?: string;
|
|
3412
|
-
address_state?: string;
|
|
3413
|
-
address_country?: string;
|
|
3414
|
-
address_company?: string;
|
|
3415
|
-
post_office_box_number?: string;
|
|
3416
|
-
wallet_address_id?: string;
|
|
3417
|
-
wallet_address_name?: string;
|
|
3418
|
-
wallet_address_created_timestamp?: string;
|
|
3419
|
-
wallet_address_updated_timestamp?: string;
|
|
3420
|
-
};
|
|
3421
|
-
selected_shipping_option?: IShippingOption;
|
|
3422
|
-
}
|
|
3423
|
-
|
|
3424
|
-
declare enum EventEnum {
|
|
3425
|
-
UNAVAILABLE = "unavailable",
|
|
3426
|
-
UPDATE = "update",
|
|
3427
|
-
PAYMENT_SUCCESSFUL = "paymentSuccessful",
|
|
3428
|
-
PAYMENT_ERROR = "paymentError",
|
|
3429
|
-
PAYMENT_IN_REVIEW = "paymentInReview",
|
|
3430
|
-
AUTH_TOKENS_CHANGED = "authTokensChanged",
|
|
3431
|
-
ON_CLICK = "onClick",
|
|
3432
|
-
ON_CHECKOUT_OPEN = "onCheckoutOpen",
|
|
3433
|
-
ON_CHECKOUT_CLOSE = "onCheckoutClose"
|
|
3608
|
+
on(eventName: string, cb?: (data: IUnavailableWalletEventBody | IPaymentMethodSelectedWalletEventBody | unknown) => void): any;
|
|
3434
3609
|
}
|
|
3435
3610
|
|
|
3436
3611
|
interface IEventData<T = any> {
|
|
@@ -3711,6 +3886,7 @@ declare class WalletButtons {
|
|
|
3711
3886
|
*/
|
|
3712
3887
|
onCheckoutClose(handler?: (err: IEventData) => void): Promise<unknown> | (() => void);
|
|
3713
3888
|
private setupServiceCallbacks;
|
|
3889
|
+
private setupOnWalletLoadedCallback;
|
|
3714
3890
|
private setupUnavailableCallback;
|
|
3715
3891
|
private setupUpdateCallback;
|
|
3716
3892
|
private setupOnClickCallback;
|
|
@@ -3724,7 +3900,7 @@ declare class WalletButtons {
|
|
|
3724
3900
|
private setupAuthTokensChangedCallback;
|
|
3725
3901
|
}
|
|
3726
3902
|
|
|
3727
|
-
type Instruction = new (selector: string,
|
|
3903
|
+
type Instruction = new (selector: string, api: ApiInternal, checkoutWidget: Checkout, formSelector?: string) => InstructionHandler & InstructionDestroyable & InstructionDecorated;
|
|
3728
3904
|
interface InstructionHandleable {
|
|
3729
3905
|
handle(payload: object, eventEmitter: EventEmitter): void;
|
|
3730
3906
|
}
|
|
@@ -3736,13 +3912,13 @@ interface InstructionDestroyable {
|
|
|
3736
3912
|
}
|
|
3737
3913
|
declare abstract class InstructionHandler implements InstructionHandleable, InstructionDestroyable, InstructionDecorated {
|
|
3738
3914
|
selector: string;
|
|
3739
|
-
formSelector: string;
|
|
3740
3915
|
api: ApiInternal;
|
|
3741
3916
|
protected checkoutWidget?: Checkout;
|
|
3742
|
-
|
|
3917
|
+
formSelector?: string;
|
|
3918
|
+
constructor(selector: string, api: ApiInternal, checkoutWidget?: Checkout, formSelector?: string);
|
|
3743
3919
|
instruction: string;
|
|
3744
3920
|
abstract handle(context: object, eventEmitter?: any): void;
|
|
3745
|
-
|
|
3921
|
+
destroy(): void;
|
|
3746
3922
|
getEnv(instruction_token: string): string;
|
|
3747
3923
|
}
|
|
3748
3924
|
|
|
@@ -3769,7 +3945,7 @@ interface IntentTokenPayload {
|
|
|
3769
3945
|
* var widget = new Checkout('#widget', 'intent_token');
|
|
3770
3946
|
**/
|
|
3771
3947
|
declare class Checkout {
|
|
3772
|
-
protected
|
|
3948
|
+
protected selector: string;
|
|
3773
3949
|
protected intentToken: string;
|
|
3774
3950
|
protected debug: boolean;
|
|
3775
3951
|
protected window: Window;
|
|
@@ -3780,11 +3956,12 @@ declare class Checkout {
|
|
|
3780
3956
|
protected checkoutApi: ApiCheckoutInternal;
|
|
3781
3957
|
protected instructions: InstructionModule;
|
|
3782
3958
|
protected currentInstruction: InstructionDestroyable & InstructionHandleable;
|
|
3959
|
+
private checkoutVersionHandler;
|
|
3783
3960
|
private timeoutTimer;
|
|
3784
3961
|
private requestInFlight;
|
|
3785
3962
|
private inTimeoutRange;
|
|
3786
3963
|
private checkoutFinished;
|
|
3787
|
-
constructor(
|
|
3964
|
+
constructor(selector: string, intentToken: string, debug?: boolean);
|
|
3788
3965
|
fetchInstruction(): void;
|
|
3789
3966
|
finaliseCheckout(): void;
|
|
3790
3967
|
private setupTimeoutTimer;
|
|
@@ -3829,10 +4006,11 @@ declare class Checkout {
|
|
|
3829
4006
|
*/
|
|
3830
4007
|
onPaymentExpired(handler: (data: IEventData$1) => void): () => void;
|
|
3831
4008
|
createWidgetStructure(): void;
|
|
3832
|
-
private
|
|
4009
|
+
private changeLoadingSpinnerVisibility;
|
|
3833
4010
|
}
|
|
4011
|
+
|
|
3834
4012
|
declare class InstructionDebugger {
|
|
3835
|
-
constructor(selector: string,
|
|
4013
|
+
constructor(selector: string, version: number, instructionName: string, context: object, token?: string);
|
|
3836
4014
|
}
|
|
3837
4015
|
|
|
3838
4016
|
declare enum EVENT {
|
|
@@ -3847,12 +4025,6 @@ declare enum EVENT {
|
|
|
3847
4025
|
ON_SHIPPING_OPTIONS_CHANGE = "onShippingOptionsChange"
|
|
3848
4026
|
}
|
|
3849
4027
|
|
|
3850
|
-
interface BaseEventData<T> {
|
|
3851
|
-
event: string;
|
|
3852
|
-
chargeId?: string;
|
|
3853
|
-
data?: T | undefined;
|
|
3854
|
-
}
|
|
3855
|
-
|
|
3856
4028
|
interface OnClickEventData extends BaseEventData<undefined> {
|
|
3857
4029
|
event: EVENT.ON_CLICK;
|
|
3858
4030
|
}
|
|
@@ -3881,6 +4053,13 @@ interface OnPaymentErrorEventData extends BaseEventData<{
|
|
|
3881
4053
|
event: EVENT.PAYMENT_ERROR;
|
|
3882
4054
|
}
|
|
3883
4055
|
|
|
4056
|
+
interface Contact {
|
|
4057
|
+
first_name?: string;
|
|
4058
|
+
last_name?: string;
|
|
4059
|
+
email?: string;
|
|
4060
|
+
phone?: string;
|
|
4061
|
+
phone2?: string;
|
|
4062
|
+
}
|
|
3884
4063
|
interface WalletCaptureRequest {
|
|
3885
4064
|
payment_method_id?: string;
|
|
3886
4065
|
customer: {
|
|
@@ -3901,6 +4080,18 @@ interface WalletCaptureRequest {
|
|
|
3901
4080
|
wallet_express?: boolean;
|
|
3902
4081
|
};
|
|
3903
4082
|
};
|
|
4083
|
+
shipping?: {
|
|
4084
|
+
address_line1?: string;
|
|
4085
|
+
address_line2?: string;
|
|
4086
|
+
address_line3?: string;
|
|
4087
|
+
address_country?: string;
|
|
4088
|
+
address_city?: string;
|
|
4089
|
+
address_postcode?: string;
|
|
4090
|
+
address_state?: string;
|
|
4091
|
+
options?: IShippingOption[];
|
|
4092
|
+
method?: string;
|
|
4093
|
+
contact?: Contact;
|
|
4094
|
+
};
|
|
3904
4095
|
}
|
|
3905
4096
|
|
|
3906
4097
|
interface OnUnavailableEventData extends BaseEventData<undefined> {
|
|
@@ -3930,6 +4121,7 @@ interface ChargeWalletTokenMeta {
|
|
|
3930
4121
|
address_postcode?: string;
|
|
3931
4122
|
address_state?: string;
|
|
3932
4123
|
address_country?: string;
|
|
4124
|
+
address_country_code?: string;
|
|
3933
4125
|
address_company?: string;
|
|
3934
4126
|
address_origin_postcode?: string;
|
|
3935
4127
|
method?: string;
|
|
@@ -4264,10 +4456,19 @@ interface AppleShippingType {
|
|
|
4264
4456
|
};
|
|
4265
4457
|
address_line1: string;
|
|
4266
4458
|
address_line2: string;
|
|
4459
|
+
address_line3?: string;
|
|
4267
4460
|
address_city: string;
|
|
4268
4461
|
address_postcode: string;
|
|
4269
4462
|
address_state: string;
|
|
4270
4463
|
address_country: string;
|
|
4464
|
+
address_country_code?: string;
|
|
4465
|
+
options?: IApplePayShippingOption[];
|
|
4466
|
+
}
|
|
4467
|
+
interface IApplePayShippingOption {
|
|
4468
|
+
id?: string;
|
|
4469
|
+
label?: string;
|
|
4470
|
+
detail?: string;
|
|
4471
|
+
amount?: string;
|
|
4271
4472
|
}
|
|
4272
4473
|
|
|
4273
4474
|
interface ApplePayWalletMeta extends BaseWalletMeta {
|
|
@@ -4820,4 +5021,4 @@ declare global {
|
|
|
4820
5021
|
}
|
|
4821
5022
|
}
|
|
4822
5023
|
|
|
4823
|
-
export { AfterpayCheckoutButton, Api, ApplePayWalletButtonExpress, CHECKOUT_BUTTON_EVENT, Canvas3ds, Checkout, ClickToPay, Configuration, ELEMENT, EVENT$
|
|
5024
|
+
export { AfterpayCheckoutButton, Api, type ApplePayServiceConfig, ApplePayWalletButtonExpress, BaseOpenWallet, type BaseServiceConfig, type BaseWalletMeta$1 as BaseWalletMeta, CHECKOUT_BUTTON_EVENT, Canvas3ds, Checkout, CheckoutActionCode, type CheckoutResponse, ClickToPay, Configuration, type CreateOTTRequest, type CreateOTTResponse, ELEMENT, EVENT$2 as EVENT, Builder$1 as ExternalCheckoutBuilder, Checker as ExternalCheckoutChecker, FORM_FIELD, FRAUD_PREVENTION_EVENTS, type FraudPreventionEvent, type FraudPreventionEventType, type FraudPreventionProvider, FraudPreventionService, type GooglePayServiceConfig, HtmlMultiWidget, HtmlPaymentSourceWidget, HtmlWidget, type ICheckout, type IClickToPayMeta, type IDetails, type IElementStyleInput, type IEventCheckoutFinishData, type IEventData, type IPayPalMeta, type IStyles$1 as IStyles, type ITexts, type IWalletMeta, type IWalletOnClickEvent, type IWalletPaymentSuccessfulEvent, type IWalletUnavailableEvent, type IWalletUpdateData, type IWalletUpdateEvent, InstructionDebugger, MultiWidget, type OTTResponse, type OnClickEventData$1 as OnClickEventData, type OnCrateOTTSuccessfulEventData, type OnCreateOTTErrorEventData, type OnErrorEventData$1 as OnErrorEventData, type OnUnavailableEventData$1 as OnUnavailableEventData, type OpenWalletEventType, PAYMENT_TYPE, PURPOSE, PayPalDataCollector, PayPalSavePaymentSourceWidget, Builder as PaymentSourceBuilder, PaymentSourceWidget, PaypalCheckoutButton, PaypalWalletButtonExpress, STYLABLE_ELEMENT, STYLABLE_ELEMENT_STATE, STYLE, SUPPORTED_CARD_TYPES, TEXT, TRIGGER, TYPE, VAULT_DISPLAY_STYLE, type VaultDisplayStyle, VaultDisplayWidget, WALLET_TYPES, WalletButtons, type WalletPaymentSource, type WalletType, ZipmoneyCheckoutButton };
|