@paydock/client-sdk 1.113.2 → 1.115.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 +3 -1
- package/bundles/index.cjs +13 -7
- package/bundles/index.mjs +13 -7
- package/bundles/types/index-cba.d.ts +1 -0
- package/bundles/types/index-cba.d.ts.map +1 -1
- package/bundles/types/wallet-buttons/index.d.ts +3 -0
- package/bundles/types/wallet-buttons/index.d.ts.map +1 -1
- package/bundles/types/wallet-buttons/wallet-services/wallet-service.d.ts +1 -1
- package/bundles/types/wallet-buttons/wallet-services/wallet-service.d.ts.map +1 -1
- package/bundles/widget.umd.js +13 -7
- package/bundles/widget.umd.min.js +2 -2
- package/docs/wallet-buttons-examples.md +1 -1
- package/docs/wallet-buttons.md +2 -0
- package/package.json +1 -1
- package/slate.md +1 -1
|
@@ -425,7 +425,7 @@ _(Required `meta` fields: - . Optional `meta` fields: -)_
|
|
|
425
425
|
},
|
|
426
426
|
);
|
|
427
427
|
button.setEnv('sandbox');
|
|
428
|
-
button.onUnavailable(() => console.log("No wallet buttons available"));
|
|
428
|
+
button.onUnavailable((data) => console.log("No wallet buttons available"));
|
|
429
429
|
button.onPaymentSuccessful((data) => console.log("The payment was successful"));
|
|
430
430
|
button.onPaymentError((data) => console.log("The payment was not successful"));
|
|
431
431
|
button.onAuthTokensChanged((data) => console.log('Authentication tokens changed'));
|
package/docs/wallet-buttons.md
CHANGED
|
@@ -131,6 +131,8 @@ Interface of data from an unavailable event.
|
|
|
131
131
|
| Param | Type | Description |
|
|
132
132
|
| --- | --- | --- |
|
|
133
133
|
| [wallet] | <code>string</code> | For gateways with more than one wallet button available (e.g: MPGS with ApplePay and GooglePay). Possible values for wallet are 'apple' or 'google'. |
|
|
134
|
+
| [type] | <code>string</code> | Event Code. Value can be 'create_order_id_error' on FlypayV2 order creation failure. Optional for [Flypay V2]. N/A for other wallets. |
|
|
135
|
+
| [error_code] | <code>string</code> | Event Error Code. Value can be any error code return from Paydock's API. Optional for [Flypay V2]. N/A for other wallets. + |
|
|
134
136
|
|
|
135
137
|
<a name="IWalletUpdateData" id="IWalletUpdateData" href="#IWalletUpdateData"> </a>
|
|
136
138
|
|
package/package.json
CHANGED
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
}
|
|
105
105
|
},
|
|
106
106
|
"name": "@paydock/client-sdk",
|
|
107
|
-
"version": "1.
|
|
107
|
+
"version": "1.115.0-beta",
|
|
108
108
|
"scripts": {
|
|
109
109
|
"build:doc": "node docs/html/marked.js",
|
|
110
110
|
"build:js": "rollup --config rollup.config.ts --configPlugin @rollup/plugin-typescript",
|
package/slate.md
CHANGED
|
@@ -1481,7 +1481,7 @@ _(Required `meta` fields: - . Optional `meta` fields: -)_
|
|
|
1481
1481
|
},
|
|
1482
1482
|
);
|
|
1483
1483
|
button.setEnv('sandbox');
|
|
1484
|
-
button.onUnavailable(() => console.log("No wallet buttons available"));
|
|
1484
|
+
button.onUnavailable((data) => console.log("No wallet buttons available"));
|
|
1485
1485
|
button.onPaymentSuccessful((data) => console.log("The payment was successful"));
|
|
1486
1486
|
button.onPaymentError((data) => console.log("The payment was not successful"));
|
|
1487
1487
|
button.onAuthTokensChanged((data) => console.log('Authentication tokens changed'));
|