@ton-pay/ui-react 0.1.0 → 0.1.1
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 +4 -4
- package/dist/index.js +279 -20180
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +279 -20180
- package/dist/index.mjs.map +1 -1
- package/package.json +11 -3
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @ton-pay/ui-react
|
|
2
2
|
|
|
3
|
-
React components and hooks for
|
|
3
|
+
React components and hooks for TON Pay SDK.
|
|
4
4
|
|
|
5
5
|
## Documentation
|
|
6
6
|
|
|
@@ -9,7 +9,7 @@ Full documentation: https://docs.tonpay.tech
|
|
|
9
9
|
## Installation
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
|
-
npm install @ton-pay/ui @tonconnect/ui-react
|
|
12
|
+
npm install @ton-pay/ui-react @tonconnect/ui-react
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
## Quick Start
|
|
@@ -29,7 +29,7 @@ function PaymentForm() {
|
|
|
29
29
|
{
|
|
30
30
|
amount: 10.5,
|
|
31
31
|
asset: TON,
|
|
32
|
-
recipientAddr: "EQC...",
|
|
32
|
+
recipientAddr: "EQC...", // Optional if API key is provided
|
|
33
33
|
senderAddr,
|
|
34
34
|
commentToSender: "Payment for order #123",
|
|
35
35
|
},
|
|
@@ -76,7 +76,7 @@ function PaymentComponent() {
|
|
|
76
76
|
{
|
|
77
77
|
amount: 10.5,
|
|
78
78
|
asset: TON,
|
|
79
|
-
recipientAddr: "EQC...",
|
|
79
|
+
recipientAddr: "EQC...", // Optional if API key is provided
|
|
80
80
|
senderAddr,
|
|
81
81
|
commentToSender: "Payment for order #123",
|
|
82
82
|
},
|