@depay/widgets 7.10.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 CHANGED
@@ -461,7 +461,7 @@ DePayWidgets.Payment({
461
461
 
462
462
  `confirmed`
463
463
 
464
- 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).
465
465
 
466
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)
467
467
 
@@ -474,6 +474,21 @@ DePayWidgets.Payment({
474
474
  })
475
475
  ```
476
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
+
477
492
  #### failed (DePay Payments)
478
493
 
479
494
  `failed`
@@ -1347,7 +1362,7 @@ DePayWidgets.Donation({
1347
1362
 
1348
1363
  `confirmed`
1349
1364
 
1350
- 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).
1351
1366
 
1352
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)
1353
1368
 
@@ -1360,6 +1375,21 @@ DePayWidgets.Donation({
1360
1375
  });
1361
1376
  ```
1362
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
+
1363
1393
  #### failed (DePay Donations)
1364
1394
 
1365
1395
  `failed`