@paydock/client-sdk 1.108.0-beta → 1.108.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/README.md +1 -29
- package/bundles/index.cjs +1844 -22970
- package/bundles/index.cjs.d.ts +5 -71
- package/bundles/index.cjs.map +1 -1
- package/bundles/index.mjs +1844 -22970
- package/bundles/index.mjs.d.ts +5 -71
- package/bundles/index.mjs.map +1 -1
- package/bundles/types/api/api-base.d.ts +6 -14
- package/bundles/types/api/api-base.d.ts.map +1 -1
- package/bundles/types/canvas-3ds/services/gpayments-service.d.ts +3 -3
- package/bundles/types/canvas-3ds/services/gpayments-service.d.ts.map +1 -1
- package/bundles/types/checkout-button/afterpay/afterpay.runner.d.ts +0 -2
- package/bundles/types/checkout-button/afterpay/afterpay.runner.d.ts.map +1 -1
- package/bundles/types/checkout-button/checkout-contextual-handler.d.ts +0 -4
- package/bundles/types/checkout-button/checkout-contextual-handler.d.ts.map +1 -1
- package/bundles/types/checkout-button/runner/contextual.runner.d.ts +1 -2
- package/bundles/types/checkout-button/runner/contextual.runner.d.ts.map +1 -1
- package/bundles/types/checkout-button/runner/popup.runner.d.ts +3 -3
- package/bundles/types/checkout-button/runner/popup.runner.d.ts.map +1 -1
- package/bundles/types/components/http-core.d.ts.map +1 -1
- package/bundles/types/components/param.d.ts +0 -1
- package/bundles/types/components/param.d.ts.map +1 -1
- package/bundles/types/configs/env/environment.cba.d.ts +1 -1
- package/bundles/types/configs/env/environment.cba.d.ts.map +1 -1
- package/bundles/types/configs/env/environment.paydock.d.ts +1 -1
- package/bundles/types/configs/env/environment.paydock.d.ts.map +1 -1
- package/bundles/types/wallet-buttons/flypay-v2.wallet-service.d.ts.map +1 -1
- package/bundles/types/wallet-buttons/google.wallet-service.d.ts +4 -4
- package/bundles/types/wallet-buttons/google.wallet-service.d.ts.map +1 -1
- package/bundles/types/wallet-buttons/index.d.ts +0 -1
- package/bundles/types/wallet-buttons/index.d.ts.map +1 -1
- package/bundles/types/widget/configuration.d.ts.map +1 -1
- package/bundles/types/widget/html-multi-widget.d.ts +3 -3
- package/bundles/types/widget/html-multi-widget.d.ts.map +1 -1
- package/bundles/widget.umd.js +1844 -22970
- package/bundles/widget.umd.js.d.ts +5 -71
- package/bundles/widget.umd.js.map +1 -1
- package/bundles/widget.umd.js.min.d.ts +5 -71
- package/bundles/widget.umd.min.js +1 -61
- package/bundles/widget.umd.min.js.map +1 -1
- package/docs/wallet-buttons-examples.md +1 -28
- package/docs/wallet-buttons.md +0 -1
- package/examples/multi-html-widget/simple.html +1 -2
- package/package.json +50 -54
- package/slate.md +1 -28
- package/bundles/types/shared/http/http-request.d.ts +0 -14
- package/bundles/types/shared/http/http-request.d.ts.map +0 -1
- package/bundles/types/shared/http/index.d.ts +0 -2
- package/bundles/types/shared/http/index.d.ts.map +0 -1
- package/bundles/types/shared/services/instrumentation/instrumentation.agent.d.ts +0 -15
- package/bundles/types/shared/services/instrumentation/instrumentation.agent.d.ts.map +0 -1
- package/bundles/types/shared/services/instrumentation/instrumentation.config.d.ts +0 -66
- package/bundles/types/shared/services/instrumentation/instrumentation.config.d.ts.map +0 -1
- package/bundles/types/shared/services/instrumentation/instrumentation.types.d.ts +0 -14
- package/bundles/types/shared/services/instrumentation/instrumentation.types.d.ts.map +0 -1
- package/bundles/types/shared/services/instrumentation/repositories/action.repository.d.ts +0 -15
- package/bundles/types/shared/services/instrumentation/repositories/action.repository.d.ts.map +0 -1
- package/bundles/types/shared/services/instrumentation/repositories/error.repository.d.ts +0 -23
- package/bundles/types/shared/services/instrumentation/repositories/error.repository.d.ts.map +0 -1
- package/bundles/types/shared/services/instrumentation/repositories/event.repository.d.ts +0 -15
- package/bundles/types/shared/services/instrumentation/repositories/event.repository.d.ts.map +0 -1
- package/bundles/types/shared/services/instrumentation/repositories/index.d.ts +0 -4
- package/bundles/types/shared/services/instrumentation/repositories/index.d.ts.map +0 -1
package/README.md
CHANGED
|
@@ -5197,7 +5197,7 @@ var button = new WalletButtons(
|
|
|
5197
5197
|
button.load();
|
|
5198
5198
|
```
|
|
5199
5199
|
|
|
5200
|
-
Flypay and Paypal wallets do not require any meta sent to the wallet, so the following is enough for initialization:
|
|
5200
|
+
Flypay, Flypay V2 and Paypal wallets do not require any meta sent to the wallet, so the following is enough for initialization:
|
|
5201
5201
|
```javascript
|
|
5202
5202
|
let button = new paydock.WalletButtons(
|
|
5203
5203
|
"#widget",
|
|
@@ -5245,32 +5245,6 @@ var button = new WalletButtons(
|
|
|
5245
5245
|
button.load();
|
|
5246
5246
|
```
|
|
5247
5247
|
|
|
5248
|
-
For Flypay v2 wallet, the client_id is required:
|
|
5249
|
-
```javascript
|
|
5250
|
-
let button = new paydock.WalletButtons(
|
|
5251
|
-
"#widget",
|
|
5252
|
-
token,
|
|
5253
|
-
{
|
|
5254
|
-
client_id: "client_id",
|
|
5255
|
-
}
|
|
5256
|
-
);
|
|
5257
|
-
button.load();
|
|
5258
|
-
```
|
|
5259
|
-
|
|
5260
|
-
```javascript
|
|
5261
|
-
// ES2015 | TypeScript
|
|
5262
|
-
import { WalletButtons } from '@paydock/client-sdk';
|
|
5263
|
-
|
|
5264
|
-
var button = new WalletButtons(
|
|
5265
|
-
'#widget',
|
|
5266
|
-
token,
|
|
5267
|
-
{
|
|
5268
|
-
client_id: "client_id",
|
|
5269
|
-
}
|
|
5270
|
-
);
|
|
5271
|
-
button.load();
|
|
5272
|
-
```
|
|
5273
|
-
|
|
5274
5248
|
### Setting environment
|
|
5275
5249
|
|
|
5276
5250
|
Current method can change environment. By default environment = sandbox.
|
|
@@ -5571,7 +5545,6 @@ _(Required `meta` fields: - . Optional `meta` fields: -)_
|
|
|
5571
5545
|
{
|
|
5572
5546
|
access_token: 'TOKEN',
|
|
5573
5547
|
refresh_token: 'TOKEN',
|
|
5574
|
-
client_id: 'CLIENT_ID',
|
|
5575
5548
|
},
|
|
5576
5549
|
);
|
|
5577
5550
|
button.setEnv('sandbox');
|
|
@@ -5957,7 +5930,6 @@ Interface of data used by the wallet checkout and payment proccess.
|
|
|
5957
5930
|
| [style.button_type] | <code>object</code> | Used to select ApplePay button type (e.g: 'buy','donate', etc), check possible values at https://developer.apple.com/documentation/apple_pay_on_the_web/displaying_apple_pay_buttons_using_css. Also select button type for GooglePay (check GooglePayStyles) and Afterpay (check AfterpayStyles). Optional for [ApplePay, GooglePay, Afterpay]. N/A for other wallets. |
|
|
5958
5931
|
| [style.height] | <code>object</code> | Used to select Afterpay button height. Optional for [Afterpay]. N/A for other wallets. |
|
|
5959
5932
|
| [wallets] | <code>array</code> | By default if this is not sent or empty, we will try to show either Apple Pay or Google Pay buttons. This can be limited sending the following array in this field: ['apple','google]. Optional for [Stripe, ApplePay, GooglePay]. N/A for other wallets. |
|
|
5960
|
-
| [client_id] | <code>string</code> | Client ID to be used in the provider system. Required for [Flypay V2]. N/A for [FlyPay, GooglePay, ApplePay, PayPal, Afterpay]. |
|
|
5961
5933
|
|
|
5962
5934
|
<a name="IApplePayShippingOption" id="IApplePayShippingOption" href="#IApplePayShippingOption"> </a>
|
|
5963
5935
|
|