@depay/widgets 7.9.0 → 7.12.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
@@ -312,8 +312,12 @@ BODY:
312
312
  "sender": "0x769794c94e9f113e357023dab73e81dbd6db201c",
313
313
  "nonce": 103,
314
314
  "after_block": 13230369,
315
+ "from_token": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
316
+ "from_amount": "1100000000000000000",
317
+ "from_decimals": 18,
315
318
  "to_token": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
316
319
  "to_amount": "1000000000000000000",
320
+ "to_decimals": 18,
317
321
  "fee_amount": "100000000000000000"
318
322
  }
319
323
  ```
@@ -459,7 +463,7 @@ DePayWidgets.Payment({
459
463
 
460
464
  `confirmed`
461
465
 
462
- 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).
463
467
 
464
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)
465
469
 
@@ -472,6 +476,21 @@ DePayWidgets.Payment({
472
476
  })
473
477
  ```
474
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
+
475
494
  #### failed (DePay Payments)
476
495
 
477
496
  `failed`
@@ -1345,7 +1364,7 @@ DePayWidgets.Donation({
1345
1364
 
1346
1365
  `confirmed`
1347
1366
 
1348
- 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).
1349
1368
 
1350
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)
1351
1370
 
@@ -1358,6 +1377,21 @@ DePayWidgets.Donation({
1358
1377
  });
1359
1378
  ```
1360
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
+
1361
1395
  #### failed (DePay Donations)
1362
1396
 
1363
1397
  `failed`