@paydock/client-sdk 1.142.0 → 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.
Files changed (92) hide show
  1. package/README.md +243 -0
  2. package/bundles/index.cjs +846 -504
  3. package/bundles/index.cjs.d.ts +1466 -778
  4. package/bundles/index.mjs +675 -338
  5. package/bundles/index.mjs.d.ts +1466 -778
  6. package/bundles/types/api/api-charge-internal.d.ts +3 -49
  7. package/bundles/types/api/api-charge-internal.d.ts.map +1 -1
  8. package/bundles/types/api/api-checkout-internal.d.ts +1 -47
  9. package/bundles/types/api/api-checkout-internal.d.ts.map +1 -1
  10. package/bundles/types/api/api-shared-types.d.ts +53 -0
  11. package/bundles/types/api/api-shared-types.d.ts.map +1 -0
  12. package/bundles/types/canvas-3ds/canvas-3ds-event-map.d.ts +95 -0
  13. package/bundles/types/canvas-3ds/canvas-3ds-event-map.d.ts.map +1 -0
  14. package/bundles/types/canvas-3ds/canvas-3ds.d.ts +10 -7
  15. package/bundles/types/canvas-3ds/canvas-3ds.d.ts.map +1 -1
  16. package/bundles/types/canvas-3ds/index.d.ts +4 -0
  17. package/bundles/types/canvas-3ds/index.d.ts.map +1 -1
  18. package/bundles/types/canvas-3ds/services/gpayments-service.d.ts +41 -12
  19. package/bundles/types/canvas-3ds/services/gpayments-service.d.ts.map +1 -1
  20. package/bundles/types/canvas-3ds/services/standalone3ds-service.d.ts +20 -2
  21. package/bundles/types/canvas-3ds/services/standalone3ds-service.d.ts.map +1 -1
  22. package/bundles/types/checkout/checkout-event-map.d.ts +43 -0
  23. package/bundles/types/checkout/checkout-event-map.d.ts.map +1 -0
  24. package/bundles/types/checkout/checkout.d.ts +25 -9
  25. package/bundles/types/checkout/checkout.d.ts.map +1 -1
  26. package/bundles/types/checkout/v1/instructions/instruction.canvas_3ds.show.d.ts.map +1 -1
  27. package/bundles/types/checkout/v3/instructions/instruction.canvas_3ds.show.d.ts.map +1 -1
  28. package/bundles/types/components/apple-pay-version.d.ts +29 -0
  29. package/bundles/types/components/apple-pay-version.d.ts.map +1 -0
  30. package/bundles/types/components/param.d.ts +29 -0
  31. package/bundles/types/components/param.d.ts.map +1 -1
  32. package/bundles/types/helper/event-error.d.ts +49 -1
  33. package/bundles/types/helper/event-error.d.ts.map +1 -1
  34. package/bundles/types/index-cba.d.ts +3 -1
  35. package/bundles/types/index-cba.d.ts.map +1 -1
  36. package/bundles/types/index.d.ts +14 -3
  37. package/bundles/types/index.d.ts.map +1 -1
  38. package/bundles/types/open-wallets/base/open-wallet-buttons.d.ts +37 -0
  39. package/bundles/types/open-wallets/base/open-wallet-buttons.d.ts.map +1 -1
  40. package/bundles/types/open-wallets/base/open-wallet.service.d.ts +12 -0
  41. package/bundles/types/open-wallets/base/open-wallet.service.d.ts.map +1 -1
  42. package/bundles/types/open-wallets/google-pay-open-wallet-button.d.ts.map +1 -1
  43. package/bundles/types/open-wallets/index.d.ts +26 -1
  44. package/bundles/types/open-wallets/index.d.ts.map +1 -1
  45. package/bundles/types/open-wallets/interfaces/apple-pay/apple-pay-payment-request.interface.d.ts +2 -2
  46. package/bundles/types/open-wallets/interfaces/apple-pay/apple-pay-payment-request.interface.d.ts.map +1 -1
  47. package/bundles/types/open-wallets/interfaces/apple-pay/index.d.ts +1 -1
  48. package/bundles/types/open-wallets/interfaces/apple-pay/index.d.ts.map +1 -1
  49. package/bundles/types/open-wallets/interfaces/events.interface.d.ts +1 -1
  50. package/bundles/types/open-wallets/interfaces/events.interface.d.ts.map +1 -1
  51. package/bundles/types/open-wallets/interfaces/google-pay/google-pay-meta.interface.d.ts +46 -0
  52. package/bundles/types/open-wallets/interfaces/google-pay/google-pay-meta.interface.d.ts.map +1 -1
  53. package/bundles/types/open-wallets/services/apple-pay/apple-pay.open-wallet.service.d.ts +48 -2
  54. package/bundles/types/open-wallets/services/apple-pay/apple-pay.open-wallet.service.d.ts.map +1 -1
  55. package/bundles/types/open-wallets/services/google-pay/google-pay.open-wallet.service.d.ts.map +1 -1
  56. package/bundles/types/open-wallets/types/index.d.ts +1 -1
  57. package/bundles/types/open-wallets/types/index.d.ts.map +1 -1
  58. package/bundles/types/open-wallets/types/payment-source.type.d.ts +104 -0
  59. package/bundles/types/open-wallets/types/payment-source.type.d.ts.map +1 -1
  60. package/bundles/types/payment-source-widget/index.d.ts +1 -1
  61. package/bundles/types/payment-source-widget/index.d.ts.map +1 -1
  62. package/bundles/types/vault-display-widget/vault-display-widget.d.ts.map +1 -1
  63. package/bundles/types/wallet-buttons/interfaces.d.ts +55 -1
  64. package/bundles/types/wallet-buttons/interfaces.d.ts.map +1 -1
  65. package/bundles/types/wallet-buttons/wallet-services/apple.wallet-service.d.ts.map +1 -1
  66. package/bundles/types/wallet-buttons-express/base.wallet-button-express.d.ts +16 -0
  67. package/bundles/types/wallet-buttons-express/base.wallet-button-express.d.ts.map +1 -1
  68. package/bundles/types/wallet-buttons-express/index.d.ts +36 -0
  69. package/bundles/types/wallet-buttons-express/index.d.ts.map +1 -1
  70. package/bundles/types/wallet-buttons-express/interfaces/base-wallet-meta.interface.d.ts +7 -0
  71. package/bundles/types/wallet-buttons-express/interfaces/base-wallet-meta.interface.d.ts.map +1 -1
  72. package/bundles/types/wallet-buttons-express/services/apple-pay/apple-pay.wallet-button-express.d.ts.map +1 -1
  73. package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-wallet-meta.interface.d.ts +23 -0
  74. package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-wallet-meta.interface.d.ts.map +1 -1
  75. package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-wallet-meta.interface.d.ts +31 -0
  76. package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-wallet-meta.interface.d.ts.map +1 -1
  77. package/bundles/types/wallet-buttons-express/services/paypal/paypal.wallet-button-express.d.ts +1 -1
  78. package/bundles/types/wallet-buttons-express/services/paypal/paypal.wallet-button-express.d.ts.map +1 -1
  79. package/bundles/types/widget/html-multi-widget.d.ts +4 -1
  80. package/bundles/types/widget/html-multi-widget.d.ts.map +1 -1
  81. package/bundles/types/widget/index.d.ts +2 -1
  82. package/bundles/types/widget/index.d.ts.map +1 -1
  83. package/bundles/types/widget/widget-event-map.d.ts +37 -0
  84. package/bundles/types/widget/widget-event-map.d.ts.map +1 -0
  85. package/bundles/widget.umd.js +846 -504
  86. package/bundles/widget.umd.js.d.ts +1466 -778
  87. package/bundles/widget.umd.js.min.d.ts +1466 -778
  88. package/bundles/widget.umd.min.js +1 -1
  89. package/docs/api-canvas3ds.md +19 -12
  90. package/docs/open-wallet-buttons.md +158 -0
  91. package/docs/wallet-buttons-express.md +85 -0
  92. package/package.json +6 -3
