@paydock/client-sdk 1.104.9-beta → 1.105.56-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 +1984 -396
- package/bundles/index.cjs +33513 -8908
- package/bundles/index.cjs.d.ts +867 -52
- package/bundles/index.mjs +33507 -8908
- package/bundles/index.mjs.d.ts +867 -52
- package/bundles/types/api/api-base.d.ts +19 -6
- package/bundles/types/api/api-base.d.ts.map +1 -1
- package/bundles/types/api/api-charge-internal.d.ts +1 -0
- package/bundles/types/api/api-charge-internal.d.ts.map +1 -1
- package/bundles/types/api/api-checkout-internal.d.ts +57 -0
- package/bundles/types/api/api-checkout-internal.d.ts.map +1 -0
- package/bundles/types/api/api-gateway-internal.d.ts +12 -0
- package/bundles/types/api/api-gateway-internal.d.ts.map +1 -0
- package/bundles/types/api/api-internal.d.ts +4 -0
- package/bundles/types/api/api-internal.d.ts.map +1 -1
- package/bundles/types/canvas-3ds/services/gpayments-service.d.ts +3 -3
- package/bundles/types/canvas-3ds/services/gpayments-service.d.ts.map +1 -1
- package/bundles/types/checkout/checkout.d.ts +86 -0
- package/bundles/types/checkout/checkout.d.ts.map +1 -0
- package/bundles/types/checkout/helpers/instruction-handler.d.ts +23 -0
- package/bundles/types/checkout/helpers/instruction-handler.d.ts.map +1 -0
- package/bundles/types/checkout/helpers/instruction-module.d.ts +6 -0
- package/bundles/types/checkout/helpers/instruction-module.d.ts.map +1 -0
- package/bundles/types/checkout/helpers/instruction-module.decorator.d.ts +6 -0
- package/bundles/types/checkout/helpers/instruction-module.decorator.d.ts.map +1 -0
- package/bundles/types/checkout/helpers/instruction.decorator.d.ts +5 -0
- package/bundles/types/checkout/helpers/instruction.decorator.d.ts.map +1 -0
- package/bundles/types/checkout/helpers/resource-helper.d.ts +5 -0
- package/bundles/types/checkout/helpers/resource-helper.d.ts.map +1 -0
- package/bundles/types/checkout/helpers/session-helper.d.ts +5 -0
- package/bundles/types/checkout/helpers/session-helper.d.ts.map +1 -0
- package/bundles/types/checkout/index.d.ts +2 -0
- package/bundles/types/checkout/index.d.ts.map +1 -0
- package/bundles/types/checkout/instructions/index.d.ts +3 -0
- package/bundles/types/checkout/instructions/index.d.ts.map +1 -0
- package/bundles/types/checkout/instructions/v1/index.d.ts +4 -0
- package/bundles/types/checkout/instructions/v1/index.d.ts.map +1 -0
- package/bundles/types/checkout/instructions/v1/instruction.afterpay_checkout_form.show.d.ts +20 -0
- package/bundles/types/checkout/instructions/v1/instruction.afterpay_checkout_form.show.d.ts.map +1 -0
- package/bundles/types/checkout/instructions/v1/instruction.afterpay_wallet_form.show.d.ts +14 -0
- package/bundles/types/checkout/instructions/v1/instruction.afterpay_wallet_form.show.d.ts.map +1 -0
- package/bundles/types/checkout/instructions/v1/instruction.apple_pay_form.show.d.ts +18 -0
- package/bundles/types/checkout/instructions/v1/instruction.apple_pay_form.show.d.ts.map +1 -0
- package/bundles/types/checkout/instructions/v1/instruction.bank_account_form.show.d.ts +15 -0
- package/bundles/types/checkout/instructions/v1/instruction.bank_account_form.show.d.ts.map +1 -0
- package/bundles/types/checkout/instructions/v1/instruction.canvas_3ds.show.d.ts +11 -0
- package/bundles/types/checkout/instructions/v1/instruction.canvas_3ds.show.d.ts.map +1 -0
- package/bundles/types/checkout/instructions/v1/instruction.card_form.show.d.ts +19 -0
- package/bundles/types/checkout/instructions/v1/instruction.card_form.show.d.ts.map +1 -0
- package/bundles/types/checkout/instructions/v1/instruction.disable_payment_method_event.emit.d.ts +19 -0
- package/bundles/types/checkout/instructions/v1/instruction.disable_payment_method_event.emit.d.ts.map +1 -0
- package/bundles/types/checkout/instructions/v1/instruction.generic.show_message.d.ts +26 -0
- package/bundles/types/checkout/instructions/v1/instruction.generic.show_message.d.ts.map +1 -0
- package/bundles/types/checkout/instructions/v1/instruction.google_pay_form.show.d.ts +18 -0
- package/bundles/types/checkout/instructions/v1/instruction.google_pay_form.show.d.ts.map +1 -0
- package/bundles/types/checkout/instructions/v1/instruction.merchant_event.emit.d.ts +18 -0
- package/bundles/types/checkout/instructions/v1/instruction.merchant_event.emit.d.ts.map +1 -0
- package/bundles/types/checkout/instructions/v1/instruction.payment_methods.show.d.ts +18 -0
- package/bundles/types/checkout/instructions/v1/instruction.payment_methods.show.d.ts.map +1 -0
- package/bundles/types/checkout/instructions/v1/instruction.paypal_form.show.d.ts +21 -0
- package/bundles/types/checkout/instructions/v1/instruction.paypal_form.show.d.ts.map +1 -0
- package/bundles/types/checkout/instructions/v1/instruction.zip_checkout_form.show.d.ts +19 -0
- package/bundles/types/checkout/instructions/v1/instruction.zip_checkout_form.show.d.ts.map +1 -0
- package/bundles/types/checkout/layout-widgets/additionals.d.ts +3 -0
- package/bundles/types/checkout/layout-widgets/additionals.d.ts.map +1 -0
- package/bundles/types/checkout/layout-widgets/default-variables.enum.d.ts +9 -0
- package/bundles/types/checkout/layout-widgets/default-variables.enum.d.ts.map +1 -0
- package/bundles/types/checkout/layout-widgets/message.d.ts +34 -0
- package/bundles/types/checkout/layout-widgets/message.d.ts.map +1 -0
- package/bundles/types/checkout/layout-widgets/payment-methods-template.d.ts +13 -0
- package/bundles/types/checkout/layout-widgets/payment-methods-template.d.ts.map +1 -0
- package/bundles/types/checkout/layout-widgets/payment-methods.d.ts +52 -0
- package/bundles/types/checkout/layout-widgets/payment-methods.d.ts.map +1 -0
- package/bundles/types/checkout/layout-widgets/payment-template.d.ts +3 -0
- package/bundles/types/checkout/layout-widgets/payment-template.d.ts.map +1 -0
- package/bundles/types/checkout-button/afterpay/afterpay.runner.d.ts +2 -0
- package/bundles/types/checkout-button/afterpay/afterpay.runner.d.ts.map +1 -1
- package/bundles/types/checkout-button/checkout-contextual-handler.d.ts +4 -0
- package/bundles/types/checkout-button/checkout-contextual-handler.d.ts.map +1 -1
- package/bundles/types/checkout-button/runner/contextual.runner.d.ts +2 -1
- package/bundles/types/checkout-button/runner/contextual.runner.d.ts.map +1 -1
- package/bundles/types/checkout-button/runner/popup.runner.d.ts +3 -3
- package/bundles/types/checkout-button/runner/popup.runner.d.ts.map +1 -1
- package/bundles/types/components/http-core.d.ts.map +1 -1
- package/bundles/types/components/iframe-event.d.ts +2 -0
- package/bundles/types/components/iframe-event.d.ts.map +1 -1
- package/bundles/types/components/iframe.d.ts +2 -0
- package/bundles/types/components/iframe.d.ts.map +1 -1
- package/bundles/types/components/link.d.ts +1 -0
- package/bundles/types/components/link.d.ts.map +1 -1
- package/bundles/types/components/param.d.ts +6 -0
- package/bundles/types/components/param.d.ts.map +1 -1
- package/bundles/types/configs/env/environment.cba.d.ts +1 -1
- package/bundles/types/configs/env/environment.cba.d.ts.map +1 -1
- package/bundles/types/configs/env/environment.paydock.d.ts +1 -1
- package/bundles/types/configs/env/environment.paydock.d.ts.map +1 -1
- package/bundles/types/helper/access-token.d.ts +1 -0
- package/bundles/types/helper/access-token.d.ts.map +1 -1
- package/bundles/types/helper/event-emitter.d.ts +1 -0
- package/bundles/types/helper/event-emitter.d.ts.map +1 -1
- package/bundles/types/helper/spiner.util.d.ts +6 -0
- package/bundles/types/helper/spiner.util.d.ts.map +1 -0
- package/bundles/types/helper/widget-logger.d.ts +9 -0
- package/bundles/types/helper/widget-logger.d.ts.map +1 -0
- package/bundles/types/index-cba.d.ts +4 -0
- package/bundles/types/index-cba.d.ts.map +1 -1
- package/bundles/types/index.d.ts +4 -0
- package/bundles/types/index.d.ts.map +1 -1
- package/bundles/types/paypal-data-collector/index.d.ts +23 -0
- package/bundles/types/paypal-data-collector/index.d.ts.map +1 -0
- package/bundles/types/paypal-data-collector/paypal-data-collector.d.ts +59 -0
- package/bundles/types/paypal-data-collector/paypal-data-collector.d.ts.map +1 -0
- package/bundles/types/paypal-data-collector/paypal-data-collector.interfaces.d.ts +21 -0
- package/bundles/types/paypal-data-collector/paypal-data-collector.interfaces.d.ts.map +1 -0
- package/bundles/types/paypal-data-collector/paypal-data-collector.service.d.ts +18 -0
- package/bundles/types/paypal-data-collector/paypal-data-collector.service.d.ts.map +1 -0
- package/bundles/types/paypal-save-payment-source/index.d.ts +61 -0
- package/bundles/types/paypal-save-payment-source/index.d.ts.map +1 -0
- package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.d.ts +86 -0
- package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.d.ts.map +1 -0
- package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.interfaces.d.ts +84 -0
- package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.interfaces.d.ts.map +1 -0
- package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.service.d.ts +37 -0
- package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.service.d.ts.map +1 -0
- package/bundles/types/secure-remote-commerce/index.d.ts +2 -1
- package/bundles/types/secure-remote-commerce/index.d.ts.map +1 -1
- package/bundles/types/secure-remote-commerce/interfaces.d.ts +12 -2
- package/bundles/types/secure-remote-commerce/interfaces.d.ts.map +1 -1
- package/bundles/types/secure-remote-commerce/providers/mastercard-src/mastercard-src.d.ts.map +1 -1
- package/bundles/types/shared/http/http-request.d.ts +14 -0
- package/bundles/types/shared/http/http-request.d.ts.map +1 -0
- package/bundles/types/shared/http/index.d.ts +2 -0
- package/bundles/types/shared/http/index.d.ts.map +1 -0
- package/bundles/types/shared/services/instrumentation/instrumentation.agent.d.ts +15 -0
- package/bundles/types/shared/services/instrumentation/instrumentation.agent.d.ts.map +1 -0
- package/bundles/types/shared/services/instrumentation/instrumentation.config.d.ts +66 -0
- package/bundles/types/shared/services/instrumentation/instrumentation.config.d.ts.map +1 -0
- package/bundles/types/shared/services/instrumentation/instrumentation.types.d.ts +14 -0
- package/bundles/types/shared/services/instrumentation/instrumentation.types.d.ts.map +1 -0
- package/bundles/types/shared/services/instrumentation/repositories/action.repository.d.ts +15 -0
- package/bundles/types/shared/services/instrumentation/repositories/action.repository.d.ts.map +1 -0
- package/bundles/types/shared/services/instrumentation/repositories/error.repository.d.ts +23 -0
- package/bundles/types/shared/services/instrumentation/repositories/error.repository.d.ts.map +1 -0
- package/bundles/types/shared/services/instrumentation/repositories/event.repository.d.ts +15 -0
- package/bundles/types/shared/services/instrumentation/repositories/event.repository.d.ts.map +1 -0
- package/bundles/types/shared/services/instrumentation/repositories/index.d.ts +4 -0
- package/bundles/types/shared/services/instrumentation/repositories/index.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/index.d.ts +4 -0
- package/bundles/types/wallet-buttons/index.d.ts.map +1 -1
- package/bundles/types/wallet-buttons/wallet-buttons.d.ts +4 -4
- package/bundles/types/wallet-buttons/wallet-buttons.d.ts.map +1 -1
- package/bundles/types/wallet-buttons/wallet-cba-buttons.d.ts +4 -4
- package/bundles/types/wallet-buttons/wallet-cba-buttons.d.ts.map +1 -1
- package/bundles/types/wallet-buttons/{afterpay.wallet-service.d.ts → wallet-services/afterpay.wallet-service.d.ts} +1 -1
- package/bundles/types/wallet-buttons/wallet-services/afterpay.wallet-service.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/{apple.wallet-service.d.ts → wallet-services/apple.wallet-service.d.ts} +3 -3
- package/bundles/types/wallet-buttons/wallet-services/apple.wallet-service.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/{flypay-v2.wallet-service.d.ts → wallet-services/flypay-v2.wallet-service.d.ts} +3 -3
- package/bundles/types/wallet-buttons/wallet-services/flypay-v2.wallet-service.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/{flypay.wallet-service.d.ts → wallet-services/flypay.wallet-service.d.ts} +6 -6
- package/bundles/types/wallet-buttons/wallet-services/flypay.wallet-service.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/{google.wallet-service.d.ts → wallet-services/google.wallet-service.d.ts} +4 -4
- package/bundles/types/wallet-buttons/wallet-services/google.wallet-service.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/wallet-services/mastercard.wallet-service.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/{paypal.wallet-service.d.ts → wallet-services/paypal.wallet-service.d.ts} +1 -1
- package/bundles/types/wallet-buttons/wallet-services/paypal.wallet-service.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/{stripe.wallet-service.d.ts → wallet-services/stripe.wallet-service.d.ts} +1 -1
- package/bundles/types/wallet-buttons/wallet-services/stripe.wallet-service.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/{wallet-service.d.ts → wallet-services/wallet-service.d.ts} +4 -4
- package/bundles/types/wallet-buttons/wallet-services/wallet-service.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/base.wallet-button-express.d.ts +195 -0
- package/bundles/types/wallet-buttons-express/base.wallet-button-express.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/enum/event.enum.d.ts +10 -0
- package/bundles/types/wallet-buttons-express/enum/event.enum.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/index.d.ts +131 -0
- package/bundles/types/wallet-buttons-express/index.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/interfaces/base-event-data.interface.d.ts +6 -0
- package/bundles/types/wallet-buttons-express/interfaces/base-event-data.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/interfaces/base-gateway-config.interface.d.ts +6 -0
- package/bundles/types/wallet-buttons-express/interfaces/base-gateway-config.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/interfaces/base-wallet-meta.interface.d.ts +5 -0
- package/bundles/types/wallet-buttons-express/interfaces/base-wallet-meta.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/interfaces/charge-wallet-token-meta.interface.d.ts +14 -0
- package/bundles/types/wallet-buttons-express/interfaces/charge-wallet-token-meta.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-click-event-data.interface.d.ts +6 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-click-event-data.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-close-event-data.interface.d.ts +6 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-close-event-data.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-error-event-data.interface.d.ts +6 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-error-event-data.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-payment-error-event-data.interface.d.ts +9 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-payment-error-event-data.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-payment-in-review-event-data.interface.d.ts +6 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-payment-in-review-event-data.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-payment-successful-event-data.interface.d.ts +11 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-payment-successful-event-data.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-unavailable-event-data.interface.d.ts +6 -0
- package/bundles/types/wallet-buttons-express/interfaces/on-unavailable-event-data.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/interfaces/wallet-capture-request.interface.d.ts +22 -0
- package/bundles/types/wallet-buttons-express/interfaces/wallet-capture-request.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/apple-pay.wallet-button-express.d.ts +50 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/apple-pay.wallet-button-express.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/constants/apple-pay-button-style.constant.d.ts +3 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/constants/apple-pay-button-style.constant.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-gateway-config.interface.d.ts +6 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-gateway-config.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-wallet-meta.interface.d.ts +17 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-wallet-meta.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-button-style.type.d.ts +2 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-button-style.type.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-button-type.type.d.ts +2 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-button-type.type.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-gateway-config.interface.d.ts +4 -0
- package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-gateway-config.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-wallet-meta.interface.d.ts +31 -0
- package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-wallet-meta.interface.d.ts.map +1 -0
- package/bundles/types/wallet-buttons-express/services/paypal/paypal.wallet-button-express.d.ts +47 -0
- package/bundles/types/wallet-buttons-express/services/paypal/paypal.wallet-button-express.d.ts.map +1 -0
- package/bundles/types/widget/configuration.d.ts.map +1 -1
- package/bundles/types/widget/html-multi-widget.d.ts +4 -3
- package/bundles/types/widget/html-multi-widget.d.ts.map +1 -1
- package/bundles/widget.umd.js +33513 -8908
- package/bundles/widget.umd.js.d.ts +867 -52
- package/bundles/widget.umd.js.min.d.ts +867 -52
- package/bundles/widget.umd.min.js +61 -2
- package/docs/click-to-pay-examples.md +36 -0
- package/docs/click-to-pay.md +4 -1
- package/docs/html/layout.html +1 -0
- package/docs/paypal-data-collector-examples.md +58 -0
- package/docs/paypal-data-collector.md +149 -0
- package/docs/paypal-save-payment-source-examples.md +63 -0
- package/docs/paypal-save-payment-source.md +256 -0
- package/docs/wallet-buttons-examples.md +29 -2
- package/docs/wallet-buttons-express-examples.md +201 -0
- package/docs/wallet-buttons-express.md +786 -0
- package/docs/wallet-buttons.md +3 -0
- package/examples/multi-html-widget/simple.html +2 -1
- package/package.json +98 -92
- package/slate.md +65 -2
- package/bundles/index.cjs.map +0 -1
- package/bundles/index.mjs.map +0 -1
- package/bundles/types/wallet-buttons/afterpay.wallet-service.d.ts.map +0 -1
- package/bundles/types/wallet-buttons/apple.wallet-service.d.ts.map +0 -1
- package/bundles/types/wallet-buttons/flypay-v2.wallet-service.d.ts.map +0 -1
- package/bundles/types/wallet-buttons/flypay.wallet-service.d.ts.map +0 -1
- package/bundles/types/wallet-buttons/google.wallet-service.d.ts.map +0 -1
- package/bundles/types/wallet-buttons/mastercard.wallet-service.d.ts.map +0 -1
- package/bundles/types/wallet-buttons/paypal.wallet-service.d.ts.map +0 -1
- package/bundles/types/wallet-buttons/stripe.wallet-service.d.ts.map +0 -1
- package/bundles/types/wallet-buttons/wallet-service.d.ts.map +0 -1
- package/bundles/widget.umd.js.map +0 -1
- package/bundles/widget.umd.min.js.map +0 -1
- /package/bundles/types/wallet-buttons/{mastercard.wallet-service.d.ts → wallet-services/mastercard.wallet-service.d.ts} +0 -0
package/docs/wallet-buttons.md
CHANGED
|
@@ -131,6 +131,8 @@ Interface of data from an unavailable event.
|
|
|
131
131
|
| Param | Type | Description |
|
|
132
132
|
| --- | --- | --- |
|
|
133
133
|
| [wallet] | <code>string</code> | For gateways with more than one wallet button available (e.g: MPGS with ApplePay and GooglePay). Possible values for wallet are 'apple' or 'google'. |
|
|
134
|
+
| [type] | <code>string</code> | Event Code. Value can be 'create_order_id_error' on FlypayV2 order creation failure. Optional for [Flypay V2]. N/A for other wallets. |
|
|
135
|
+
| [error_code] | <code>string</code> | Event Error Code. Value can be any error code return from Paydock's API. Optional for [Flypay V2]. N/A for other wallets. + |
|
|
134
136
|
|
|
135
137
|
<a name="IWalletUpdateData" id="IWalletUpdateData" href="#IWalletUpdateData"> </a>
|
|
136
138
|
|
|
@@ -170,6 +172,7 @@ Interface of data used by the wallet checkout and payment proccess.
|
|
|
170
172
|
| [style.button_type] | <code>object</code> | Used to select ApplePay button type (e.g: 'buy','donate', etc), check possible values at https://developer.apple.com/documentation/apple_pay_on_the_web/displaying_apple_pay_buttons_using_css. Also select button type for GooglePay (check GooglePayStyles) and Afterpay (check AfterpayStyles). Optional for [ApplePay, GooglePay, Afterpay]. N/A for other wallets. |
|
|
171
173
|
| [style.height] | <code>object</code> | Used to select Afterpay button height. Optional for [Afterpay]. N/A for other wallets. |
|
|
172
174
|
| [wallets] | <code>array</code> | By default if this is not sent or empty, we will try to show either Apple Pay or Google Pay buttons. This can be limited sending the following array in this field: ['apple','google]. Optional for [Stripe, ApplePay, GooglePay]. N/A for other wallets. |
|
|
175
|
+
| [client_id] | <code>string</code> | Client ID to be used in the provider system. Required for [Flypay V2]. N/A for [FlyPay, GooglePay, ApplePay, PayPal, Afterpay]. |
|
|
173
176
|
|
|
174
177
|
<a name="IApplePayShippingOption" id="IApplePayShippingOption" href="#IApplePayShippingOption"> </a>
|
|
175
178
|
|
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
|
|
17
17
|
<div id="widget"></div>
|
|
18
18
|
|
|
19
|
-
<script src="https://widget.paydock.com/sdk/latest/widget.umd.min.js" ></script>
|
|
19
|
+
<!-- <script src="https://widget.paydock.com/sdk/latest/widget.umd.min.js" ></script> -->
|
|
20
|
+
<script src="../../bundles/widget.umd.js" ></script>
|
|
20
21
|
|
|
21
22
|
<script>
|
|
22
23
|
var card = new paydock.Configuration('5c77d21fb8d0ce13df9bce3f');
|
package/package.json
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"types": "./bundles/index.mjs.d.ts",
|
|
23
23
|
"unpkg": "./bundles/widget.umd.js",
|
|
24
24
|
"exports": {
|
|
25
|
-
"
|
|
25
|
+
".": {
|
|
26
26
|
"import": {
|
|
27
27
|
"types": "./bundles/index.mjs.d.ts",
|
|
28
28
|
"default": "./bundles/index.mjs"
|
|
@@ -30,9 +30,19 @@
|
|
|
30
30
|
"module": {
|
|
31
31
|
"types": "./bundles/index.mjs.d.ts",
|
|
32
32
|
"default": "./bundles/index.mjs"
|
|
33
|
-
}
|
|
33
|
+
},
|
|
34
|
+
"node": {
|
|
35
|
+
"types": "./bundles/index.cjs.d.ts",
|
|
36
|
+
"default": "./bundles/index.cjs"
|
|
37
|
+
},
|
|
38
|
+
"require": {
|
|
39
|
+
"types": "./bundles/index.cjs.d.ts",
|
|
40
|
+
"default": "./bundles/index.cjs"
|
|
41
|
+
},
|
|
42
|
+
"types": "./bundles/index.mjs.d.ts",
|
|
43
|
+
"default": "./bundles/index.mjs.js"
|
|
34
44
|
},
|
|
35
|
-
"./
|
|
45
|
+
"./api": {
|
|
36
46
|
"import": {
|
|
37
47
|
"types": "./bundles/index.mjs.d.ts",
|
|
38
48
|
"default": "./bundles/index.mjs"
|
|
@@ -42,7 +52,7 @@
|
|
|
42
52
|
"default": "./bundles/index.mjs"
|
|
43
53
|
}
|
|
44
54
|
},
|
|
45
|
-
"./
|
|
55
|
+
"./canvas3ds": {
|
|
46
56
|
"import": {
|
|
47
57
|
"types": "./bundles/index.mjs.d.ts",
|
|
48
58
|
"default": "./bundles/index.mjs"
|
|
@@ -52,7 +62,7 @@
|
|
|
52
62
|
"default": "./bundles/index.mjs"
|
|
53
63
|
}
|
|
54
64
|
},
|
|
55
|
-
"./
|
|
65
|
+
"./checkout-button": {
|
|
56
66
|
"import": {
|
|
57
67
|
"types": "./bundles/index.mjs.d.ts",
|
|
58
68
|
"default": "./bundles/index.mjs"
|
|
@@ -62,7 +72,7 @@
|
|
|
62
72
|
"default": "./bundles/index.mjs"
|
|
63
73
|
}
|
|
64
74
|
},
|
|
65
|
-
"./
|
|
75
|
+
"./payment-source-widget": {
|
|
66
76
|
"import": {
|
|
67
77
|
"types": "./bundles/index.mjs.d.ts",
|
|
68
78
|
"default": "./bundles/index.mjs"
|
|
@@ -72,7 +82,7 @@
|
|
|
72
82
|
"default": "./bundles/index.mjs"
|
|
73
83
|
}
|
|
74
84
|
},
|
|
75
|
-
"./widget": {
|
|
85
|
+
"./vault-display-widget": {
|
|
76
86
|
"import": {
|
|
77
87
|
"types": "./bundles/index.mjs.d.ts",
|
|
78
88
|
"default": "./bundles/index.mjs"
|
|
@@ -82,7 +92,7 @@
|
|
|
82
92
|
"default": "./bundles/index.mjs"
|
|
83
93
|
}
|
|
84
94
|
},
|
|
85
|
-
"
|
|
95
|
+
"./widget": {
|
|
86
96
|
"import": {
|
|
87
97
|
"types": "./bundles/index.mjs.d.ts",
|
|
88
98
|
"default": "./bundles/index.mjs"
|
|
@@ -90,27 +100,18 @@
|
|
|
90
100
|
"module": {
|
|
91
101
|
"types": "./bundles/index.mjs.d.ts",
|
|
92
102
|
"default": "./bundles/index.mjs"
|
|
93
|
-
}
|
|
94
|
-
"node": {
|
|
95
|
-
"types": "./bundles/index.cjs.d.ts",
|
|
96
|
-
"default": "./bundles/index.cjs"
|
|
97
|
-
},
|
|
98
|
-
"require": {
|
|
99
|
-
"types": "./bundles/index.cjs.d.ts",
|
|
100
|
-
"default": "./bundles/index.cjs"
|
|
101
|
-
},
|
|
102
|
-
"types": "./bundles/index.mjs.d.ts",
|
|
103
|
-
"default": "./bundles/index.mjs.js"
|
|
103
|
+
}
|
|
104
104
|
}
|
|
105
105
|
},
|
|
106
106
|
"name": "@paydock/client-sdk",
|
|
107
|
-
"version": "1.
|
|
107
|
+
"version": "1.105.56-beta",
|
|
108
108
|
"scripts": {
|
|
109
109
|
"build:doc": "node docs/html/marked.js",
|
|
110
110
|
"build:js": "rollup --config rollup.config.ts --configPlugin @rollup/plugin-typescript",
|
|
111
111
|
"bundle:css": "grunt replace:css",
|
|
112
112
|
"bundle:html": "grunt replace:html",
|
|
113
113
|
"bundle:js": "run-s clean:bundles build:js",
|
|
114
|
+
"bundle:js:local": "npm run bundle:js && npm run replace:hosts",
|
|
114
115
|
"clean:bundles": "rimraf ./bundles/",
|
|
115
116
|
"clean:lib": "rimraf ./lib/",
|
|
116
117
|
"compute:checksums:bundles": "find ./bundles -type f -exec sha256sum {} \\;",
|
|
@@ -119,6 +120,7 @@
|
|
|
119
120
|
"doc:cba": "run-s clean:lib tsc:cba markdown:cba",
|
|
120
121
|
"doc:paydock": "run-s clean:lib tsc:paydock markdown:paydock",
|
|
121
122
|
"lint": "tslint -c tslint.json 'src/**/*.ts{,x}'",
|
|
123
|
+
"lint:fix": "tslint -c tslint.json 'src/**/*.ts{,x}' --fix",
|
|
122
124
|
"markdown:cba": "grunt cba_docs",
|
|
123
125
|
"markdown:paydock": "grunt docs",
|
|
124
126
|
"publish:local": "./publish-to-local-registry.sh",
|
|
@@ -128,92 +130,96 @@
|
|
|
128
130
|
"test": "run-s test:chromium",
|
|
129
131
|
"tsc:cba": "tsc --project tsconfig.cba.json",
|
|
130
132
|
"tsc:paydock": "tsc --project tsconfig.paydock.json",
|
|
131
|
-
"
|
|
133
|
+
"tidy:ci": "biome ci --no-errors-on-unmatched .",
|
|
134
|
+
"tidy:precommit": "biome ci --no-errors-on-unmatched --changed .",
|
|
135
|
+
"tidy": "biome check --apply --formatter-enabled=true --linter-enabled=true --organize-imports-enabled=true --no-errors-on-unmatched .",
|
|
136
|
+
"typecheck": "tsc --project tsconfig.json --noEmit"
|
|
132
137
|
},
|
|
133
138
|
"dependencies": {
|
|
134
|
-
"@auspayplus/open-payments-checkout": "1.
|
|
135
|
-
"@
|
|
139
|
+
"@auspayplus/open-payments-checkout": "1.8.0",
|
|
140
|
+
"@newrelic/browser-agent": "1.260.1",
|
|
141
|
+
"@stripe/stripe-js": "1.54.2"
|
|
136
142
|
},
|
|
137
143
|
"devDependencies": {
|
|
138
|
-
"@babel/cli": "
|
|
139
|
-
"@babel/core": "
|
|
140
|
-
"@babel/plugin-external-helpers": "
|
|
141
|
-
"@babel/plugin-transform-modules-umd": "
|
|
142
|
-
"@babel/plugin-transform-object-assign": "
|
|
143
|
-
"@babel/plugin-transform-runtime": "
|
|
144
|
-
"@babel/polyfill": "
|
|
145
|
-
"@babel/preset-env": "
|
|
146
|
-
"@babel/runtime": "
|
|
147
|
-
"@babel/runtime-corejs2": "
|
|
148
|
-
"@
|
|
149
|
-
"@rollup/plugin-
|
|
150
|
-
"@rollup/plugin-
|
|
151
|
-
"@rollup/plugin-
|
|
152
|
-
"@rollup/plugin-
|
|
153
|
-
"@rollup/plugin-
|
|
154
|
-
"@rollup/plugin-
|
|
155
|
-
"@rollup/
|
|
156
|
-
"@
|
|
157
|
-
"@types/
|
|
158
|
-
"@types/
|
|
159
|
-
"@types/
|
|
160
|
-
"@types/jasmine
|
|
161
|
-
"@types/
|
|
162
|
-
"
|
|
163
|
-
"
|
|
164
|
-
"
|
|
165
|
-
"
|
|
166
|
-
"browserify
|
|
167
|
-
"
|
|
144
|
+
"@babel/cli": "7.24.5",
|
|
145
|
+
"@babel/core": "7.24.5",
|
|
146
|
+
"@babel/plugin-external-helpers": "7.24.1",
|
|
147
|
+
"@babel/plugin-transform-modules-umd": "7.24.1",
|
|
148
|
+
"@babel/plugin-transform-object-assign": "7.24.1",
|
|
149
|
+
"@babel/plugin-transform-runtime": "7.24.3",
|
|
150
|
+
"@babel/polyfill": "7.12.1",
|
|
151
|
+
"@babel/preset-env": "7.24.5",
|
|
152
|
+
"@babel/runtime": "7.24.5",
|
|
153
|
+
"@babel/runtime-corejs2": "7.24.5",
|
|
154
|
+
"@biomejs/biome": "1.7.3",
|
|
155
|
+
"@rollup/plugin-babel": "6.0.4",
|
|
156
|
+
"@rollup/plugin-commonjs": "25.0.7",
|
|
157
|
+
"@rollup/plugin-json": "6.1.0",
|
|
158
|
+
"@rollup/plugin-node-resolve": "15.2.3",
|
|
159
|
+
"@rollup/plugin-replace": "5.0.5",
|
|
160
|
+
"@rollup/plugin-terser": "0.4.4",
|
|
161
|
+
"@rollup/plugin-typescript": "11.1.6",
|
|
162
|
+
"@rollup/pluginutils": "5.1.0",
|
|
163
|
+
"@types/applepayjs": "14.0.8",
|
|
164
|
+
"@types/es6-promise": "3.3.0",
|
|
165
|
+
"@types/googlepay": "0.6.4",
|
|
166
|
+
"@types/jasmine": "5.1.4",
|
|
167
|
+
"@types/jasmine-ajax": "3.3.5",
|
|
168
|
+
"@types/jquery": "3.5.30",
|
|
169
|
+
"babelify": "10.0.0",
|
|
170
|
+
"base64-js": "1.5.1",
|
|
171
|
+
"browser-resolve": "1.11.3",
|
|
172
|
+
"browserify": "17.0.0",
|
|
173
|
+
"browserify-istanbul": "2.0.0",
|
|
174
|
+
"buffer": "5.7.1",
|
|
175
|
+
"dotenv": "16.4.5",
|
|
168
176
|
"fs": "0.0.2",
|
|
169
|
-
"grunt": "
|
|
170
|
-
"grunt-cli": "
|
|
171
|
-
"grunt-jsdoc-to-markdown": "
|
|
172
|
-
"grunt-replace": "
|
|
177
|
+
"grunt": "1.6.1",
|
|
178
|
+
"grunt-cli": "1.4.3",
|
|
179
|
+
"grunt-jsdoc-to-markdown": "6.0.0",
|
|
180
|
+
"grunt-replace": "2.0.2",
|
|
173
181
|
"grunt-template-render": "0.0.1",
|
|
174
|
-
"highlight.js": "
|
|
175
|
-
"ieee754": "
|
|
176
|
-
"include-all": "
|
|
177
|
-
"jasmine-ajax": "
|
|
178
|
-
"jasmine-core": "
|
|
179
|
-
"jquery": "
|
|
180
|
-
"jsdoc-to-markdown": "
|
|
181
|
-
"karma": "
|
|
182
|
-
"karma-browserify": "
|
|
183
|
-
"karma-chrome-launcher": "
|
|
184
|
-
"karma-cli": "
|
|
185
|
-
"karma-firefox-launcher": "
|
|
186
|
-
"karma-jasmine": "
|
|
187
|
-
"karma-jasmine-ajax": "
|
|
188
|
-
"karma-mocha-reporter": "
|
|
189
|
-
"marked": "
|
|
190
|
-
"npm-run-
|
|
191
|
-
"process": "
|
|
192
|
-
"rimraf": "
|
|
193
|
-
"rollup": "
|
|
194
|
-
"rollup-plugin-dts": "
|
|
195
|
-
"
|
|
196
|
-
"
|
|
197
|
-
"
|
|
198
|
-
"
|
|
199
|
-
"
|
|
182
|
+
"highlight.js": "11.9.0",
|
|
183
|
+
"ieee754": "1.2.1",
|
|
184
|
+
"include-all": "4.0.3",
|
|
185
|
+
"jasmine-ajax": "3.4.0",
|
|
186
|
+
"jasmine-core": "2.99.1",
|
|
187
|
+
"jquery": "3.7.1",
|
|
188
|
+
"jsdoc-to-markdown": "8.0.1",
|
|
189
|
+
"karma": "6.4.3",
|
|
190
|
+
"karma-browserify": "8.1.0",
|
|
191
|
+
"karma-chrome-launcher": "2.2.0",
|
|
192
|
+
"karma-cli": "2.0.0",
|
|
193
|
+
"karma-firefox-launcher": "1.3.0",
|
|
194
|
+
"karma-jasmine": "1.1.2",
|
|
195
|
+
"karma-jasmine-ajax": "0.1.13",
|
|
196
|
+
"karma-mocha-reporter": "2.2.5",
|
|
197
|
+
"marked": "4.3.0",
|
|
198
|
+
"npm-run-all2": "6.2.0",
|
|
199
|
+
"process": "0.11.10",
|
|
200
|
+
"rimraf": "5.0.7",
|
|
201
|
+
"rollup": "4.17.2",
|
|
202
|
+
"rollup-plugin-dts": "6.1.0",
|
|
203
|
+
"rxjs": "7.8.1",
|
|
204
|
+
"tsify": "3.0.4",
|
|
205
|
+
"tslib": "2.6.2",
|
|
206
|
+
"tslint": "5.20.1",
|
|
207
|
+
"typescript": "5.4.5",
|
|
208
|
+
"zod": "3.23.8"
|
|
200
209
|
},
|
|
201
|
-
"
|
|
202
|
-
"
|
|
203
|
-
"chokidar": {
|
|
204
|
-
"fsevents": {
|
|
205
|
-
"minimist": "^1.2.6"
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
}
|
|
210
|
+
"engines": {
|
|
211
|
+
"node": ">=16.0.0"
|
|
209
212
|
},
|
|
210
213
|
"license": "UNLICENSED",
|
|
211
214
|
"keywords": [
|
|
212
215
|
"client-sdk",
|
|
213
216
|
"es2015",
|
|
217
|
+
"umd",
|
|
218
|
+
"cjs",
|
|
219
|
+
"esm",
|
|
214
220
|
"paydock",
|
|
215
221
|
"sdk",
|
|
216
|
-
"
|
|
222
|
+
"typescript",
|
|
217
223
|
"widget"
|
|
218
224
|
]
|
|
219
225
|
}
|
package/slate.md
CHANGED
|
@@ -1103,7 +1103,7 @@ var button = new WalletButtons(
|
|
|
1103
1103
|
button.load();
|
|
1104
1104
|
```
|
|
1105
1105
|
|
|
1106
|
-
Flypay
|
|
1106
|
+
Flypay and Paypal wallets do not require any meta sent to the wallet, so the following is enough for initialization:
|
|
1107
1107
|
```javascript
|
|
1108
1108
|
let button = new paydock.WalletButtons(
|
|
1109
1109
|
"#widget",
|
|
@@ -1151,6 +1151,32 @@ var button = new WalletButtons(
|
|
|
1151
1151
|
button.load();
|
|
1152
1152
|
```
|
|
1153
1153
|
|
|
1154
|
+
For Flypay v2 wallet, the client_id is required:
|
|
1155
|
+
```javascript
|
|
1156
|
+
let button = new paydock.WalletButtons(
|
|
1157
|
+
"#widget",
|
|
1158
|
+
token,
|
|
1159
|
+
{
|
|
1160
|
+
client_id: "client_id",
|
|
1161
|
+
}
|
|
1162
|
+
);
|
|
1163
|
+
button.load();
|
|
1164
|
+
```
|
|
1165
|
+
|
|
1166
|
+
```javascript
|
|
1167
|
+
// ES2015 | TypeScript
|
|
1168
|
+
import { WalletButtons } from '@paydock/client-sdk';
|
|
1169
|
+
|
|
1170
|
+
var button = new WalletButtons(
|
|
1171
|
+
'#widget',
|
|
1172
|
+
token,
|
|
1173
|
+
{
|
|
1174
|
+
client_id: "client_id",
|
|
1175
|
+
}
|
|
1176
|
+
);
|
|
1177
|
+
button.load();
|
|
1178
|
+
```
|
|
1179
|
+
|
|
1154
1180
|
### Setting environment
|
|
1155
1181
|
|
|
1156
1182
|
Current method can change environment. By default environment = sandbox.
|
|
@@ -1451,10 +1477,11 @@ _(Required `meta` fields: - . Optional `meta` fields: -)_
|
|
|
1451
1477
|
{
|
|
1452
1478
|
access_token: 'TOKEN',
|
|
1453
1479
|
refresh_token: 'TOKEN',
|
|
1480
|
+
client_id: 'CLIENT_ID',
|
|
1454
1481
|
},
|
|
1455
1482
|
);
|
|
1456
1483
|
button.setEnv('sandbox');
|
|
1457
|
-
button.onUnavailable(() => console.log("No wallet buttons available"));
|
|
1484
|
+
button.onUnavailable((data) => console.log("No wallet buttons available"));
|
|
1458
1485
|
button.onPaymentSuccessful((data) => console.log("The payment was successful"));
|
|
1459
1486
|
button.onPaymentError((data) => console.log("The payment was not successful"));
|
|
1460
1487
|
button.onAuthTokensChanged((data) => console.log('Authentication tokens changed'));
|
|
@@ -1895,3 +1922,39 @@ src.setStyles({
|
|
|
1895
1922
|
font_family: 'Arial',
|
|
1896
1923
|
});
|
|
1897
1924
|
```
|
|
1925
|
+
|
|
1926
|
+
## Recognition token
|
|
1927
|
+
|
|
1928
|
+
In order to store user information for further payments, click to pay provides a recognition token that is used to load user information.
|
|
1929
|
+
If you already have a recognitionToken stored, you can use it in meta to load the user information.
|
|
1930
|
+
|
|
1931
|
+
### Storage suggestions
|
|
1932
|
+
Merchant can store the tokens by dropping the token as a 1st party cookie in the browser, and must ensure to manage all the security aspects around dropping/storing the cookie by following the security standards:
|
|
1933
|
+
|
|
1934
|
+
- `Expiration Date=` cookie should be set to expire at a max 180 days
|
|
1935
|
+
- `Secure` flag
|
|
1936
|
+
- `httpOnly` flag
|
|
1937
|
+
- `sameSite=` strict
|
|
1938
|
+
- `Value=` recognition token JWT
|
|
1939
|
+
|
|
1940
|
+
### Example code
|
|
1941
|
+
|
|
1942
|
+
```javascript
|
|
1943
|
+
var src = new paydock.ClickToPay(
|
|
1944
|
+
"#checkoutIframe",
|
|
1945
|
+
"service_id",
|
|
1946
|
+
"paydock_public_key",
|
|
1947
|
+
{
|
|
1948
|
+
"recognition_token": "eyJraWQiOiIy...",
|
|
1949
|
+
},
|
|
1950
|
+
);
|
|
1951
|
+
src.on('recognitionTokenRequested', (data) => {
|
|
1952
|
+
console.log('Recognition token was found: ' + data.data.recognitionToken);
|
|
1953
|
+
// Add recognition token to your store
|
|
1954
|
+
});
|
|
1955
|
+
|
|
1956
|
+
src.on('recognitionTokenDropped', () => {
|
|
1957
|
+
console.log('Recognition token was droped');
|
|
1958
|
+
// Delete recognition token from your store
|
|
1959
|
+
});
|
|
1960
|
+
```
|