@paydock/client-sdk 1.108.1 → 1.108.2
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 +29 -1
- package/bundles/index.cjs +28425 -7291
- package/bundles/index.cjs.d.ts +71 -5
- package/bundles/index.mjs +28425 -7291
- package/bundles/index.mjs.d.ts +71 -5
- package/bundles/types/api/api-base.d.ts +14 -6
- 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 +2 -0
- package/bundles/types/checkout-button/afterpay/afterpay.runner.d.ts.map +1 -1
- package/bundles/types/checkout-button/checkout-contextual-handler.d.ts +4 -0
- package/bundles/types/checkout-button/checkout-contextual-handler.d.ts.map +1 -1
- package/bundles/types/checkout-button/runner/contextual.runner.d.ts +2 -1
- package/bundles/types/checkout-button/runner/contextual.runner.d.ts.map +1 -1
- package/bundles/types/checkout-button/runner/popup.runner.d.ts +3 -3
- package/bundles/types/checkout-button/runner/popup.runner.d.ts.map +1 -1
- package/bundles/types/components/http-core.d.ts.map +1 -1
- package/bundles/types/components/param.d.ts +1 -0
- package/bundles/types/components/param.d.ts.map +1 -1
- package/bundles/types/configs/env/environment.cba.d.ts +1 -1
- package/bundles/types/configs/env/environment.cba.d.ts.map +1 -1
- package/bundles/types/configs/env/environment.paydock.d.ts +1 -1
- package/bundles/types/configs/env/environment.paydock.d.ts.map +1 -1
- package/bundles/types/shared/http/http-request.d.ts +14 -0
- package/bundles/types/shared/http/http-request.d.ts.map +1 -0
- package/bundles/types/shared/http/index.d.ts +2 -0
- package/bundles/types/shared/http/index.d.ts.map +1 -0
- package/bundles/types/shared/services/instrumentation/instrumentation.agent.d.ts +15 -0
- package/bundles/types/shared/services/instrumentation/instrumentation.agent.d.ts.map +1 -0
- package/bundles/types/shared/services/instrumentation/instrumentation.config.d.ts +66 -0
- package/bundles/types/shared/services/instrumentation/instrumentation.config.d.ts.map +1 -0
- package/bundles/types/shared/services/instrumentation/instrumentation.types.d.ts +14 -0
- package/bundles/types/shared/services/instrumentation/instrumentation.types.d.ts.map +1 -0
- package/bundles/types/shared/services/instrumentation/repositories/action.repository.d.ts +15 -0
- package/bundles/types/shared/services/instrumentation/repositories/action.repository.d.ts.map +1 -0
- package/bundles/types/shared/services/instrumentation/repositories/error.repository.d.ts +23 -0
- package/bundles/types/shared/services/instrumentation/repositories/error.repository.d.ts.map +1 -0
- package/bundles/types/shared/services/instrumentation/repositories/event.repository.d.ts +15 -0
- package/bundles/types/shared/services/instrumentation/repositories/event.repository.d.ts.map +1 -0
- package/bundles/types/shared/services/instrumentation/repositories/index.d.ts +4 -0
- package/bundles/types/shared/services/instrumentation/repositories/index.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/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 +1 -0
- 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 +28425 -7291
- package/bundles/widget.umd.js.d.ts +71 -5
- package/bundles/widget.umd.js.min.d.ts +71 -5
- package/bundles/widget.umd.min.js +61 -2
- package/docs/wallet-buttons-examples.md +28 -1
- package/docs/wallet-buttons.md +1 -0
- package/examples/multi-html-widget/simple.html +2 -1
- package/package.json +21 -17
- package/slate.md +28 -1
- package/bundles/index.cjs.map +0 -1
- package/bundles/index.mjs.map +0 -1
- package/bundles/widget.umd.js.map +0 -1
- package/bundles/widget.umd.min.js.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
|
|
5200
|
+
Flypay 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,6 +5245,32 @@ 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
|
+
|
|
5248
5274
|
### Setting environment
|
|
5249
5275
|
|
|
5250
5276
|
Current method can change environment. By default environment = sandbox.
|
|
@@ -5545,6 +5571,7 @@ _(Required `meta` fields: - . Optional `meta` fields: -)_
|
|
|
5545
5571
|
{
|
|
5546
5572
|
access_token: 'TOKEN',
|
|
5547
5573
|
refresh_token: 'TOKEN',
|
|
5574
|
+
client_id: 'CLIENT_ID',
|
|
5548
5575
|
},
|
|
5549
5576
|
);
|
|
5550
5577
|
button.setEnv('sandbox');
|
|
@@ -5930,6 +5957,7 @@ Interface of data used by the wallet checkout and payment proccess.
|
|
|
5930
5957
|
| [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. |
|
|
5931
5958
|
| [style.height] | <code>object</code> | Used to select Afterpay button height. Optional for [Afterpay]. N/A for other wallets. |
|
|
5932
5959
|
| [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]. |
|
|
5933
5961
|
|
|
5934
5962
|
<a name="IApplePayShippingOption" id="IApplePayShippingOption" href="#IApplePayShippingOption"> </a>
|
|
5935
5963
|
|