@depay/widgets 7.14.3 → 7.14.4
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 +47 -14
- package/dist/esm/index.bundle.js +2 -2
- package/dist/esm/index.js +9 -9
- package/dist/umd/index.bundle.js +2 -2
- package/dist/umd/index.js +9 -9
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
You can either load the `@depay/widgets` package via CDN:
|
|
4
4
|
|
|
5
5
|
```
|
|
6
|
-
<script defer async src="https://integrate.depay.
|
|
6
|
+
<script defer async src="https://integrate.depay.com/widgets/v7.js"></script>
|
|
7
7
|
```
|
|
8
8
|
|
|
9
9
|
or you install `@depay/widgets` via the package manager of your choice and ship it as part of your application bundle:
|
|
@@ -24,7 +24,7 @@ import DePayWidgets from '@depay/widgets'
|
|
|
24
24
|
|
|
25
25
|
## Demo
|
|
26
26
|
|
|
27
|
-
To easily configure DePay Payment Widgets please use our configurator here: https://app.depay.
|
|
27
|
+
To easily configure DePay Payment Widgets please use our configurator here: https://app.depay.com/integrations/new
|
|
28
28
|
|
|
29
29
|
For a more low-key technical example/demo page have a look at: https://depayfi.github.io/widgets/dev.bundle.html
|
|
30
30
|
|
|
@@ -74,7 +74,7 @@ In order to receive decentralized payments on any blockchain you need to have yo
|
|
|
74
74
|
### Quick start (DePay Payments)
|
|
75
75
|
|
|
76
76
|
```
|
|
77
|
-
<script defer async src="https://integrate.depay.
|
|
77
|
+
<script defer async src="https://integrate.depay.com/widgets/v7.js"/>
|
|
78
78
|
```
|
|
79
79
|
|
|
80
80
|
```
|
|
@@ -144,7 +144,7 @@ Currently supported:
|
|
|
144
144
|
|
|
145
145
|
The address of the token you want to receive.
|
|
146
146
|
|
|
147
|
-
Use our [payment configurator](https://depay.
|
|
147
|
+
Use our [payment configurator](https://depay.com/documentation/payments#payment-configurator) in order to simplify configuring this.
|
|
148
148
|
|
|
149
149
|
`amount` (Optional)
|
|
150
150
|
|
|
@@ -341,12 +341,12 @@ DePayWidgets.Payment({
|
|
|
341
341
|
|
|
342
342
|
In case you pass a tracking method it needs to return a promise.
|
|
343
343
|
|
|
344
|
-
Your endpoint needs to make sure to forward this to the [payment tracking api](https://depay.
|
|
344
|
+
Your endpoint needs to make sure to forward this to the [payment tracking api](https://depay.com/documentation/api#payments).
|
|
345
345
|
|
|
346
346
|
Also make sure to add `token`, `amount` and `confirmations` when forwarding the request to the payments api.
|
|
347
347
|
Those values are supposed to be set by your backend not the widget nor the fronted because any user could set these values to their liking otherwise, having you confirm payment amounts and tokens that you didn't intend to receive!
|
|
348
348
|
|
|
349
|
-
Make sure you read the [Payment Tracking API](https://depay.
|
|
349
|
+
Make sure you read the [Payment Tracking API](https://depay.com/documentation/api#payments) for further details on how to integrate payment tracking.
|
|
350
350
|
|
|
351
351
|
Payment tracking requests will be attempted up to 3 times by the widget and will display "Payment tracking failed!" to the user if the widget was not able to start payment tracking via the given endpoint after 3 attempts.
|
|
352
352
|
|
|
@@ -818,7 +818,7 @@ In order to sell tokens in a decentralized way, that token needs to have a liqui
|
|
|
818
818
|
### Quick start (DePay Sales)
|
|
819
819
|
|
|
820
820
|
```
|
|
821
|
-
<script defer async src="https://integrate.depay.
|
|
821
|
+
<script defer async src="https://integrate.depay.com/widgets/v7.js"/>
|
|
822
822
|
```
|
|
823
823
|
|
|
824
824
|
```javascript
|
|
@@ -867,7 +867,7 @@ Currently supported blockchains:
|
|
|
867
867
|
|
|
868
868
|
The address of the token you want to sell.
|
|
869
869
|
|
|
870
|
-
Use our [sale configurator](https://depay.
|
|
870
|
+
Use our [sale configurator](https://depay.com/documentation/sales#sale-configurator) in order to simplify configuring this.
|
|
871
871
|
|
|
872
872
|
#### amount (DePay Sales)
|
|
873
873
|
|
|
@@ -1076,7 +1076,7 @@ Allows to set the token image used in the widget to represent the purchased toke
|
|
|
1076
1076
|
```javascript
|
|
1077
1077
|
DePayWidgets.Sale({
|
|
1078
1078
|
|
|
1079
|
-
tokenImage: 'https://depay.
|
|
1079
|
+
tokenImage: 'https://depay.com/favicon.png'
|
|
1080
1080
|
|
|
1081
1081
|
});
|
|
1082
1082
|
```
|
|
@@ -1216,7 +1216,7 @@ In order to receive decentralized donation payments on any blockchain you need t
|
|
|
1216
1216
|
### Quick start (DePay Donations)
|
|
1217
1217
|
|
|
1218
1218
|
```
|
|
1219
|
-
<script defer async src="https://integrate.depay.
|
|
1219
|
+
<script defer async src="https://integrate.depay.com/widgets/v7.js"/>
|
|
1220
1220
|
```
|
|
1221
1221
|
|
|
1222
1222
|
```javascript
|
|
@@ -1274,7 +1274,7 @@ Currently supported:
|
|
|
1274
1274
|
|
|
1275
1275
|
The address of the token you want to receive.
|
|
1276
1276
|
|
|
1277
|
-
Use our [donation configurator](https://depay.
|
|
1277
|
+
Use our [donation configurator](https://depay.com/documentation/donations#donation-configurator) in order to simplify configuring this.
|
|
1278
1278
|
|
|
1279
1279
|
`receiver`
|
|
1280
1280
|
|
|
@@ -1642,7 +1642,7 @@ DePay Connect allows you to have your users connect their crypto wallet to your
|
|
|
1642
1642
|
Returns connected `account`, `accounts` and `wallet` in return.
|
|
1643
1643
|
|
|
1644
1644
|
```
|
|
1645
|
-
<script defer async src="https://integrate.depay.
|
|
1645
|
+
<script defer async src="https://integrate.depay.com/widgets/v7.js"/>
|
|
1646
1646
|
```
|
|
1647
1647
|
|
|
1648
1648
|
```javascript
|
|
@@ -1670,7 +1670,7 @@ DePay Login allows you to perform web3 wallet logins with ease.
|
|
|
1670
1670
|
Returns `account` if succesfully signed and recovered log in message.
|
|
1671
1671
|
|
|
1672
1672
|
```
|
|
1673
|
-
<script defer async src="https://integrate.depay.
|
|
1673
|
+
<script defer async src="https://integrate.depay.com/widgets/v7.js"/>
|
|
1674
1674
|
```
|
|
1675
1675
|
|
|
1676
1676
|
```javascript
|
|
@@ -1747,7 +1747,7 @@ DePay Select widget allows you to open a dialog that allows you to select things
|
|
|
1747
1747
|
Resolves with what has been selected by the user:
|
|
1748
1748
|
|
|
1749
1749
|
```
|
|
1750
|
-
<script defer async src="https://integrate.depay.
|
|
1750
|
+
<script defer async src="https://integrate.depay.com/widgets/v7.js"/>
|
|
1751
1751
|
```
|
|
1752
1752
|
|
|
1753
1753
|
```javascript
|
|
@@ -1834,3 +1834,36 @@ npm login
|
|
|
1834
1834
|
npm publish
|
|
1835
1835
|
```
|
|
1836
1836
|
|
|
1837
|
+
## Web3 Payments
|
|
1838
|
+
|
|
1839
|
+
The future is [Web3 Payments](https://depay.com/web3-payments).
|
|
1840
|
+
|
|
1841
|
+
Blockchains hold the potential to faster, simpler and smarter payments.
|
|
1842
|
+
|
|
1843
|
+
Web3 Payments are borderless, peer-to-peer, and support multiple tokens and blockchains.
|
|
1844
|
+
|
|
1845
|
+
Accept any asset type that your customers already have in their wallet. [DePay](https://depay.com) is blockchain agnostic and can at any time be extended on any blockchain-specific plugin. Interoperability, scalability & flexibility are the cornerstones of our protocol. Accepting any asset that users already have in their wallets no matter which blockchain these are held on, reduces friction when performing decentralized payments.
|
|
1846
|
+
|
|
1847
|
+
### Chain Agnostic (Multichain)
|
|
1848
|
+
|
|
1849
|
+
Interoperability is the key principle on which our infrastructure is built. [DePay](https://depay.com) is extensible around any blockchain, ensuring a competitive cross-chain future.
|
|
1850
|
+
|
|
1851
|
+
### Permissionless
|
|
1852
|
+
|
|
1853
|
+
Interoperability is the key principle on which our infrastructure is built. [DePay](https://depay.com) is extensible around any blockchain, ensuring a competitive cross-chain future.
|
|
1854
|
+
|
|
1855
|
+
### Trustless
|
|
1856
|
+
|
|
1857
|
+
Most Web3 Payment providers & processors receive payments to wallets that they manage themselves. Only in a further intermediate step are the payments paid out to sellers. [DePay](https://depay.com) does not act as an intermediary. Every intermediate step is replaced by smart contracts which are connected to decentralized liquidity pools. As a result, trust is no longer required.
|
|
1858
|
+
|
|
1859
|
+
### Easy to use
|
|
1860
|
+
|
|
1861
|
+
Our ambition was to create an even easier user experience than you're used to from shopping in current non-crypto e-commerce stores. We think we've done a good job of that.
|
|
1862
|
+
|
|
1863
|
+
### Open Source
|
|
1864
|
+
|
|
1865
|
+
Feel free to use & contribute to our codebase at. We're happy to have you look under our hood. The [DePay](https://depay.com) protocol will always remain open source.
|
|
1866
|
+
|
|
1867
|
+
### Multichain
|
|
1868
|
+
|
|
1869
|
+
[DePay](https://depay.com) calculates payment routes on multiple blockchains simultaneously despite what your wallet is currently connected to. Our software automatically detects & switches the network if required.
|