@paydock/client-sdk 1.104.3-beta → 1.105.1
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/.nvmrc +1 -0
- package/README.md +572 -290
- package/api.d.ts +1 -0
- package/api.js +1 -0
- package/bundles/widget.umd.js +9130 -8655
- package/bundles/widget.umd.min.js +1 -2
- package/canvas3ds.d.ts +1 -0
- package/canvas3ds.js +1 -0
- package/checkout-button.d.ts +1 -0
- package/checkout-button.js +1 -0
- package/inicialization-guide.md +7 -0
- package/{bundles/types → lib}/api/api-base.d.ts +1 -2
- package/lib/api/api-base.js +101 -0
- package/lib/api/api-base.js.map +1 -0
- package/{bundles/types → lib}/api/api-charge-internal.d.ts +0 -1
- package/lib/api/api-charge-internal.js +30 -0
- package/lib/api/api-charge-internal.js.map +1 -0
- package/{bundles/types → lib}/api/api-charge.d.ts +0 -1
- package/lib/api/api-charge.js +49 -0
- package/lib/api/api-charge.js.map +1 -0
- package/{bundles/types → lib}/api/api-internal.d.ts +0 -1
- package/lib/api/api-internal.js +13 -0
- package/lib/api/api-internal.js.map +1 -0
- package/{bundles/types → lib}/api/api-service-internal.d.ts +0 -1
- package/lib/api/api-service-internal.js +18 -0
- package/lib/api/api-service-internal.js.map +1 -0
- package/{bundles/types → lib}/api/api.d.ts +1 -2
- package/lib/api/api.js +62 -0
- package/lib/api/api.js.map +1 -0
- package/lib/api/index.d.ts +1 -0
- package/lib/api/index.js +2 -0
- package/lib/api/index.js.map +1 -0
- package/{bundles/types → lib}/canvas-3ds/canvas-3ds.d.ts +1 -2
- package/lib/canvas-3ds/canvas-3ds.js +157 -0
- package/lib/canvas-3ds/canvas-3ds.js.map +1 -0
- package/{bundles/types → lib}/canvas-3ds/index.d.ts +0 -1
- package/lib/canvas-3ds/index.js +2 -0
- package/lib/canvas-3ds/index.js.map +1 -0
- package/{bundles/types → lib}/canvas-3ds/services/gpayments-service.d.ts +0 -1
- package/lib/canvas-3ds/services/gpayments-service.js +181 -0
- package/lib/canvas-3ds/services/gpayments-service.js.map +1 -0
- package/{bundles/types → lib}/canvas-3ds/services/index.d.ts +0 -1
- package/lib/canvas-3ds/services/index.js +2 -0
- package/lib/canvas-3ds/services/index.js.map +1 -0
- package/{bundles/types → lib}/canvas-3ds/services/standalone3ds-service.d.ts +0 -1
- package/lib/canvas-3ds/services/standalone3ds-service.js +32 -0
- package/lib/canvas-3ds/services/standalone3ds-service.js.map +1 -0
- package/{bundles/types → lib}/checkout-button/afterpay/afterpay-checkout-button.d.ts +1 -2
- package/lib/checkout-button/afterpay/afterpay-checkout-button.js +50 -0
- package/lib/checkout-button/afterpay/afterpay-checkout-button.js.map +1 -0
- package/{bundles/types → lib}/checkout-button/afterpay/afterpay.runner.d.ts +0 -1
- package/lib/checkout-button/afterpay/afterpay.runner.js +41 -0
- package/lib/checkout-button/afterpay/afterpay.runner.js.map +1 -0
- package/{bundles/types → lib}/checkout-button/checkout-button.d.ts +1 -2
- package/{bundles/types → lib}/checkout-button/checkout-button.interface.d.ts +0 -1
- package/lib/checkout-button/checkout-button.interface.js +45 -0
- package/lib/checkout-button/checkout-button.interface.js.map +1 -0
- package/lib/checkout-button/checkout-button.js +266 -0
- package/lib/checkout-button/checkout-button.js.map +1 -0
- package/{bundles/types → lib}/checkout-button/checkout-contextual-handler.d.ts +0 -1
- package/lib/checkout-button/checkout-contextual-handler.js +75 -0
- package/lib/checkout-button/checkout-contextual-handler.js.map +1 -0
- package/{bundles/types → lib}/checkout-button/index.d.ts +1 -2
- package/lib/checkout-button/index.js +85 -0
- package/lib/checkout-button/index.js.map +1 -0
- package/{bundles/types → lib}/checkout-button/paypal/paypal-checkout-button.d.ts +1 -2
- package/lib/checkout-button/paypal/paypal-checkout-button.js +25 -0
- package/lib/checkout-button/paypal/paypal-checkout-button.js.map +1 -0
- package/{bundles/types → lib}/checkout-button/paypal/paypal.runner.d.ts +0 -1
- package/lib/checkout-button/paypal/paypal.runner.js +14 -0
- package/lib/checkout-button/paypal/paypal.runner.js.map +1 -0
- package/{bundles/types → lib}/checkout-button/runner/base.runner.d.ts +3 -4
- package/lib/checkout-button/runner/base.runner.js +13 -0
- package/lib/checkout-button/runner/base.runner.js.map +1 -0
- package/{bundles/types → lib}/checkout-button/runner/contextual.runner.d.ts +1 -2
- package/lib/checkout-button/runner/contextual.runner.js +40 -0
- package/lib/checkout-button/runner/contextual.runner.js.map +1 -0
- package/{bundles/types → lib}/checkout-button/runner/index.d.ts +0 -1
- package/lib/checkout-button/runner/index.js +11 -0
- package/lib/checkout-button/runner/index.js.map +1 -0
- package/{bundles/types → lib}/checkout-button/runner/popup.runner.d.ts +1 -2
- package/lib/checkout-button/runner/popup.runner.js +68 -0
- package/lib/checkout-button/runner/popup.runner.js.map +1 -0
- package/{bundles/types → lib}/checkout-button/runner/redirect.runner.d.ts +1 -2
- package/lib/checkout-button/runner/redirect.runner.js +15 -0
- package/lib/checkout-button/runner/redirect.runner.js.map +1 -0
- package/{bundles/types → lib}/checkout-button/zipmoney/zipmoney-checkout-button.d.ts +1 -2
- package/lib/checkout-button/zipmoney/zipmoney-checkout-button.js +64 -0
- package/lib/checkout-button/zipmoney/zipmoney-checkout-button.js.map +1 -0
- package/{bundles/types → lib}/checkout-button/zipmoney/zipmoney-contextual.runner.d.ts +1 -2
- package/lib/checkout-button/zipmoney/zipmoney-contextual.runner.js +78 -0
- package/lib/checkout-button/zipmoney/zipmoney-contextual.runner.js.map +1 -0
- package/{bundles/types → lib}/checkout-button/zipmoney/zipmoney-redirect.runner.d.ts +1 -2
- package/lib/checkout-button/zipmoney/zipmoney-redirect.runner.js +49 -0
- package/lib/checkout-button/zipmoney/zipmoney-redirect.runner.js.map +1 -0
- package/{bundles/types → lib}/checkout-button/zipmoney/zipmoney.config.d.ts +0 -1
- package/lib/checkout-button/zipmoney/zipmoney.config.js +4 -0
- package/lib/checkout-button/zipmoney/zipmoney.config.js.map +1 -0
- package/{bundles/types → lib}/checkout-button/zipmoney/zipmoney.runner.d.ts +1 -2
- package/lib/checkout-button/zipmoney/zipmoney.runner.js +23 -0
- package/lib/checkout-button/zipmoney/zipmoney.runner.js.map +1 -0
- package/{bundles/types → lib}/checkout-button/zipmoney/zipmoney.types.d.ts +0 -1
- package/lib/checkout-button/zipmoney/zipmoney.types.js +1 -0
- package/lib/checkout-button/zipmoney/zipmoney.types.js.map +1 -0
- package/{bundles/types → lib}/components/ability-guard.d.ts +0 -1
- package/lib/components/ability-guard.js +44 -0
- package/lib/components/ability-guard.js.map +1 -0
- package/{bundles/types → lib}/components/background.d.ts +0 -1
- package/lib/components/background.js +193 -0
- package/lib/components/background.js.map +1 -0
- package/{bundles/types → lib}/components/container.d.ts +1 -1
- package/lib/components/container.js +63 -0
- package/lib/components/container.js.map +1 -0
- package/{bundles/types → lib}/components/dispatcher.d.ts +1 -2
- package/lib/components/dispatcher.js +39 -0
- package/lib/components/dispatcher.js.map +1 -0
- package/{bundles/types → lib}/components/element-style.d.ts +1 -2
- package/lib/components/element-style.js +52 -0
- package/lib/components/element-style.js.map +1 -0
- package/{bundles/types → lib}/components/flypay-iframe-event.d.ts +0 -1
- package/lib/components/flypay-iframe-event.js +28 -0
- package/lib/components/flypay-iframe-event.js.map +1 -0
- package/{bundles/types/components/form-interceptor.d.ts → lib/components/form-Interceptor.d.ts} +0 -1
- package/lib/components/form-Interceptor.js +38 -0
- package/lib/components/form-Interceptor.js.map +1 -0
- package/{bundles/types → lib}/components/http-core.d.ts +0 -1
- package/lib/components/http-core.js +57 -0
- package/lib/components/http-core.js.map +1 -0
- package/{bundles/types → lib}/components/iframe-event.d.ts +15 -13
- package/lib/components/iframe-event.js +75 -0
- package/lib/components/iframe-event.js.map +1 -0
- package/{bundles/types → lib}/components/iframe.d.ts +0 -1
- package/lib/components/iframe.js +62 -0
- package/lib/components/iframe.js.map +1 -0
- package/{bundles/types → lib}/components/link.d.ts +1 -2
- package/lib/components/link.js +59 -0
- package/lib/components/link.js.map +1 -0
- package/{bundles/types → lib}/components/loader.d.ts +0 -1
- package/lib/components/loader.js +234 -0
- package/lib/components/loader.js.map +1 -0
- package/{bundles/types → lib}/components/param.d.ts +9 -12
- package/lib/components/param.js +147 -0
- package/lib/components/param.js.map +1 -0
- package/{bundles/types → lib}/components/popup.d.ts +0 -1
- package/lib/components/popup.js +104 -0
- package/lib/components/popup.js.map +1 -0
- package/{bundles/types → lib}/components/storage-dispatcher.d.ts +0 -1
- package/lib/components/storage-dispatcher.js +75 -0
- package/lib/components/storage-dispatcher.js.map +1 -0
- package/{bundles/types → lib}/components/trigger.d.ts +0 -1
- package/lib/components/trigger.js +49 -0
- package/lib/components/trigger.js.map +1 -0
- package/{bundles/types → lib}/components/vault-display-iframe-event.d.ts +0 -1
- package/lib/components/vault-display-iframe-event.js +27 -0
- package/lib/components/vault-display-iframe-event.js.map +1 -0
- package/{bundles/types → lib}/components/wallet-background.d.ts +2 -2
- package/lib/components/wallet-background.js +63 -0
- package/lib/components/wallet-background.js.map +1 -0
- package/{bundles/types → lib}/components/wallet-trigger.d.ts +0 -1
- package/lib/components/wallet-trigger.js +27 -0
- package/lib/components/wallet-trigger.js.map +1 -0
- package/{bundles/types/configs/env/environment.paydock.d.ts → lib/configs/env/env.d.ts} +8 -5
- package/lib/configs/env/env.js +117 -0
- package/lib/configs/env/env.js.map +1 -0
- package/{bundles/types → lib}/configs/sdk.d.ts +2 -3
- package/lib/configs/sdk.js +16 -0
- package/lib/configs/sdk.js.map +1 -0
- package/lib/constants/validators.d.ts +44 -0
- package/lib/constants/validators.js +42 -0
- package/lib/constants/validators.js.map +1 -0
- package/{bundles/types → lib}/external-checkout/builder.d.ts +0 -1
- package/lib/external-checkout/builder.js +45 -0
- package/lib/external-checkout/builder.js.map +1 -0
- package/{bundles/types → lib}/external-checkout/checker.d.ts +0 -1
- package/lib/external-checkout/checker.js +22 -0
- package/lib/external-checkout/checker.js.map +1 -0
- package/lib/external-checkout/index.d.ts +2 -0
- package/lib/external-checkout/index.js +3 -0
- package/lib/external-checkout/index.js.map +1 -0
- package/{bundles/types → lib}/helper/access-token.d.ts +0 -1
- package/lib/helper/access-token.js +44 -0
- package/lib/helper/access-token.js.map +1 -0
- package/{bundles/types → lib}/helper/browser.d.ts +0 -1
- package/lib/helper/browser.js +79 -0
- package/lib/helper/browser.js.map +1 -0
- package/{bundles/types → lib}/helper/event-emitter.d.ts +0 -1
- package/lib/helper/event-emitter.js +23 -0
- package/lib/helper/event-emitter.js.map +1 -0
- package/{bundles/types → lib}/helper/event.d.ts +0 -1
- package/lib/helper/event.js +23 -0
- package/lib/helper/event.js.map +1 -0
- package/{bundles/types → lib}/helper/ms.d.ts +0 -1
- package/lib/helper/ms.js +32 -0
- package/lib/helper/ms.js.map +1 -0
- package/{bundles/types → lib}/helper/object.d.ts +0 -1
- package/lib/helper/object.js +6 -0
- package/lib/helper/object.js.map +1 -0
- package/{bundles/types → lib}/helper/url.d.ts +0 -1
- package/lib/helper/url.js +11 -0
- package/lib/helper/url.js.map +1 -0
- package/{bundles/types → lib}/helper/uuid.d.ts +0 -1
- package/lib/helper/uuid.js +26 -0
- package/lib/helper/uuid.js.map +1 -0
- package/lib/index.d.ts +15 -0
- package/lib/index.js +15 -0
- package/lib/index.js.map +1 -0
- package/{bundles/types → lib}/payment-source/builder.d.ts +0 -1
- package/lib/payment-source/builder.js +49 -0
- package/lib/payment-source/builder.js.map +1 -0
- package/{bundles/types → lib}/payment-source/index.d.ts +0 -1
- package/lib/payment-source/index.js +2 -0
- package/lib/payment-source/index.js.map +1 -0
- package/{bundles/types → lib}/payment-source-widget/html-payment-source-widget.d.ts +17 -14
- package/lib/payment-source-widget/html-payment-source-widget.js +172 -0
- package/lib/payment-source-widget/html-payment-source-widget.js.map +1 -0
- package/{bundles/types → lib}/payment-source-widget/index.d.ts +0 -1
- package/lib/payment-source-widget/index.js +35 -0
- package/lib/payment-source-widget/index.js.map +1 -0
- package/{bundles/types → lib}/payment-source-widget/interfaces.d.ts +0 -1
- package/lib/payment-source-widget/interfaces.js +2 -0
- package/lib/payment-source-widget/interfaces.js.map +1 -0
- package/{bundles/types → lib}/payment-source-widget/payment-source-widget.d.ts +1 -2
- package/lib/payment-source-widget/payment-source-widget.js +142 -0
- package/lib/payment-source-widget/payment-source-widget.js.map +1 -0
- package/{bundles/types → lib}/secure-remote-commerce/index.d.ts +0 -1
- package/lib/secure-remote-commerce/index.js +2 -0
- package/lib/secure-remote-commerce/index.js.map +1 -0
- package/{bundles/types → lib}/secure-remote-commerce/interfaces.d.ts +5 -6
- package/lib/secure-remote-commerce/interfaces.js +28 -0
- package/lib/secure-remote-commerce/interfaces.js.map +1 -0
- package/{bundles/types → lib}/secure-remote-commerce/providers/src-provider.d.ts +0 -1
- package/lib/secure-remote-commerce/providers/src-provider.js +1 -0
- package/lib/secure-remote-commerce/providers/src-provider.js.map +1 -0
- package/{bundles/types → lib}/secure-remote-commerce/providers/visa-src/helper.d.ts +0 -1
- package/lib/secure-remote-commerce/providers/visa-src/helper.js +36 -0
- package/lib/secure-remote-commerce/providers/visa-src/helper.js.map +1 -0
- package/{bundles/types → lib}/secure-remote-commerce/providers/visa-src/index.d.ts +0 -1
- package/lib/secure-remote-commerce/providers/visa-src/index.js +2 -0
- package/lib/secure-remote-commerce/providers/visa-src/index.js.map +1 -0
- package/{bundles/types → lib}/secure-remote-commerce/providers/visa-src/visa-src.d.ts +0 -1
- package/lib/secure-remote-commerce/providers/visa-src/visa-src.js +113 -0
- package/lib/secure-remote-commerce/providers/visa-src/visa-src.js.map +1 -0
- package/{bundles/types → lib}/secure-remote-commerce/providers/visa-src/visa-src.styles.d.ts +0 -1
- package/lib/secure-remote-commerce/providers/visa-src/visa-src.styles.js +10 -0
- package/lib/secure-remote-commerce/providers/visa-src/visa-src.styles.js.map +1 -0
- package/{bundles/types → lib}/secure-remote-commerce/secure-remote-commerce.d.ts +1 -2
- package/lib/secure-remote-commerce/secure-remote-commerce.js +239 -0
- package/lib/secure-remote-commerce/secure-remote-commerce.js.map +1 -0
- package/{bundles/types → lib}/vault-display-widget/index.d.ts +0 -1
- package/lib/vault-display-widget/index.js +14 -0
- package/lib/vault-display-widget/index.js.map +1 -0
- package/{bundles/types → lib}/vault-display-widget/vault-display-widget.d.ts +1 -2
- package/lib/vault-display-widget/vault-display-widget.js +99 -0
- package/lib/vault-display-widget/vault-display-widget.js.map +1 -0
- package/{bundles/types → lib}/wallet-buttons/afterpay.wallet-service.d.ts +0 -1
- package/lib/wallet-buttons/afterpay.wallet-service.js +152 -0
- package/lib/wallet-buttons/afterpay.wallet-service.js.map +1 -0
- package/{bundles/types → lib}/wallet-buttons/apple.wallet-service.d.ts +2 -1
- package/lib/wallet-buttons/apple.wallet-service.js +324 -0
- package/lib/wallet-buttons/apple.wallet-service.js.map +1 -0
- package/{bundles/types → lib}/wallet-buttons/flypay-v2.wallet-service.d.ts +9 -2
- package/lib/wallet-buttons/flypay-v2.wallet-service.js +165 -0
- package/lib/wallet-buttons/flypay-v2.wallet-service.js.map +1 -0
- package/{bundles/types → lib}/wallet-buttons/flypay.wallet-service.d.ts +0 -1
- package/lib/wallet-buttons/flypay.wallet-service.js +117 -0
- package/lib/wallet-buttons/flypay.wallet-service.js.map +1 -0
- package/{bundles/types → lib}/wallet-buttons/google.wallet-service.d.ts +3 -1
- package/lib/wallet-buttons/google.wallet-service.js +301 -0
- package/lib/wallet-buttons/google.wallet-service.js.map +1 -0
- package/lib/wallet-buttons/helpers/flypay-v2.helper.d.ts +3 -0
- package/lib/wallet-buttons/helpers/flypay-v2.helper.js +151 -0
- package/lib/wallet-buttons/helpers/flypay-v2.helper.js.map +1 -0
- package/lib/wallet-buttons/index.d.ts +127 -0
- package/lib/wallet-buttons/index.js +128 -0
- package/lib/wallet-buttons/index.js.map +1 -0
- package/{bundles/types → lib}/wallet-buttons/interfaces.d.ts +3 -1
- package/lib/wallet-buttons/interfaces.js +1 -0
- package/lib/wallet-buttons/interfaces.js.map +1 -0
- package/{bundles/types → lib}/wallet-buttons/mastercard.wallet-service.d.ts +0 -1
- package/lib/wallet-buttons/mastercard.wallet-service.js +27 -0
- package/lib/wallet-buttons/mastercard.wallet-service.js.map +1 -0
- package/{bundles/types → lib}/wallet-buttons/paypal.wallet-service.d.ts +0 -1
- package/lib/wallet-buttons/paypal.wallet-service.js +144 -0
- package/lib/wallet-buttons/paypal.wallet-service.js.map +1 -0
- package/{bundles/types → lib}/wallet-buttons/stripe.wallet-service.d.ts +0 -1
- package/lib/wallet-buttons/stripe.wallet-service.js +100 -0
- package/lib/wallet-buttons/stripe.wallet-service.js.map +1 -0
- package/{bundles/types/wallet-buttons/wallet-cba-buttons.d.ts → lib/wallet-buttons/wallet-buttons.d.ts} +92 -115
- package/lib/wallet-buttons/wallet-buttons.js +479 -0
- package/lib/wallet-buttons/wallet-buttons.js.map +1 -0
- package/{bundles/types → lib}/wallet-buttons/wallet-service.d.ts +7 -1
- package/lib/wallet-buttons/wallet-service.js +60 -0
- package/lib/wallet-buttons/wallet-service.js.map +1 -0
- package/{bundles/types → lib}/widget/configuration.d.ts +2 -3
- package/lib/widget/configuration.js +260 -0
- package/lib/widget/configuration.js.map +1 -0
- package/lib/widget/html-multi-widget.d.ts +336 -0
- package/lib/widget/html-multi-widget.js +422 -0
- package/lib/widget/html-multi-widget.js.map +1 -0
- package/{bundles/types → lib}/widget/html-widget.d.ts +1 -2
- package/lib/widget/html-widget.js +127 -0
- package/lib/widget/html-widget.js.map +1 -0
- package/{bundles/types → lib}/widget/index.d.ts +1 -2
- package/lib/widget/index.js +132 -0
- package/lib/widget/index.js.map +1 -0
- package/{bundles/types → lib}/widget/meta.d.ts +0 -1
- package/lib/widget/meta.js +8 -0
- package/lib/widget/meta.js.map +1 -0
- package/{bundles/types → lib}/widget/multi-widget.d.ts +1 -2
- package/lib/widget/multi-widget.js +437 -0
- package/lib/widget/multi-widget.js.map +1 -0
- package/{bundles/types → lib}/widget/style.d.ts +0 -1
- package/lib/widget/style.js +204 -0
- package/lib/widget/style.js.map +1 -0
- package/package.json +42 -164
- package/payment-source-widget.d.ts +1 -0
- package/payment-source-widget.js +1 -0
- package/slate.md +136 -107
- package/tslint.json +129 -0
- package/typings/globals/@auspayplus/open-payments-checkout/index.d.ts +43 -0
- package/typings/globals/jasmine/index.d.ts +576 -0
- package/typings/globals/jasmine-ajax/index.d.ts +83 -0
- package/typings/globals/jquery/index.d.ts +3759 -0
- package/typings/index.d.ts +4 -0
- package/vault-display-widget.d.ts +1 -0
- package/vault-display-widget.js +1 -0
- package/vendors/zipmoney.d.ts +18 -0
- package/vendors/zipmoney.js +2 -0
- package/widget.d.ts +1 -0
- package/widget.js +1 -0
- package/bundles/index.cjs +0 -10674
- package/bundles/index.cjs.d.ts +0 -3163
- package/bundles/index.cjs.map +0 -1
- package/bundles/index.mjs +0 -10642
- package/bundles/index.mjs.d.ts +0 -3163
- package/bundles/index.mjs.map +0 -1
- package/bundles/types/api/api-base.d.ts.map +0 -1
- package/bundles/types/api/api-charge-internal.d.ts.map +0 -1
- package/bundles/types/api/api-charge.d.ts.map +0 -1
- package/bundles/types/api/api-internal.d.ts.map +0 -1
- package/bundles/types/api/api-service-internal.d.ts.map +0 -1
- package/bundles/types/api/api.d.ts.map +0 -1
- package/bundles/types/api/index.d.ts +0 -2
- package/bundles/types/api/index.d.ts.map +0 -1
- package/bundles/types/canvas-3ds/canvas-3ds.d.ts.map +0 -1
- package/bundles/types/canvas-3ds/index.d.ts.map +0 -1
- package/bundles/types/canvas-3ds/services/gpayments-service.d.ts.map +0 -1
- package/bundles/types/canvas-3ds/services/index.d.ts.map +0 -1
- package/bundles/types/canvas-3ds/services/standalone3ds-service.d.ts.map +0 -1
- package/bundles/types/checkout-button/afterpay/afterpay-checkout-button.d.ts.map +0 -1
- package/bundles/types/checkout-button/afterpay/afterpay.runner.d.ts.map +0 -1
- package/bundles/types/checkout-button/checkout-button.d.ts.map +0 -1
- package/bundles/types/checkout-button/checkout-button.interface.d.ts.map +0 -1
- package/bundles/types/checkout-button/checkout-contextual-handler.d.ts.map +0 -1
- package/bundles/types/checkout-button/index.d.ts.map +0 -1
- package/bundles/types/checkout-button/paypal/paypal-checkout-button.d.ts.map +0 -1
- package/bundles/types/checkout-button/paypal/paypal.runner.d.ts.map +0 -1
- package/bundles/types/checkout-button/runner/base.runner.d.ts.map +0 -1
- package/bundles/types/checkout-button/runner/contextual.runner.d.ts.map +0 -1
- package/bundles/types/checkout-button/runner/index.d.ts.map +0 -1
- package/bundles/types/checkout-button/runner/popup.runner.d.ts.map +0 -1
- package/bundles/types/checkout-button/runner/redirect.runner.d.ts.map +0 -1
- package/bundles/types/checkout-button/zipmoney/index.d.ts +0 -4
- package/bundles/types/checkout-button/zipmoney/index.d.ts.map +0 -1
- package/bundles/types/checkout-button/zipmoney/zipmoney-checkout-button.d.ts.map +0 -1
- package/bundles/types/checkout-button/zipmoney/zipmoney-contextual.runner.d.ts.map +0 -1
- package/bundles/types/checkout-button/zipmoney/zipmoney-redirect.runner.d.ts.map +0 -1
- package/bundles/types/checkout-button/zipmoney/zipmoney.config.d.ts.map +0 -1
- package/bundles/types/checkout-button/zipmoney/zipmoney.runner.d.ts.map +0 -1
- package/bundles/types/checkout-button/zipmoney/zipmoney.types.d.ts.map +0 -1
- package/bundles/types/components/ability-guard.d.ts.map +0 -1
- package/bundles/types/components/background.d.ts.map +0 -1
- package/bundles/types/components/container.d.ts.map +0 -1
- package/bundles/types/components/dispatcher.d.ts.map +0 -1
- package/bundles/types/components/element-style.d.ts.map +0 -1
- package/bundles/types/components/flypay-iframe-event.d.ts.map +0 -1
- package/bundles/types/components/form-interceptor.d.ts.map +0 -1
- package/bundles/types/components/http-core.d.ts.map +0 -1
- package/bundles/types/components/iframe-event.d.ts.map +0 -1
- package/bundles/types/components/iframe.d.ts.map +0 -1
- package/bundles/types/components/link.d.ts.map +0 -1
- package/bundles/types/components/loader.d.ts.map +0 -1
- package/bundles/types/components/param.d.ts.map +0 -1
- package/bundles/types/components/popup.d.ts.map +0 -1
- package/bundles/types/components/storage-dispatcher.d.ts.map +0 -1
- package/bundles/types/components/trigger.d.ts.map +0 -1
- package/bundles/types/components/vault-display-iframe-event.d.ts.map +0 -1
- package/bundles/types/components/wallet-background.d.ts.map +0 -1
- package/bundles/types/components/wallet-trigger.d.ts.map +0 -1
- package/bundles/types/configs/env/environment.cba.d.ts +0 -29
- package/bundles/types/configs/env/environment.cba.d.ts.map +0 -1
- package/bundles/types/configs/env/environment.interface.d.ts +0 -12
- package/bundles/types/configs/env/environment.interface.d.ts.map +0 -1
- package/bundles/types/configs/env/environment.paydock.d.ts.map +0 -1
- package/bundles/types/configs/env/index.d.ts +0 -3
- package/bundles/types/configs/env/index.d.ts.map +0 -1
- package/bundles/types/configs/sdk.d.ts.map +0 -1
- package/bundles/types/external-checkout/builder.d.ts.map +0 -1
- package/bundles/types/external-checkout/checker.d.ts.map +0 -1
- package/bundles/types/external-checkout/index.d.ts +0 -3
- package/bundles/types/external-checkout/index.d.ts.map +0 -1
- package/bundles/types/helper/access-token.d.ts.map +0 -1
- package/bundles/types/helper/browser.d.ts.map +0 -1
- package/bundles/types/helper/event-emitter.d.ts.map +0 -1
- package/bundles/types/helper/event.d.ts.map +0 -1
- package/bundles/types/helper/ms.d.ts.map +0 -1
- package/bundles/types/helper/object.d.ts.map +0 -1
- package/bundles/types/helper/url.d.ts.map +0 -1
- package/bundles/types/helper/uuid.d.ts.map +0 -1
- package/bundles/types/index-cba.d.ts +0 -13
- package/bundles/types/index-cba.d.ts.map +0 -1
- package/bundles/types/index.d.ts +0 -14
- package/bundles/types/index.d.ts.map +0 -1
- package/bundles/types/payment-source/builder.d.ts.map +0 -1
- package/bundles/types/payment-source/index.d.ts.map +0 -1
- package/bundles/types/payment-source-widget/html-payment-source-widget.d.ts.map +0 -1
- package/bundles/types/payment-source-widget/index.d.ts.map +0 -1
- package/bundles/types/payment-source-widget/interfaces.d.ts.map +0 -1
- package/bundles/types/payment-source-widget/payment-source-widget.d.ts.map +0 -1
- package/bundles/types/secure-remote-commerce/index.d.ts.map +0 -1
- package/bundles/types/secure-remote-commerce/interfaces.d.ts.map +0 -1
- package/bundles/types/secure-remote-commerce/providers/src-provider.d.ts.map +0 -1
- package/bundles/types/secure-remote-commerce/providers/visa-src/helper.d.ts.map +0 -1
- package/bundles/types/secure-remote-commerce/providers/visa-src/index.d.ts.map +0 -1
- package/bundles/types/secure-remote-commerce/providers/visa-src/visa-src.d.ts.map +0 -1
- package/bundles/types/secure-remote-commerce/providers/visa-src/visa-src.styles.d.ts.map +0 -1
- package/bundles/types/secure-remote-commerce/secure-remote-commerce.d.ts.map +0 -1
- package/bundles/types/vault-display-widget/index.d.ts.map +0 -1
- package/bundles/types/vault-display-widget/vault-display-widget.d.ts.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/index-cba.d.ts +0 -2
- package/bundles/types/wallet-buttons/index-cba.d.ts.map +0 -1
- package/bundles/types/wallet-buttons/index.d.ts +0 -2
- package/bundles/types/wallet-buttons/index.d.ts.map +0 -1
- package/bundles/types/wallet-buttons/interfaces.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-buttons.d.ts +0 -366
- package/bundles/types/wallet-buttons/wallet-buttons.d.ts.map +0 -1
- package/bundles/types/wallet-buttons/wallet-cba-buttons.d.ts.map +0 -1
- package/bundles/types/wallet-buttons/wallet-service.d.ts.map +0 -1
- package/bundles/types/widget/configuration.d.ts.map +0 -1
- package/bundles/types/widget/html-multi-widget.d.ts +0 -266
- package/bundles/types/widget/html-multi-widget.d.ts.map +0 -1
- package/bundles/types/widget/html-widget.d.ts.map +0 -1
- package/bundles/types/widget/index.d.ts.map +0 -1
- package/bundles/types/widget/meta.d.ts.map +0 -1
- package/bundles/types/widget/multi-widget.d.ts.map +0 -1
- package/bundles/types/widget/style.d.ts.map +0 -1
- package/bundles/widget.umd.js.d.ts +0 -3163
- package/bundles/widget.umd.js.map +0 -1
- package/bundles/widget.umd.js.min.d.ts +0 -3163
- package/bundles/widget.umd.min.js.map +0 -1
- package/docs/api-canvas3ds.md +0 -158
- package/docs/api-checkout-button.md +0 -912
- package/docs/api-examples.md +0 -65
- package/docs/api-ps-widget.md +0 -585
- package/docs/api-vault-display.md +0 -94
- package/docs/api-widget.md +0 -2444
- package/docs/api-wrapper.md +0 -78
- package/docs/canvas3ds-examples.md +0 -242
- package/docs/cba-header.md +0 -13
- package/docs/cba-license.md +0 -2
- package/docs/checkout-examples.md +0 -248
- package/docs/header.md +0 -15
- package/docs/html/layout.html +0 -78
- package/docs/html/marked.js +0 -23
- package/docs/html/style.css +0 -365
- package/docs/install/npm.content.md +0 -16
- package/docs/install/npm.example.md +0 -24
- package/docs/install/umd.content.md +0 -20
- package/docs/install/umd.example.md +0 -6
- package/docs/install.md +0 -43
- package/docs/install.readme.t.md +0 -17
- package/docs/install.slate.t.md +0 -17
- package/docs/license.md +0 -2
- package/docs/partials/header.hbs +0 -3
- package/docs/ps-examples.md +0 -129
- package/docs/secure-remote-commerce-examples.md +0 -258
- package/docs/secure-remote-commerce.md +0 -265
- package/docs/vault-display-example.md +0 -132
- package/docs/wallet-buttons-examples.md +0 -580
- package/docs/wallet-buttons.md +0 -424
- package/docs/wallet-cba-buttons-examples.md +0 -388
- package/docs/widget-examples.md +0 -134
package/docs/html/marked.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
var fs = require('fs');
|
|
2
|
-
var marked = require('marked');
|
|
3
|
-
var hljs = require('highlight.js');
|
|
4
|
-
var renderer = new marked.Renderer();
|
|
5
|
-
var src = fs.readFileSync('./README.md', 'utf8');
|
|
6
|
-
var tmpl = fs.readFileSync('docs/html/layout.html', 'utf8');
|
|
7
|
-
var html = marked.marked(src, {
|
|
8
|
-
renderer: renderer,
|
|
9
|
-
highlight: function(code, lang) {
|
|
10
|
-
var language = hljs.getLanguage(lang) ? lang : 'plaintext';
|
|
11
|
-
return hljs.highlight(code, { language: language }).value;
|
|
12
|
-
},
|
|
13
|
-
});
|
|
14
|
-
var buffer = Buffer.from(tmpl
|
|
15
|
-
.replace('<!--{{content}}-->', html),
|
|
16
|
-
'utf8'
|
|
17
|
-
);
|
|
18
|
-
fs.writeFile('docs/html/readme.html', buffer, function(error) {
|
|
19
|
-
if (error)
|
|
20
|
-
console.log(error);
|
|
21
|
-
});
|
|
22
|
-
console.log('----Complete---');
|
|
23
|
-
|
package/docs/html/style.css
DELETED
|
@@ -1,365 +0,0 @@
|
|
|
1
|
-
/* sass-ified from npm-website */
|
|
2
|
-
.body {
|
|
3
|
-
margin: 0;
|
|
4
|
-
color: #333;
|
|
5
|
-
font-family: 'Source Sans Pro', 'Lucida Grande', sans-serif;
|
|
6
|
-
}
|
|
7
|
-
.logo {
|
|
8
|
-
margin-right: 15px;
|
|
9
|
-
padding: 5px;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
ol {
|
|
13
|
-
list-style-position: outside;
|
|
14
|
-
font-weight: 600;
|
|
15
|
-
margin-bottom: 20px;
|
|
16
|
-
margin-left: 16px;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
ol li {
|
|
20
|
-
margin-bottom: 2px;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
li {
|
|
24
|
-
font-weight: 400;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
h1 {
|
|
28
|
-
margin: 24px 0 16px 0;
|
|
29
|
-
padding: 0;
|
|
30
|
-
padding-bottom: 7px;
|
|
31
|
-
line-height: 1.2;
|
|
32
|
-
white-space: normal;
|
|
33
|
-
text-transform: none;
|
|
34
|
-
letter-spacing: -0.8px;
|
|
35
|
-
font-weight: 700;
|
|
36
|
-
border-bottom: 1px solid rgba(0, 0, 0, .1);
|
|
37
|
-
font-size: 2.25rem;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
> h1 a {
|
|
41
|
-
color: text-color;
|
|
42
|
-
text-decoration: none;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
h2,
|
|
46
|
-
h3,
|
|
47
|
-
h4,
|
|
48
|
-
h5,
|
|
49
|
-
h6 {
|
|
50
|
-
font-weight: 600;
|
|
51
|
-
font-family: 'Source Sans Pro', 'Lucida Grande', sans-serif;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
> h2 a,
|
|
55
|
-
h3 a,
|
|
56
|
-
h4 a,
|
|
57
|
-
h5 a,
|
|
58
|
-
h6 a {
|
|
59
|
-
font-weight: 700;
|
|
60
|
-
text-decoration: none;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
> h2 a:hover,
|
|
64
|
-
h3 a:hover,
|
|
65
|
-
h4 a:hover,
|
|
66
|
-
h5 a:hover,
|
|
67
|
-
h6 a:hover {
|
|
68
|
-
text-decoration: underline;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
> h1,
|
|
72
|
-
h2 {
|
|
73
|
-
border-bottom: 1px solid greigh6;
|
|
74
|
-
margin: 8px 0 16px 0;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
h2 {
|
|
78
|
-
letter-spacing: -0.3px;
|
|
79
|
-
font-size: 1.875rem;
|
|
80
|
-
border-bottom: 1px solid rgba(0, 0, 0, .1);
|
|
81
|
-
padding-bottom: 8px;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
h3 {
|
|
85
|
-
margin: 16px 0 4px 0;
|
|
86
|
-
font-size: 1.25rem;
|
|
87
|
-
letter-spacing: -.03rem;
|
|
88
|
-
font-family: 'Source Sans Pro', 'Lucida Grande', sans-serif;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
h4,
|
|
92
|
-
h5,
|
|
93
|
-
h6 {
|
|
94
|
-
margin: 16px 0 4px 0;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
ol ol,
|
|
98
|
-
ul ol,
|
|
99
|
-
ol ul,
|
|
100
|
-
ul ul {
|
|
101
|
-
margin: 0 0 0 0;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
p,
|
|
105
|
-
li {
|
|
106
|
-
color: #333;
|
|
107
|
-
font-size: 18px;
|
|
108
|
-
margin-top: 0;
|
|
109
|
-
margin-bottom: 4px;
|
|
110
|
-
line-height: 1.20;
|
|
111
|
-
letter-spacing: 0.1px;
|
|
112
|
-
font-family: 'Source Sans Pro', 'Lucida Grande', sans-serif;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
p a,
|
|
116
|
-
li a {
|
|
117
|
-
font-weight: 600;
|
|
118
|
-
color: #cb3837;
|
|
119
|
-
text-decoration: none;
|
|
120
|
-
font-size: 1em;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
th {
|
|
124
|
-
font-weight: bold;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
td,
|
|
128
|
-
th {
|
|
129
|
-
background: #fff;
|
|
130
|
-
border: 1px solid greigh6;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
img {
|
|
134
|
-
max-width: 100%;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
h1:hover .deep-link .deep-link-icon,
|
|
138
|
-
h2:hover .deep-link .deep-link-icon,
|
|
139
|
-
h3:hover .deep-link .deep-link-icon,
|
|
140
|
-
h4:hover .deep-link .deep-link-icon,
|
|
141
|
-
h5:hover .deep-link .deep-link-icon,
|
|
142
|
-
h6:hover .deep-link .deep-link-icon,
|
|
143
|
-
.deep-link:hover .deep-link-icon,
|
|
144
|
-
.deep-link-icon:hover {
|
|
145
|
-
visibility: visible;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
.deep-link {
|
|
149
|
-
float: left;
|
|
150
|
-
margin-left: -20px;
|
|
151
|
-
padding-right: 4px;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
.deep-link .deep-link-icon {
|
|
155
|
-
visibility: hidden;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
blockquote {
|
|
159
|
-
background: #efefef;
|
|
160
|
-
padding: 1px 16px;
|
|
161
|
-
margin-left: 0;
|
|
162
|
-
margin-right: 0;
|
|
163
|
-
border-left: #cecece solid 10px;
|
|
164
|
-
border-radius: 3px;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
table {
|
|
168
|
-
display: block;
|
|
169
|
-
white-space: normal;
|
|
170
|
-
overflow-x: auto;
|
|
171
|
-
width: max-content;
|
|
172
|
-
max-width: 100%;
|
|
173
|
-
border-spacing: 0;
|
|
174
|
-
border-collapse: collapse;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
td, th {
|
|
178
|
-
padding: 9px 13px;
|
|
179
|
-
border: 1px solid #d8d8d8;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
tr:nth-child(2n) td {
|
|
183
|
-
background-color: #f4f4f4;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
pre {
|
|
188
|
-
color: #000;
|
|
189
|
-
margin-bottom: 16px;
|
|
190
|
-
margin-top: 0;
|
|
191
|
-
padding: 12px;
|
|
192
|
-
font-size: 1em;
|
|
193
|
-
background: #f7f7f7;
|
|
194
|
-
border-radius: 2px;
|
|
195
|
-
overflow-x: auto;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
p code {
|
|
199
|
-
font-size: 0.9em;
|
|
200
|
-
border-radius: 2px;
|
|
201
|
-
background: #f7f7f7;
|
|
202
|
-
padding: 0px 5px;
|
|
203
|
-
font-variant-ligatures: none;
|
|
204
|
-
font-family: "Fira Mono", "Andale Mono", "Consolas", monospace;
|
|
205
|
-
letter-spacing: 0px;
|
|
206
|
-
line-height: 24px;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
dt a {
|
|
210
|
-
color: #cb3837;
|
|
211
|
-
text-decoration: none;
|
|
212
|
-
font-size: 1em;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
:root {
|
|
216
|
-
background-color: #fff;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
button, input, optgroup, select, textarea {
|
|
220
|
-
font-family: 'Source Sans Pro', 'Lucida Grande', sans-serif;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
*, *:before, *:after {
|
|
224
|
-
box-sizing: border-box;
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
.body {
|
|
228
|
-
min-height: 100vh;
|
|
229
|
-
display: -ms-flexbox;
|
|
230
|
-
display: flex;
|
|
231
|
-
-ms-flex-direction: column;
|
|
232
|
-
flex-direction: column;
|
|
233
|
-
-webkit-font-smoothing: antialiased;
|
|
234
|
-
-moz-osx-font-smoothing: grayscale;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
section {
|
|
238
|
-
width: 66%;
|
|
239
|
-
margin: 0 auto;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
.body main {
|
|
243
|
-
position: relative;
|
|
244
|
-
-ms-flex: 0 0 auto;
|
|
245
|
-
flex: 0 0 auto;
|
|
246
|
-
-ms-flex-positive: 1;
|
|
247
|
-
flex-grow: 1;
|
|
248
|
-
display: -ms-flexbox;
|
|
249
|
-
display: flex;
|
|
250
|
-
-ms-flex-direction: column;
|
|
251
|
-
flex-direction: column;
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
a {
|
|
255
|
-
color: black;
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
a {
|
|
259
|
-
text-decoration: none;
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
li, li {
|
|
263
|
-
padding: 3px;
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
code {
|
|
267
|
-
font-feature-settings: none;
|
|
268
|
-
font-variant-ligatures: none;
|
|
269
|
-
font-family: "Fira Mono", "Andale Mono", "Consolas", monospace;
|
|
270
|
-
letter-spacing: 0px;
|
|
271
|
-
line-height: 24px;
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
:-moz-ui-invalid {
|
|
275
|
-
box-shadow: none;
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
body {
|
|
279
|
-
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
|
|
280
|
-
font-size: 16px;
|
|
281
|
-
line-height: 1.5;
|
|
282
|
-
word-wrap: break-word;
|
|
283
|
-
background: #F9F9F9;
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
.sidebar {
|
|
287
|
-
margin: 0;
|
|
288
|
-
padding: 0;
|
|
289
|
-
width: 200px;
|
|
290
|
-
background-color: #f1f1f1;
|
|
291
|
-
position: fixed;
|
|
292
|
-
height: 100%;
|
|
293
|
-
overflow: auto;
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
#container {
|
|
298
|
-
width: 80%;
|
|
299
|
-
margin: 0 auto;
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
#content {
|
|
303
|
-
width: 80%;
|
|
304
|
-
padding: 5px 10px;
|
|
305
|
-
border: 1px solid #ddd;
|
|
306
|
-
border-radius: 3px;
|
|
307
|
-
background: white;
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
#content h1:first-child {
|
|
311
|
-
margin-top: 0px;
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
nav {
|
|
315
|
-
border: 1px solid #ddd;
|
|
316
|
-
border-radius: 3px;
|
|
317
|
-
background: white;
|
|
318
|
-
margin-right: 10px;
|
|
319
|
-
min-width: fit-content;
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
nav > ul {
|
|
323
|
-
position: sticky;
|
|
324
|
-
top: 5px;
|
|
325
|
-
margin: 10px 0px;
|
|
326
|
-
padding: 0;
|
|
327
|
-
list-style-type: none;
|
|
328
|
-
font-size: 14px;
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
ul {
|
|
332
|
-
list-style-type: none;
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
nav > ul > li {
|
|
336
|
-
min-width: 125px;
|
|
337
|
-
padding: 0px 15px;
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
nav > ul > li > ul {
|
|
341
|
-
padding-left: 25px;
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
nav > ul > li > ul > li {
|
|
345
|
-
font-size: 0.8em;
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
nav .selected {
|
|
349
|
-
color: #111;
|
|
350
|
-
font-weight: bold;
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
nav .selected:hover {
|
|
354
|
-
text-decoration: none;
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
header {
|
|
358
|
-
display: flex;
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
header a {
|
|
362
|
-
width: 27%;
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
header h1 { margin: 0; }
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
Our NPM package is compatible with all package managers (e.g., `npm`, `yarn`,
|
|
2
|
-
`pnpm`, `bun`). Using `npm` the following command would add the Client SDK as a
|
|
3
|
-
production dependency.
|
|
4
|
-
|
|
5
|
-
```bash
|
|
6
|
-
npm install @paydock/client-sdk
|
|
7
|
-
```
|
|
8
|
-
|
|
9
|
-
After installation is complete, if you are developing in NodeJS environments or
|
|
10
|
-
using tools that expect your JavaScript code to be in CJS format (e.g., Jest,
|
|
11
|
-
Karma, RequireJS, Webpack), you can import the Client SDK using CommonJS modules.
|
|
12
|
-
For these environments the UMD format (`@paydock/client-sdk/bundles/widget.umd.js`)
|
|
13
|
-
can also be used as a fallback. Alternatively, in case you are developing in
|
|
14
|
-
projects that have access to modern bundlers such as Vite or others (e.g., SPA
|
|
15
|
-
libs or SSR Metaframeworks), you can import the Client SDK features using ESM
|
|
16
|
-
through named imports or namespaced imports.
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
```cjs
|
|
2
|
-
// module import - CommonJS/Node projects ✅
|
|
3
|
-
const paydock = require('@paydock/client-sdk')
|
|
4
|
-
const api = new paydock.Api('publicKey');
|
|
5
|
-
```
|
|
6
|
-
|
|
7
|
-
```mjs
|
|
8
|
-
// named import - ESM projects or TypeScript projects ✅
|
|
9
|
-
import { HtmlWidget } from '@paydock/client-sdk'
|
|
10
|
-
const widget = new HtmlWidget('#selector', 'publicKey', 'gatewayId');
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
```mjs
|
|
14
|
-
// namespaced import - ESM projects or TypeScript projects ✅
|
|
15
|
-
import * as Paydock from '@paydock/client-sdk'
|
|
16
|
-
const widget = new Paydock.HtmlWidget('#selector', 'publicKey', 'gatewayId');
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
```js
|
|
20
|
-
// default import - We do not provide default exports. They are handled differently by different tools!
|
|
21
|
-
❌
|
|
22
|
-
import paydock from '@paydock/client-sdk'
|
|
23
|
-
>>> "Uncaught SyntaxError: The requested module does not provide an export named 'default'"
|
|
24
|
-
```
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
For browser environments, you can import the Client SDK directly from our CDN to
|
|
2
|
-
your project's HTML. To accomplish this, include the Client SDK in your page
|
|
3
|
-
using one and only of the two script tags below. After this step you will be
|
|
4
|
-
able to access the Client SDK features via the global variable `paydock`.
|
|
5
|
-
|
|
6
|
-
For production we recommend using the compressed version (`.min.js`) since
|
|
7
|
-
it will result in faster loading times for your end users.
|
|
8
|
-
|
|
9
|
-
- *Compressed version for production: `https://widget.paydock.com/sdk/latest/widget.umd.min.js`*
|
|
10
|
-
|
|
11
|
-
- *Full version for development and debug: `https://widget.paydock.com/sdk/latest/widget.umd.js`*
|
|
12
|
-
|
|
13
|
-
You may download the production version of the Client SDK scripts [here][min],
|
|
14
|
-
and, the development version [here][max].
|
|
15
|
-
|
|
16
|
-
[min]: https://widget.paydock.com/sdk/latest/widget.umd.min.js
|
|
17
|
-
[max]: https://widget.paydock.com/sdk/latest/widget.umd.js
|
|
18
|
-
|
|
19
|
-
For more advanced use-cases, the library has [UMD](https://github.com/umdjs/umd)
|
|
20
|
-
format that can be used in RequireJS, Webpack, etc.
|
package/docs/install.md
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
## Get started
|
|
2
|
-
|
|
3
|
-
### Install with package manager
|
|
4
|
-
|
|
5
|
-
To install with package manager, enter the following command:
|
|
6
|
-
|
|
7
|
-
`npm install @paydock/client-sdk`
|
|
8
|
-
|
|
9
|
-
You will be available such modules:
|
|
10
|
-
|
|
11
|
-
1. You can use UMD module as global lib
|
|
12
|
-
`@paydock/client-sdk/bundles/widget.umd.js`
|
|
13
|
-
`@paydock/client-sdk/bundles/widget.umd.min.js`
|
|
14
|
-
|
|
15
|
-
2. You can use ES2015 or TypeScript modules
|
|
16
|
-
`@paydock/client-sdk`
|
|
17
|
-
|
|
18
|
-
```javascript
|
|
19
|
-
// ES2015 / TypeScript
|
|
20
|
-
|
|
21
|
-
import { HtmlWidget } from '@paydock/client-sdk';
|
|
22
|
-
|
|
23
|
-
const widget = new HtmlWidget('#selector', 'publicKey', 'gatewayId');
|
|
24
|
-
widget.load();
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
```javascript
|
|
28
|
-
// UMD
|
|
29
|
-
const widget = new paydock.HtmlWidget('#selector', 'publicKey', 'gatewayId');
|
|
30
|
-
widget.load();
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
### Download from CDN
|
|
34
|
-
|
|
35
|
-
You can download and use UMD module as global lib [production version][min] or the [development version][max]
|
|
36
|
-
|
|
37
|
-
[min]: https://widget.paydock.com/sdk/latest/widget.umd.min.js
|
|
38
|
-
[max]: https://widget.paydock.com/sdk/latest/widget.umd.js
|
|
39
|
-
|
|
40
|
-
```html
|
|
41
|
-
<script src="https://widget.paydock.com/sdk/latest/widget.umd.min.js"></script>
|
|
42
|
-
<script src="https://widget.paydock.com/sdk/latest/widget.umd.js"></script>
|
|
43
|
-
```
|
package/docs/install.readme.t.md
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
## Get started
|
|
2
|
-
|
|
3
|
-
The Client SDK ships in JavaScript ES6 (EcmaScript 2015) in three different
|
|
4
|
-
formats (CJS, ESM and UMD) along with respective TypeScript declarations. Below,
|
|
5
|
-
we exemplify how to import each format.
|
|
6
|
-
|
|
7
|
-
### With package manager
|
|
8
|
-
|
|
9
|
-
<%= render('/docs/install/npm.content.md') %>
|
|
10
|
-
|
|
11
|
-
<%= render('/docs/install/npm.example.md') %>
|
|
12
|
-
|
|
13
|
-
### Download from CDN
|
|
14
|
-
|
|
15
|
-
<%= render('/docs/install/umd.content.md') %>
|
|
16
|
-
|
|
17
|
-
<%= render('/docs/install/umd.example.md') %>
|
package/docs/install.slate.t.md
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
## Get started
|
|
2
|
-
|
|
3
|
-
The Client SDK ships in JavaScript ES6 (EcmaScript 2015) in three different
|
|
4
|
-
formats (CJS, ESM and UMD) along with respective TypeScript declarations. Below,
|
|
5
|
-
we exemplify how to import each format.
|
|
6
|
-
|
|
7
|
-
### Download from CDN
|
|
8
|
-
|
|
9
|
-
<%= render('/docs/install/umd.example.md') %>
|
|
10
|
-
|
|
11
|
-
<%= render('/docs/install/umd.content.md') %>
|
|
12
|
-
|
|
13
|
-
### With package manager
|
|
14
|
-
|
|
15
|
-
<%= render('/docs/install/npm.example.md') %>
|
|
16
|
-
|
|
17
|
-
<%= render('/docs/install/npm.content.md') %>
|
package/docs/license.md
DELETED
package/docs/partials/header.hbs
DELETED
package/docs/ps-examples.md
DELETED
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
## Payment sources widget
|
|
2
|
-
You can find description of all methods and parameters [here](https://www.npmjs.com/package/@paydock/client-sdk#payment-sources-simple-example)
|
|
3
|
-
|
|
4
|
-
This widget provides a list of previously added (saved) payment-sources by customer_id or reference.
|
|
5
|
-
The widget provides an opportunity to use events to track the process of selecting payment-sources and provide meta information about the payment-sources.
|
|
6
|
-
|
|
7
|
-
Payment-source requires a query_token that represents a pre-generated and secure token for limiting the list
|
|
8
|
-
payment-sources, for a specific user or reference.
|
|
9
|
-
|
|
10
|
-
In order to generate this token, you need to send a GET request to [getCustomerList](#get-customer-list-with-parameters)
|
|
11
|
-
where required query parameter must be id or reference. In response you get response.query_token which you can use in the widget.
|
|
12
|
-
|
|
13
|
-
## Payment sources simple example
|
|
14
|
-
|
|
15
|
-
### Container
|
|
16
|
-
|
|
17
|
-
```html
|
|
18
|
-
<div id="list"></div>
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
You must create a container for the widget. Inside this tag, the widget will be initialized
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
### Initialization
|
|
25
|
-
```javascript
|
|
26
|
-
var list = new paydock.HtmlPaymentSourceWidget('#list', 'publicKey', 'queryToken');
|
|
27
|
-
list.load();
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
```javascript
|
|
31
|
-
// ES2015 | TypeScript
|
|
32
|
-
|
|
33
|
-
import { HtmlPaymentSourceWidget } from '@paydock/client-sdk';
|
|
34
|
-
|
|
35
|
-
var list = new HtmlPaymentSourceWidget('#list', 'publicKey', 'queryToken');
|
|
36
|
-
list.load();
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
Then write only need 2 lines of code in js to initialize widget
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
### Full example
|
|
43
|
-
|
|
44
|
-
```html
|
|
45
|
-
<!DOCTYPE html>
|
|
46
|
-
<html lang="en">
|
|
47
|
-
<head>
|
|
48
|
-
<meta charset="UTF-8">
|
|
49
|
-
<title>Title</title>
|
|
50
|
-
<style>iframe {border: 0;width: 40%;height: 300px;}</style>
|
|
51
|
-
</head>
|
|
52
|
-
<body>
|
|
53
|
-
<div id="list"></div>
|
|
54
|
-
<script src="https://widget.paydock.com/sdk/latest/widget.umd.min.js" ></script>
|
|
55
|
-
<script>
|
|
56
|
-
var list = new paydock.HtmlPaymentSourceWidget('#list', 'publicKey', 'queryToken');
|
|
57
|
-
list.load();
|
|
58
|
-
</script>
|
|
59
|
-
</body>
|
|
60
|
-
</html>
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
## Payment sources advanced example
|
|
65
|
-
|
|
66
|
-
### Customization
|
|
67
|
-
|
|
68
|
-
```javascript
|
|
69
|
-
list.setStyles({
|
|
70
|
-
icon_size: 'small'
|
|
71
|
-
});
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
This example shows how you can customize to your needs and design
|
|
75
|
-
|
|
76
|
-
### Settings
|
|
77
|
-
|
|
78
|
-
```javascript
|
|
79
|
-
|
|
80
|
-
list.filterByTypes(['card', 'checkout']); // filter by any payment source types
|
|
81
|
-
list.filterByGatewayIds(['gateway1']); // also other filters
|
|
82
|
-
|
|
83
|
-
list.setRefId('id'); // your unique identifier to identify the data
|
|
84
|
-
|
|
85
|
-
list.setLimit(4); // Pagination elements will show if count of elements more then argument passed
|
|
86
|
-
|
|
87
|
-
list.onSelectInsert('input[name="ps_id"]', 'payment_source_id'); // insert one-time-token to your input after finish checkout
|
|
88
|
-
|
|
89
|
-
list.on('select', function(data) {
|
|
90
|
-
console.log(data);
|
|
91
|
-
});
|
|
92
|
-
```
|
|
93
|
-
|
|
94
|
-
This example shows how you can use a lot of other methods to settings your form
|
|
95
|
-
|
|
96
|
-
### Full example
|
|
97
|
-
|
|
98
|
-
```html
|
|
99
|
-
<!DOCTYPE html>
|
|
100
|
-
<html lang="en">
|
|
101
|
-
<head>
|
|
102
|
-
<meta charset="UTF-8">
|
|
103
|
-
<title>Title</title>
|
|
104
|
-
<style>iframe {border: 0;width: 40%;height: 300px;}</style>
|
|
105
|
-
</head>
|
|
106
|
-
<body>
|
|
107
|
-
<div id="list"></div>
|
|
108
|
-
<input type="text" name="ps_id" />
|
|
109
|
-
<script src="https://widget.paydock.com/sdk/latest/widget.umd.min.js" ></script>
|
|
110
|
-
<script>
|
|
111
|
-
var list = new paydock.HtmlPaymentSourceWidget('#list', 'publicKey', 'queryToken');
|
|
112
|
-
list.filterByTypes(['card', 'checkout']);
|
|
113
|
-
list.filterByGatewayIds(['gateway1']);
|
|
114
|
-
list.setRefId('id');
|
|
115
|
-
list.setLimit(4);
|
|
116
|
-
list.setStyles({
|
|
117
|
-
icon_size: 'small'
|
|
118
|
-
});
|
|
119
|
-
|
|
120
|
-
list.load();
|
|
121
|
-
|
|
122
|
-
list.onSelectInsert('input[name="ps_id"]', 'payment_source_id');
|
|
123
|
-
list.on('select', function(data) {
|
|
124
|
-
console.log(data);
|
|
125
|
-
});
|
|
126
|
-
</script>
|
|
127
|
-
</body>
|
|
128
|
-
</html>
|
|
129
|
-
```
|