@paydock/client-sdk 1.143.0-beta → 1.144.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 +158 -0
- package/bundles/index.cjs +523 -312
- package/bundles/index.cjs.d.ts +751 -116
- package/bundles/index.mjs +518 -313
- package/bundles/index.mjs.d.ts +751 -116
- package/bundles/types/api/api-charge-internal.d.ts +3 -49
- package/bundles/types/api/api-charge-internal.d.ts.map +1 -1
- package/bundles/types/api/api-checkout-internal.d.ts +1 -47
- package/bundles/types/api/api-checkout-internal.d.ts.map +1 -1
- package/bundles/types/api/api-shared-types.d.ts +53 -0
- package/bundles/types/api/api-shared-types.d.ts.map +1 -0
- package/bundles/types/canvas-3ds/canvas-3ds-event-map.d.ts +95 -0
- package/bundles/types/canvas-3ds/canvas-3ds-event-map.d.ts.map +1 -0
- package/bundles/types/canvas-3ds/canvas-3ds.d.ts +10 -7
- package/bundles/types/canvas-3ds/canvas-3ds.d.ts.map +1 -1
- package/bundles/types/canvas-3ds/index.d.ts +4 -0
- package/bundles/types/canvas-3ds/index.d.ts.map +1 -1
- package/bundles/types/canvas-3ds/services/gpayments-service.d.ts +41 -12
- package/bundles/types/canvas-3ds/services/gpayments-service.d.ts.map +1 -1
- package/bundles/types/canvas-3ds/services/standalone3ds-service.d.ts +20 -2
- package/bundles/types/canvas-3ds/services/standalone3ds-service.d.ts.map +1 -1
- package/bundles/types/checkout/checkout-event-map.d.ts +43 -0
- package/bundles/types/checkout/checkout-event-map.d.ts.map +1 -0
- package/bundles/types/checkout/checkout.d.ts +25 -9
- package/bundles/types/checkout/checkout.d.ts.map +1 -1
- package/bundles/types/checkout/v1/instructions/instruction.canvas_3ds.show.d.ts.map +1 -1
- package/bundles/types/checkout/v3/instructions/instruction.canvas_3ds.show.d.ts.map +1 -1
- package/bundles/types/components/param.d.ts +29 -0
- package/bundles/types/components/param.d.ts.map +1 -1
- package/bundles/types/helper/event-error.d.ts +49 -1
- package/bundles/types/helper/event-error.d.ts.map +1 -1
- package/bundles/types/index-cba.d.ts +3 -1
- package/bundles/types/index-cba.d.ts.map +1 -1
- package/bundles/types/index.d.ts +12 -1
- package/bundles/types/index.d.ts.map +1 -1
- package/bundles/types/open-wallets/base/open-wallet-buttons.d.ts +37 -0
- package/bundles/types/open-wallets/base/open-wallet-buttons.d.ts.map +1 -1
- package/bundles/types/open-wallets/base/open-wallet.service.d.ts +12 -0
- package/bundles/types/open-wallets/base/open-wallet.service.d.ts.map +1 -1
- package/bundles/types/open-wallets/google-pay-open-wallet-button.d.ts.map +1 -1
- package/bundles/types/open-wallets/index.d.ts +25 -0
- package/bundles/types/open-wallets/index.d.ts.map +1 -1
- package/bundles/types/open-wallets/interfaces/apple-pay/apple-pay-payment-request.interface.d.ts +2 -2
- package/bundles/types/open-wallets/interfaces/apple-pay/apple-pay-payment-request.interface.d.ts.map +1 -1
- package/bundles/types/open-wallets/interfaces/apple-pay/index.d.ts +1 -1
- package/bundles/types/open-wallets/interfaces/apple-pay/index.d.ts.map +1 -1
- package/bundles/types/open-wallets/interfaces/events.interface.d.ts +1 -1
- package/bundles/types/open-wallets/interfaces/events.interface.d.ts.map +1 -1
- package/bundles/types/open-wallets/interfaces/google-pay/google-pay-meta.interface.d.ts +46 -0
- package/bundles/types/open-wallets/interfaces/google-pay/google-pay-meta.interface.d.ts.map +1 -1
- package/bundles/types/open-wallets/services/apple-pay/apple-pay.open-wallet.service.d.ts +48 -2
- package/bundles/types/open-wallets/services/apple-pay/apple-pay.open-wallet.service.d.ts.map +1 -1
- package/bundles/types/open-wallets/services/google-pay/google-pay.open-wallet.service.d.ts.map +1 -1
- package/bundles/types/open-wallets/types/index.d.ts +1 -1
- package/bundles/types/open-wallets/types/index.d.ts.map +1 -1
- package/bundles/types/open-wallets/types/payment-source.type.d.ts +104 -0
- package/bundles/types/open-wallets/types/payment-source.type.d.ts.map +1 -1
- package/bundles/types/wallet-buttons/interfaces.d.ts +55 -1
- package/bundles/types/wallet-buttons/interfaces.d.ts.map +1 -1
- package/bundles/types/wallet-buttons-express/interfaces/base-wallet-meta.interface.d.ts +7 -0
- package/bundles/types/wallet-buttons-express/interfaces/base-wallet-meta.interface.d.ts.map +1 -1
- package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-wallet-meta.interface.d.ts +23 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-wallet-meta.interface.d.ts.map +1 -1
- 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 -1
- package/bundles/widget.umd.js +523 -312
- package/bundles/widget.umd.js.d.ts +751 -116
- package/bundles/widget.umd.js.min.d.ts +751 -116
- package/bundles/widget.umd.min.js +1 -1
- package/docs/api-canvas3ds.md +19 -12
- package/docs/open-wallet-buttons.md +158 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6506,6 +6506,24 @@ Used in the <code>context.operation</code> field of <a href="#OnErrorEventData">
|
|
|
6506
6506
|
</dd>
|
|
6507
6507
|
</dl>
|
|
6508
6508
|
|
|
6509
|
+
## Functions
|
|
6510
|
+
|
|
6511
|
+
<dl>
|
|
6512
|
+
<dt><a href="#enable">enable()</a></dt>
|
|
6513
|
+
<dd><p>Enables the wallet button, restoring interactivity and visual appearance.
|
|
6514
|
+
Available on both ApplePayOpenWalletButton and GooglePayOpenWalletButton.</p>
|
|
6515
|
+
<p>Idempotent — calling on an already-enabled button has no effect.</p>
|
|
6516
|
+
</dd>
|
|
6517
|
+
<dt><a href="#disable">disable()</a></dt>
|
|
6518
|
+
<dd><p>Disables the wallet button, preventing clicks and applying a visual disabled state.
|
|
6519
|
+
When disabled, the button appears grayed out and does not respond to user interaction.
|
|
6520
|
+
Available on both ApplePayOpenWalletButton and GooglePayOpenWalletButton.</p>
|
|
6521
|
+
<p>Idempotent — calling on an already-disabled button has no effect.
|
|
6522
|
+
Safe to call before <code>load()</code> (no-throw); the disabled styles are applied
|
|
6523
|
+
once the container element exists.</p>
|
|
6524
|
+
</dd>
|
|
6525
|
+
</dl>
|
|
6526
|
+
|
|
6509
6527
|
## Typedefs
|
|
6510
6528
|
|
|
6511
6529
|
<dl>
|
|
@@ -6931,6 +6949,8 @@ if the service type does not match Apple Pay.
|
|
|
6931
6949
|
* [ApplePayOpenWalletButton](#ApplePayOpenWalletButton) ⇐ [<code>OpenWalletButtons</code>](#OpenWalletButtons)
|
|
6932
6950
|
* [new ApplePayOpenWalletButton(selector, publicKeyOrAccessToken, serviceId, meta)](#new_ApplePayOpenWalletButton_new)
|
|
6933
6951
|
* [.load()](#OpenWalletButtons+load)
|
|
6952
|
+
* [.enable()](#OpenWalletButtons+enable)
|
|
6953
|
+
* [.disable()](#OpenWalletButtons+disable)
|
|
6934
6954
|
* [.setEnv(env, [alias])](#OpenWalletButtons+setEnv)
|
|
6935
6955
|
* [.setMeta(meta)](#OpenWalletButtons+setMeta)
|
|
6936
6956
|
* [.destroy()](#OpenWalletButtons+destroy)
|
|
@@ -6990,6 +7010,41 @@ button.onSuccess((data) => { ... });
|
|
|
6990
7010
|
button.onError((error) => { ... });
|
|
6991
7011
|
button.load();
|
|
6992
7012
|
```
|
|
7013
|
+
<a name="OpenWalletButtons+enable" id="OpenWalletButtons+enable" href="#OpenWalletButtons+enable"> </a>
|
|
7014
|
+
|
|
7015
|
+
### applePayOpenWalletButton.enable()
|
|
7016
|
+
Enables the wallet button, restoring interactivity and visual appearance.
|
|
7017
|
+
If the button was previously disabled via `disable()`, calling this method
|
|
7018
|
+
re-enables clicks and removes the disabled visual state.
|
|
7019
|
+
|
|
7020
|
+
Idempotent — calling on an already-enabled button has no effect.
|
|
7021
|
+
|
|
7022
|
+
**Kind**: instance method of [<code>ApplePayOpenWalletButton</code>](#ApplePayOpenWalletButton)
|
|
7023
|
+
**Example**
|
|
7024
|
+
```js
|
|
7025
|
+
button.enable();
|
|
7026
|
+
```
|
|
7027
|
+
<a name="OpenWalletButtons+disable" id="OpenWalletButtons+disable" href="#OpenWalletButtons+disable"> </a>
|
|
7028
|
+
|
|
7029
|
+
### applePayOpenWalletButton.disable()
|
|
7030
|
+
Disables the wallet button, preventing clicks and applying a visual disabled state.
|
|
7031
|
+
When disabled, the button appears grayed out (`opacity: 0.5`) and does not
|
|
7032
|
+
respond to user interaction (`pointer-events: none`). For accessibility, the
|
|
7033
|
+
`aria-disabled="true"` attribute is also set on the container.
|
|
7034
|
+
|
|
7035
|
+
Programmatic clicks (e.g. invoked by the wallet provider's SDK) are blocked
|
|
7036
|
+
by an explicit guard inside the click handler — the button's wallet service
|
|
7037
|
+
checks the disabled state before processing.
|
|
7038
|
+
|
|
7039
|
+
Idempotent — calling on an already-disabled button has no effect.
|
|
7040
|
+
Safe to call before `load()` (no-throw); the styles are applied once the
|
|
7041
|
+
container element exists.
|
|
7042
|
+
|
|
7043
|
+
**Kind**: instance method of [<code>ApplePayOpenWalletButton</code>](#ApplePayOpenWalletButton)
|
|
7044
|
+
**Example**
|
|
7045
|
+
```js
|
|
7046
|
+
button.disable();
|
|
7047
|
+
```
|
|
6993
7048
|
<a name="OpenWalletButtons+setEnv" id="OpenWalletButtons+setEnv" href="#OpenWalletButtons+setEnv"> </a>
|
|
6994
7049
|
|
|
6995
7050
|
### applePayOpenWalletButton.setEnv(env, [alias])
|
|
@@ -7295,6 +7350,8 @@ if the service type does not match Google Pay.
|
|
|
7295
7350
|
* [GooglePayOpenWalletButton](#GooglePayOpenWalletButton) ⇐ [<code>OpenWalletButtons</code>](#OpenWalletButtons)
|
|
7296
7351
|
* [new GooglePayOpenWalletButton(selector, publicKeyOrAccessToken, serviceId, meta)](#new_GooglePayOpenWalletButton_new)
|
|
7297
7352
|
* [.load()](#OpenWalletButtons+load)
|
|
7353
|
+
* [.enable()](#OpenWalletButtons+enable)
|
|
7354
|
+
* [.disable()](#OpenWalletButtons+disable)
|
|
7298
7355
|
* [.setEnv(env, [alias])](#OpenWalletButtons+setEnv)
|
|
7299
7356
|
* [.setMeta(meta)](#OpenWalletButtons+setMeta)
|
|
7300
7357
|
* [.destroy()](#OpenWalletButtons+destroy)
|
|
@@ -7352,6 +7409,41 @@ button.onSuccess((data) => { ... });
|
|
|
7352
7409
|
button.onError((error) => { ... });
|
|
7353
7410
|
button.load();
|
|
7354
7411
|
```
|
|
7412
|
+
<a name="OpenWalletButtons+enable" id="OpenWalletButtons+enable" href="#OpenWalletButtons+enable"> </a>
|
|
7413
|
+
|
|
7414
|
+
### googlePayOpenWalletButton.enable()
|
|
7415
|
+
Enables the wallet button, restoring interactivity and visual appearance.
|
|
7416
|
+
If the button was previously disabled via `disable()`, calling this method
|
|
7417
|
+
re-enables clicks and removes the disabled visual state.
|
|
7418
|
+
|
|
7419
|
+
Idempotent — calling on an already-enabled button has no effect.
|
|
7420
|
+
|
|
7421
|
+
**Kind**: instance method of [<code>GooglePayOpenWalletButton</code>](#GooglePayOpenWalletButton)
|
|
7422
|
+
**Example**
|
|
7423
|
+
```js
|
|
7424
|
+
button.enable();
|
|
7425
|
+
```
|
|
7426
|
+
<a name="OpenWalletButtons+disable" id="OpenWalletButtons+disable" href="#OpenWalletButtons+disable"> </a>
|
|
7427
|
+
|
|
7428
|
+
### googlePayOpenWalletButton.disable()
|
|
7429
|
+
Disables the wallet button, preventing clicks and applying a visual disabled state.
|
|
7430
|
+
When disabled, the button appears grayed out (`opacity: 0.5`) and does not
|
|
7431
|
+
respond to user interaction (`pointer-events: none`). For accessibility, the
|
|
7432
|
+
`aria-disabled="true"` attribute is also set on the container.
|
|
7433
|
+
|
|
7434
|
+
Programmatic clicks (e.g. invoked by the wallet provider's SDK) are blocked
|
|
7435
|
+
by an explicit guard inside the click handler — the button's wallet service
|
|
7436
|
+
checks the disabled state before processing.
|
|
7437
|
+
|
|
7438
|
+
Idempotent — calling on an already-disabled button has no effect.
|
|
7439
|
+
Safe to call before `load()` (no-throw); the styles are applied once the
|
|
7440
|
+
container element exists.
|
|
7441
|
+
|
|
7442
|
+
**Kind**: instance method of [<code>GooglePayOpenWalletButton</code>](#GooglePayOpenWalletButton)
|
|
7443
|
+
**Example**
|
|
7444
|
+
```js
|
|
7445
|
+
button.disable();
|
|
7446
|
+
```
|
|
7355
7447
|
<a name="OpenWalletButtons+setEnv" id="OpenWalletButtons+setEnv" href="#OpenWalletButtons+setEnv"> </a>
|
|
7356
7448
|
|
|
7357
7449
|
### googlePayOpenWalletButton.setEnv(env, [alias])
|
|
@@ -7657,6 +7749,8 @@ These subclasses inherit all event handlers and lifecycle methods documented bel
|
|
|
7657
7749
|
|
|
7658
7750
|
* *[OpenWalletButtons](#OpenWalletButtons)*
|
|
7659
7751
|
* *[.load()](#OpenWalletButtons+load)*
|
|
7752
|
+
* *[.enable()](#OpenWalletButtons+enable)*
|
|
7753
|
+
* *[.disable()](#OpenWalletButtons+disable)*
|
|
7660
7754
|
* *[.setEnv(env, [alias])](#OpenWalletButtons+setEnv)*
|
|
7661
7755
|
* *[.setMeta(meta)](#OpenWalletButtons+setMeta)*
|
|
7662
7756
|
* *[.destroy()](#OpenWalletButtons+destroy)*
|
|
@@ -7685,6 +7779,41 @@ button.onSuccess((data) => { ... });
|
|
|
7685
7779
|
button.onError((error) => { ... });
|
|
7686
7780
|
button.load();
|
|
7687
7781
|
```
|
|
7782
|
+
<a name="OpenWalletButtons+enable" id="OpenWalletButtons+enable" href="#OpenWalletButtons+enable"> </a>
|
|
7783
|
+
|
|
7784
|
+
### *openWalletButtons.enable()*
|
|
7785
|
+
Enables the wallet button, restoring interactivity and visual appearance.
|
|
7786
|
+
If the button was previously disabled via `disable()`, calling this method
|
|
7787
|
+
re-enables clicks and removes the disabled visual state.
|
|
7788
|
+
|
|
7789
|
+
Idempotent — calling on an already-enabled button has no effect.
|
|
7790
|
+
|
|
7791
|
+
**Kind**: instance method of [<code>OpenWalletButtons</code>](#OpenWalletButtons)
|
|
7792
|
+
**Example**
|
|
7793
|
+
```js
|
|
7794
|
+
button.enable();
|
|
7795
|
+
```
|
|
7796
|
+
<a name="OpenWalletButtons+disable" id="OpenWalletButtons+disable" href="#OpenWalletButtons+disable"> </a>
|
|
7797
|
+
|
|
7798
|
+
### *openWalletButtons.disable()*
|
|
7799
|
+
Disables the wallet button, preventing clicks and applying a visual disabled state.
|
|
7800
|
+
When disabled, the button appears grayed out (`opacity: 0.5`) and does not
|
|
7801
|
+
respond to user interaction (`pointer-events: none`). For accessibility, the
|
|
7802
|
+
`aria-disabled="true"` attribute is also set on the container.
|
|
7803
|
+
|
|
7804
|
+
Programmatic clicks (e.g. invoked by the wallet provider's SDK) are blocked
|
|
7805
|
+
by an explicit guard inside the click handler — the button's wallet service
|
|
7806
|
+
checks the disabled state before processing.
|
|
7807
|
+
|
|
7808
|
+
Idempotent — calling on an already-disabled button has no effect.
|
|
7809
|
+
Safe to call before `load()` (no-throw); the styles are applied once the
|
|
7810
|
+
container element exists.
|
|
7811
|
+
|
|
7812
|
+
**Kind**: instance method of [<code>OpenWalletButtons</code>](#OpenWalletButtons)
|
|
7813
|
+
**Example**
|
|
7814
|
+
```js
|
|
7815
|
+
button.disable();
|
|
7816
|
+
```
|
|
7688
7817
|
<a name="OpenWalletButtons+setEnv" id="OpenWalletButtons+setEnv" href="#OpenWalletButtons+setEnv"> </a>
|
|
7689
7818
|
|
|
7690
7819
|
### *openWalletButtons.setEnv(env, [alias])*
|
|
@@ -8031,6 +8160,35 @@ Used in the `context.operation` field of [OnErrorEventData](#OnErrorEventData).
|
|
|
8031
8160
|
| HANDLER_REGISTRATION | <code>string</code> | <code>"handler_registration"</code> | A required event handler was not registered before calling load(). |
|
|
8032
8161
|
| SHIPPING_UPDATE | <code>string</code> | <code>"shipping_update"</code> | Processing a shipping address or shipping option update failed. |
|
|
8033
8162
|
|
|
8163
|
+
<a name="enable" id="enable" href="#enable"> </a>
|
|
8164
|
+
|
|
8165
|
+
## enable()
|
|
8166
|
+
Enables the wallet button, restoring interactivity and visual appearance.
|
|
8167
|
+
Available on both ApplePayOpenWalletButton and GooglePayOpenWalletButton.
|
|
8168
|
+
|
|
8169
|
+
Idempotent — calling on an already-enabled button has no effect.
|
|
8170
|
+
|
|
8171
|
+
**Kind**: global function
|
|
8172
|
+
**Example**
|
|
8173
|
+
```js
|
|
8174
|
+
button.enable();
|
|
8175
|
+
```
|
|
8176
|
+
<a name="disable" id="disable" href="#disable"> </a>
|
|
8177
|
+
|
|
8178
|
+
## disable()
|
|
8179
|
+
Disables the wallet button, preventing clicks and applying a visual disabled state.
|
|
8180
|
+
When disabled, the button appears grayed out and does not respond to user interaction.
|
|
8181
|
+
Available on both ApplePayOpenWalletButton and GooglePayOpenWalletButton.
|
|
8182
|
+
|
|
8183
|
+
Idempotent — calling on an already-disabled button has no effect.
|
|
8184
|
+
Safe to call before `load()` (no-throw); the disabled styles are applied
|
|
8185
|
+
once the container element exists.
|
|
8186
|
+
|
|
8187
|
+
**Kind**: global function
|
|
8188
|
+
**Example**
|
|
8189
|
+
```js
|
|
8190
|
+
button.disable();
|
|
8191
|
+
```
|
|
8034
8192
|
<a name="OnClickCallback" id="OnClickCallback" href="#OnClickCallback"> </a>
|
|
8035
8193
|
|
|
8036
8194
|
## OnClickCallback ⇒ <code>boolean</code> \| <code>void</code> \| <code>Promise.<(boolean\|void)></code>
|