package/README.md CHANGED
@@ -4429,6 +4429,20 @@ A full description of the meta parameters for [PaypalWalletButtonExpress](#Paypa
4429
4429
  </dd>
4430
4430
  </dl>
4431
4431
 
4432
+ ## Functions
4433
+
4434
+ <dl>
4435
+ <dt><a href="#enable">enable()</a></dt>
4436
+ <dd><p>Enables the wallet button, restoring interactivity and visual appearance.
4437
+ Available on both ApplePayWalletButtonExpress and PaypalWalletButtonExpress.</p>
4438
+ </dd>
4439
+ <dt><a href="#disable">disable()</a></dt>
4440
+ <dd><p>Disables the wallet button, preventing clicks and applying a visual disabled state.
4441
+ When disabled, the button appears grayed out and does not respond to user interaction.
4442
+ Available on both ApplePayWalletButtonExpress and PaypalWalletButtonExpress.</p>
4443
+ </dd>
4444
+ </dl>
4445
+
4432
4446
  ## Typedefs
4433
4447
 
4434
4448
  <dl>
@@ -4797,6 +4811,8 @@ Class ApplePayWalletButtonExpress to work with Apple Pay Wallet.
4797
4811
  * [.load()](#ApplePayWalletButtonExpress+load)
4798
4812
  * [.setMeta(meta)](#ApplePayWalletButtonExpress+setMeta)
4799
4813
  * [.setEnv(env, [alias])](#BaseWalletButton+setEnv)
4814
+ * [.enable()](#BaseWalletButton+enable)
4815
+ * [.disable()](#BaseWalletButton+disable)
4800
4816
  * [.onClick(handler)](#BaseWalletButton+onClick)
4801
4817
  * [.onPaymentSuccessful([handler])](#BaseWalletButton+onPaymentSuccessful)
4802
4818
  * [.onPaymentInReview([handler])](#BaseWalletButton+onPaymentInReview)
@@ -4869,6 +4885,28 @@ Bear in mind that you must set an environment before calling `button.load()`.
4869
4885
  ```js
4870
4886
  button.setEnv('production', 'paydock.com');
4871
4887
  ```
4888
+ <a name="BaseWalletButton+enable" id="BaseWalletButton+enable" href="#BaseWalletButton+enable">&nbsp;</a>
4889
+
4890
+ ### applePayWalletButtonExpress.enable()
4891
+ Enables the wallet button, restoring interactivity and visual appearance.
4892
+
4893
+ **Kind**: instance method of [<code>ApplePayWalletButtonExpress</code>](#ApplePayWalletButtonExpress)
4894
+ **Overrides**: [<code>enable</code>](#BaseWalletButton+enable)
4895
+ **Example**
4896
+ ```js
4897
+ button.enable();
4898
+ ```
4899
+ <a name="BaseWalletButton+disable" id="BaseWalletButton+disable" href="#BaseWalletButton+disable">&nbsp;</a>
4900
+
4901
+ ### applePayWalletButtonExpress.disable()
4902
+ Disables the wallet button, preventing clicks and applying a visual disabled state.
4903
+
4904
+ **Kind**: instance method of [<code>ApplePayWalletButtonExpress</code>](#ApplePayWalletButtonExpress)
4905
+ **Overrides**: [<code>disable</code>](#BaseWalletButton+disable)
4906
+ **Example**
4907
+ ```js
4908
+ button.disable();
4909
+ ```
4872
4910
  <a name="BaseWalletButton+onClick" id="BaseWalletButton+onClick" href="#BaseWalletButton+onClick">&nbsp;</a>
4873
4911
 
4874
4912
  ### applePayWalletButtonExpress.onClick(handler)
@@ -5076,6 +5114,8 @@ Class PaypalWalletButtonExpress to work with Paypal Wallet.
5076
5114
  * [.load()](#PaypalWalletButtonExpress+load)
5077
5115
  * [.setMeta(meta)](#PaypalWalletButtonExpress+setMeta)
5078
5116
  * [.setEnv(env, [alias])](#BaseWalletButton+setEnv)
5117
+ * [.enable()](#BaseWalletButton+enable)
5118
+ * [.disable()](#BaseWalletButton+disable)
5079
5119
  * [.onClick(handler)](#BaseWalletButton+onClick)
5080
5120
  * [.onPaymentSuccessful([handler])](#BaseWalletButton+onPaymentSuccessful)
5081
5121
  * [.onPaymentInReview([handler])](#BaseWalletButton+onPaymentInReview)
@@ -5148,6 +5188,28 @@ Bear in mind that you must set an environment before calling `button.load()`.
5148
5188
  ```js
5149
5189
  button.setEnv('production', 'paydock.com');
5150
5190
  ```
5191
+ <a name="BaseWalletButton+enable" id="BaseWalletButton+enable" href="#BaseWalletButton+enable">&nbsp;</a>
5192
+
5193
+ ### paypalWalletButtonExpress.enable()
5194
+ Enables the wallet button, restoring interactivity and visual appearance.
5195
+
5196
+ **Kind**: instance method of [<code>PaypalWalletButtonExpress</code>](#PaypalWalletButtonExpress)
5197
+ **Overrides**: [<code>enable</code>](#BaseWalletButton+enable)
5198
+ **Example**
5199
+ ```js
5200
+ button.enable();
5201
+ ```
5202
+ <a name="BaseWalletButton+disable" id="BaseWalletButton+disable" href="#BaseWalletButton+disable">&nbsp;</a>
5203
+
5204
+ ### paypalWalletButtonExpress.disable()
5205
+ Disables the wallet button, preventing clicks and applying a visual disabled state.
5206
+
5207
+ **Kind**: instance method of [<code>PaypalWalletButtonExpress</code>](#PaypalWalletButtonExpress)
5208
+ **Overrides**: [<code>disable</code>](#BaseWalletButton+disable)
5209
+ **Example**
5210
+ ```js
5211
+ button.disable();
5212
+ ```
5151
5213
  <a name="BaseWalletButton+onClick" id="BaseWalletButton+onClick" href="#BaseWalletButton+onClick">&nbsp;</a>
5152
5214
 
5153
5215
  ### paypalWalletButtonExpress.onClick(handler)
@@ -5381,6 +5443,29 @@ List of available contact fields for ContactFieldType
5381
5443
  | address_country | <code>string</code> |
5382
5444
  | address_country_code | <code>string</code> |
5383
5445
 
5446
+ <a name="enable" id="enable" href="#enable">&nbsp;</a>
5447
+
5448
+ ## enable()
5449
+ Enables the wallet button, restoring interactivity and visual appearance.
5450
+ Available on both ApplePayWalletButtonExpress and PaypalWalletButtonExpress.
5451
+
5452
+ **Kind**: global function
5453
+ **Example**
5454
+ ```js
5455
+ button.enable();
5456
+ ```
5457
+ <a name="disable" id="disable" href="#disable">&nbsp;</a>
5458
+
5459
+ ## disable()
5460
+ Disables the wallet button, preventing clicks and applying a visual disabled state.
5461
+ When disabled, the button appears grayed out and does not respond to user interaction.
5462
+ Available on both ApplePayWalletButtonExpress and PaypalWalletButtonExpress.
5463
+
5464
+ **Kind**: global function
5465
+ **Example**
5466
+ ```js
5467
+ button.disable();
5468
+ ```
5384
5469
  <a name="OnClickCallback" id="OnClickCallback" href="#OnClickCallback">&nbsp;</a>
5385
5470
 
5386
5471
  ## OnClickCallback ⇒ <code>Promise.&lt;string&gt;</code>
@@ -6421,6 +6506,24 @@ Used in the <code>context.operation</code> field of <a href="#OnErrorEventData">
6421
6506
  </dd>
6422
6507
  </dl>
6423
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
+
6424
6527
  ## Typedefs
6425
6528
 
6426
6529
  <dl>
@@ -6846,6 +6949,8 @@ if the service type does not match Apple Pay.
6846
6949
  * [ApplePayOpenWalletButton](#ApplePayOpenWalletButton) ⇐ [<code>OpenWalletButtons</code>](#OpenWalletButtons)
6847
6950
  * [new ApplePayOpenWalletButton(selector, publicKeyOrAccessToken, serviceId, meta)](#new_ApplePayOpenWalletButton_new)
6848
6951
  * [.load()](#OpenWalletButtons+load)
6952
+ * [.enable()](#OpenWalletButtons+enable)
6953
+ * [.disable()](#OpenWalletButtons+disable)
6849
6954
  * [.setEnv(env, [alias])](#OpenWalletButtons+setEnv)
6850
6955
  * [.setMeta(meta)](#OpenWalletButtons+setMeta)
6851
6956
  * [.destroy()](#OpenWalletButtons+destroy)
@@ -6905,6 +7010,41 @@ button.onSuccess((data) => { ... });
6905
7010
  button.onError((error) => { ... });
6906
7011
  button.load();
6907
7012
  ```
7013
+ <a name="OpenWalletButtons+enable" id="OpenWalletButtons+enable" href="#OpenWalletButtons+enable">&nbsp;</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">&nbsp;</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
+ ```
6908
7048
  <a name="OpenWalletButtons+setEnv" id="OpenWalletButtons+setEnv" href="#OpenWalletButtons+setEnv">&nbsp;</a>
6909
7049
 
6910
7050
  ### applePayOpenWalletButton.setEnv(env, [alias])
@@ -7210,6 +7350,8 @@ if the service type does not match Google Pay.
7210
7350
  * [GooglePayOpenWalletButton](#GooglePayOpenWalletButton) ⇐ [<code>OpenWalletButtons</code>](#OpenWalletButtons)
7211
7351
  * [new GooglePayOpenWalletButton(selector, publicKeyOrAccessToken, serviceId, meta)](#new_GooglePayOpenWalletButton_new)
7212
7352
  * [.load()](#OpenWalletButtons+load)
7353
+ * [.enable()](#OpenWalletButtons+enable)
7354
+ * [.disable()](#OpenWalletButtons+disable)
7213
7355
  * [.setEnv(env, [alias])](#OpenWalletButtons+setEnv)
7214
7356
  * [.setMeta(meta)](#OpenWalletButtons+setMeta)
7215
7357
  * [.destroy()](#OpenWalletButtons+destroy)
@@ -7267,6 +7409,41 @@ button.onSuccess((data) => { ... });
7267
7409
  button.onError((error) => { ... });
7268
7410
  button.load();
7269
7411
  ```
7412
+ <a name="OpenWalletButtons+enable" id="OpenWalletButtons+enable" href="#OpenWalletButtons+enable">&nbsp;</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">&nbsp;</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
+ ```
7270
7447
  <a name="OpenWalletButtons+setEnv" id="OpenWalletButtons+setEnv" href="#OpenWalletButtons+setEnv">&nbsp;</a>
7271
7448
 
7272
7449
  ### googlePayOpenWalletButton.setEnv(env, [alias])
@@ -7572,6 +7749,8 @@ These subclasses inherit all event handlers and lifecycle methods documented bel
7572
7749
 
7573
7750
  * *[OpenWalletButtons](#OpenWalletButtons)*
7574
7751
  * *[.load()](#OpenWalletButtons+load)*
7752
+ * *[.enable()](#OpenWalletButtons+enable)*
7753
+ * *[.disable()](#OpenWalletButtons+disable)*
7575
7754
  * *[.setEnv(env, [alias])](#OpenWalletButtons+setEnv)*
7576
7755
  * *[.setMeta(meta)](#OpenWalletButtons+setMeta)*
7577
7756
  * *[.destroy()](#OpenWalletButtons+destroy)*
@@ -7600,6 +7779,41 @@ button.onSuccess((data) => { ... });
7600
7779
  button.onError((error) => { ... });
7601
7780
  button.load();
7602
7781
  ```
7782
+ <a name="OpenWalletButtons+enable" id="OpenWalletButtons+enable" href="#OpenWalletButtons+enable">&nbsp;</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">&nbsp;</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
+ ```
7603
7817
  <a name="OpenWalletButtons+setEnv" id="OpenWalletButtons+setEnv" href="#OpenWalletButtons+setEnv">&nbsp;</a>
7604
7818
 
7605
7819
  ### *openWalletButtons.setEnv(env, [alias])*
@@ -7946,6 +8160,35 @@ Used in the `context.operation` field of [OnErrorEventData](#OnErrorEventData).
7946
8160
  | HANDLER_REGISTRATION | <code>string</code> | <code>&quot;handler_registration&quot;</code> | A required event handler was not registered before calling load(). |
7947
8161
  | SHIPPING_UPDATE | <code>string</code> | <code>&quot;shipping_update&quot;</code> | Processing a shipping address or shipping option update failed. |
7948
8162
 
8163
+ <a name="enable" id="enable" href="#enable">&nbsp;</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">&nbsp;</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
+ ```
7949
8192
  <a name="OnClickCallback" id="OnClickCallback" href="#OnClickCallback">&nbsp;</a>
7950
8193
 
7951
8194
  ## OnClickCallback ⇒ <code>boolean</code> \| <code>void</code> \| <code>Promise.&lt;(boolean\|void)&gt;</code>