@depay/widgets 7.10.0 → 7.13.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
@@ -314,8 +314,10 @@ BODY:
314
314
  "after_block": 13230369,
315
315
  "from_token": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
316
316
  "from_amount": "1100000000000000000",
317
+ "from_decimals": 18,
317
318
  "to_token": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
318
319
  "to_amount": "1000000000000000000",
320
+ "to_decimals": 18,
319
321
  "fee_amount": "100000000000000000"
320
322
  }
321
323
  ```
@@ -461,7 +463,7 @@ DePayWidgets.Payment({
461
463
 
462
464
  `confirmed`
463
465
 
464
- A function that will be called once the payment has been confirmed once by the network.
466
+ A function that will be called once the payment has been confirmed once by the network (client-side).
465
467
 
466
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)
467
469
 
@@ -474,6 +476,21 @@ DePayWidgets.Payment({
474
476
  })
475
477
  ```
476
478
 
479
+ #### validated (DePay Payments)
480
+
481
+ `validated`
482
+
483
+ A function that will be called once the payment has been validated by DePay Apis (server-side).
484
+
485
+ ```javascript
486
+ DePayWidgets.Payment({
487
+
488
+ validated: (successful)=> {
489
+ // successful (true or false)
490
+ }
491
+ })
492
+ ```
493
+
477
494
  #### failed (DePay Payments)
478
495
 
479
496
  `failed`
@@ -1347,7 +1364,7 @@ DePayWidgets.Donation({
1347
1364
 
1348
1365
  `confirmed`
1349
1366
 
1350
- A function that will be called once the payment has been confirmed once by the network.
1367
+ A function that will be called once the payment has been confirmed once by the network (client-side).
1351
1368
 
1352
1369
  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
1370
 
@@ -1360,6 +1377,21 @@ DePayWidgets.Donation({
1360
1377
  });
1361
1378
  ```
1362
1379
 
1380
+ #### validated (DePay Donations)
1381
+
1382
+ `validated`
1383
+
1384
+ A function that will be called once the payment has been validated by DePay Apis (server-side).
1385
+
1386
+ ```javascript
1387
+ DePayWidgets.Payment({
1388
+
1389
+ validated: (successful)=> {
1390
+ // successful (true or false)
1391
+ }
1392
+ })
1393
+ ```
1394
+
1363
1395
  #### failed (DePay Donations)
1364
1396
 
1365
1397
  `failed`