@depay/widgets 6.11.0 → 6.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 +23 -0
- package/dist/esm/index.bundle.js +437 -144
- package/dist/esm/index.js +394 -102
- package/dist/umd/index.bundle.js +437 -144
- package/dist/umd/index.js +397 -105
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -586,6 +586,29 @@ let { unmount } = await DePayWidgets.Payment({})
|
|
|
586
586
|
unmount()
|
|
587
587
|
```
|
|
588
588
|
|
|
589
|
+
#### recover
|
|
590
|
+
|
|
591
|
+
`recover`
|
|
592
|
+
|
|
593
|
+
Allows you to recover a previous made payment. E.g. useful if you need to continue to show a pending payment progress if user rearrives or reloads a payment page:
|
|
594
|
+
|
|
595
|
+
```javascript
|
|
596
|
+
DePayWidgets.Payment({
|
|
597
|
+
recover: {
|
|
598
|
+
blockchain: 'ethereum',
|
|
599
|
+
transaction: '0x081ae81229b2c7df586835e9e4c16aa89f8a15dc118fac31b7521477c53ed2a9',
|
|
600
|
+
sender: '0x317d875ca3b9f8d14f960486c0d1d1913be74e90',
|
|
601
|
+
nonce: 2865,
|
|
602
|
+
afterBlock: 14088130,
|
|
603
|
+
token: '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE',
|
|
604
|
+
amount: 0.0001
|
|
605
|
+
}
|
|
606
|
+
})
|
|
607
|
+
|
|
608
|
+
A recovered payment still results in a confirmed or failed payment, and also calls one of those callbacks also when created with recover.
|
|
609
|
+
|
|
610
|
+
```
|
|
611
|
+
|
|
589
612
|
## DePay Sales
|
|
590
613
|
|
|
591
614
|
DePay Sales allows you to sell tokens directly from your website or dApp with automatic any-to-any payment conversion (so people can use any token when buying your token directly off your website or dApp).
|