@depay/widgets 7.8.0 → 7.11.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 +34 -2
- package/dist/esm/index.bundle.js +1 -1
- package/dist/esm/index.js +20 -7
- package/dist/umd/index.bundle.js +1 -1
- package/dist/umd/index.js +20 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -312,6 +312,8 @@ BODY:
|
|
|
312
312
|
"sender": "0x769794c94e9f113e357023dab73e81dbd6db201c",
|
|
313
313
|
"nonce": 103,
|
|
314
314
|
"after_block": 13230369,
|
|
315
|
+
"from_token": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
|
|
316
|
+
"from_amount": "1100000000000000000",
|
|
315
317
|
"to_token": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
|
|
316
318
|
"to_amount": "1000000000000000000",
|
|
317
319
|
"fee_amount": "100000000000000000"
|
|
@@ -459,7 +461,7 @@ DePayWidgets.Payment({
|
|
|
459
461
|
|
|
460
462
|
`confirmed`
|
|
461
463
|
|
|
462
|
-
A function that will be called once the payment has been confirmed once by the network.
|
|
464
|
+
A function that will be called once the payment has been confirmed once by the network (client-side).
|
|
463
465
|
|
|
464
466
|
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)
|
|
465
467
|
|
|
@@ -472,6 +474,21 @@ DePayWidgets.Payment({
|
|
|
472
474
|
})
|
|
473
475
|
```
|
|
474
476
|
|
|
477
|
+
#### validated (DePay Payments)
|
|
478
|
+
|
|
479
|
+
`validated`
|
|
480
|
+
|
|
481
|
+
A function that will be called once the payment has been validated by DePay Apis (server-side).
|
|
482
|
+
|
|
483
|
+
```javascript
|
|
484
|
+
DePayWidgets.Payment({
|
|
485
|
+
|
|
486
|
+
validated: (successful)=> {
|
|
487
|
+
// successful (true or false)
|
|
488
|
+
}
|
|
489
|
+
})
|
|
490
|
+
```
|
|
491
|
+
|
|
475
492
|
#### failed (DePay Payments)
|
|
476
493
|
|
|
477
494
|
`failed`
|
|
@@ -1345,7 +1362,7 @@ DePayWidgets.Donation({
|
|
|
1345
1362
|
|
|
1346
1363
|
`confirmed`
|
|
1347
1364
|
|
|
1348
|
-
A function that will be called once the payment has been confirmed once by the network.
|
|
1365
|
+
A function that will be called once the payment has been confirmed once by the network (client-side).
|
|
1349
1366
|
|
|
1350
1367
|
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)
|
|
1351
1368
|
|
|
@@ -1358,6 +1375,21 @@ DePayWidgets.Donation({
|
|
|
1358
1375
|
});
|
|
1359
1376
|
```
|
|
1360
1377
|
|
|
1378
|
+
#### validated (DePay Donations)
|
|
1379
|
+
|
|
1380
|
+
`validated`
|
|
1381
|
+
|
|
1382
|
+
A function that will be called once the payment has been validated by DePay Apis (server-side).
|
|
1383
|
+
|
|
1384
|
+
```javascript
|
|
1385
|
+
DePayWidgets.Payment({
|
|
1386
|
+
|
|
1387
|
+
validated: (successful)=> {
|
|
1388
|
+
// successful (true or false)
|
|
1389
|
+
}
|
|
1390
|
+
})
|
|
1391
|
+
```
|
|
1392
|
+
|
|
1361
1393
|
#### failed (DePay Donations)
|
|
1362
1394
|
|
|
1363
1395
|
`failed`
|