@depay/widgets 7.16.5 → 8.0.0
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 +14 -14
- package/dist/esm/index.bundle.js +22 -18
- package/dist/esm/index.js +528 -1439
- package/dist/umd/index.bundle.js +22 -18
- package/dist/umd/index.js +526 -1437
- package/package.json +19 -18
package/README.md
CHANGED
|
@@ -459,18 +459,18 @@ DePayWidgets.Payment({
|
|
|
459
459
|
})
|
|
460
460
|
```
|
|
461
461
|
|
|
462
|
-
####
|
|
462
|
+
#### succeeded
|
|
463
463
|
|
|
464
|
-
`
|
|
464
|
+
`succeeded`
|
|
465
465
|
|
|
466
|
-
A function that will be called once the payment has
|
|
466
|
+
A function that will be called once the payment has succeeded on the network (checked client-side).
|
|
467
467
|
|
|
468
468
|
The widget will call this function passing a transaction as single argument (see: [depay-web3-wallets](https://github.com/depayfi/depay-web3-wallets#transaction) for more details)
|
|
469
469
|
|
|
470
470
|
```javascript
|
|
471
471
|
DePayWidgets.Payment({
|
|
472
472
|
|
|
473
|
-
|
|
473
|
+
succeeded: (transaction)=> {
|
|
474
474
|
// called when payment transaction has been confirmed once by the network
|
|
475
475
|
}
|
|
476
476
|
})
|
|
@@ -958,18 +958,18 @@ DePayWidgets.Sale({
|
|
|
958
958
|
});
|
|
959
959
|
```
|
|
960
960
|
|
|
961
|
-
####
|
|
961
|
+
#### succeeded
|
|
962
962
|
|
|
963
|
-
`
|
|
963
|
+
`succeeded`
|
|
964
964
|
|
|
965
|
-
A function that will be called once the payment has
|
|
965
|
+
A function that will be called once the payment has succeeded on the network (checked client-side).
|
|
966
966
|
|
|
967
967
|
The widget will call this function passing a transaction as single argument (see: [depay-web3-wallets](https://github.com/depayfi/depay-web3-wallets#transaction) for more details)
|
|
968
968
|
|
|
969
969
|
```javascript
|
|
970
970
|
DePayWidgets.Sale({
|
|
971
971
|
|
|
972
|
-
|
|
972
|
+
succeeded: (transaction)=> {
|
|
973
973
|
// called when payment transaction has been confirmed once by the network
|
|
974
974
|
}
|
|
975
975
|
});
|
|
@@ -1374,18 +1374,18 @@ DePayWidgets.Donation({
|
|
|
1374
1374
|
});
|
|
1375
1375
|
```
|
|
1376
1376
|
|
|
1377
|
-
####
|
|
1377
|
+
#### succeeded
|
|
1378
1378
|
|
|
1379
|
-
`
|
|
1379
|
+
`succeeded`
|
|
1380
1380
|
|
|
1381
|
-
A function that will be called once the payment has
|
|
1381
|
+
A function that will be called once the payment has succeeded on the network (checked client-side).
|
|
1382
1382
|
|
|
1383
1383
|
The widget will call this function passing a transaction as single argument (see: [depay-web3-wallets](https://github.com/depayfi/depay-web3-wallets#transaction) for more details)
|
|
1384
1384
|
|
|
1385
1385
|
```javascript
|
|
1386
1386
|
DePayWidgets.Donation({
|
|
1387
1387
|
|
|
1388
|
-
|
|
1388
|
+
succeeded: (transaction)=> {
|
|
1389
1389
|
// called when payment transaction has been confirmed once by the network
|
|
1390
1390
|
}
|
|
1391
1391
|
});
|
|
@@ -1701,10 +1701,10 @@ DePayWidgets.Donation({
|
|
|
1701
1701
|
|
|
1702
1702
|
DePay Connect allows you to have your users connect their crypto wallet to your dApp or website.
|
|
1703
1703
|
|
|
1704
|
-
Returns connected `account
|
|
1704
|
+
Returns connected `account` and `wallet` in return.
|
|
1705
1705
|
|
|
1706
1706
|
```javascript
|
|
1707
|
-
let { account,
|
|
1707
|
+
let { account, wallet } = await DePayWidgets.Connect()
|
|
1708
1708
|
```
|
|
1709
1709
|
|
|
1710
1710
|
See [depay-web3-wallets](https://github.com/depayfi/depay-web3-wallets) for more details about the returned `wallet`.
|