File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed
docs/develop/dapps/asset-processing Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -136,13 +136,20 @@ To accept payments based on attached comments, the service should
136
136
### Invoices with ton:// link
137
137
138
138
If you need an easy integration for a simple user flow, it is suitable to use the ton:// link.
139
- Best suited for one-time payments and invoices.
139
+ Best suited for one-time payments and invoices with Toncoin .
140
140
141
- ``` bash
141
+ ``` text
142
142
ton://transfer/<destination-address>?
143
- [nft=< nft-address> & ]
144
- [fee-amount=< nanocoins> & ]
145
- [forward-amount=< nanocoins> ]
143
+ [amount=<toncoin-in-nanocoins>&]
144
+ [text=<url-encoded-utf8-comment>]
145
+ ```
146
+
147
+ Example of ton:// link generation:
148
+
149
+ ``` typescript
150
+ const tonLink = ` ton://transfer/${address .toString ({
151
+ urlSafe: true ,
152
+ })}?amount=${amount }${text ? ` &text=${encodeURIComponent (text )} ` : ' ' } ` ;
146
153
```
147
154
148
155
- ✅ Easy integration
You can’t perform that action at this time.
0 commit comments