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 @@ -150,13 +150,20 @@ To accept payments based on attached comments, the service should
150
150
### Invoices with ton:// link
151
151
152
152
If you need an easy integration for a simple user flow, it is suitable to use the ton:// link.
153
- Best suited for one-time payments and invoices.
153
+ Best suited for one-time payments and invoices with Toncoin .
154
154
155
- ``` bash
155
+ ``` text
156
156
ton://transfer/<destination-address>?
157
- [nft=< nft-address> & ]
158
- [fee-amount=< nanocoins> & ]
159
- [forward-amount=< nanocoins> ]
157
+ [amount=<toncoin-in-nanocoins>&]
158
+ [text=<url-encoded-utf8-comment>]
159
+ ```
160
+
161
+ Example of ton:// link generation:
162
+
163
+ ``` typescript
164
+ const tonLink = ` ton://transfer/${address .toString ({
165
+ urlSafe: true ,
166
+ })}?amount=${amount }${text ? ` &text=${encodeURIComponent (text )} ` : ' ' } ` ;
160
167
```
161
168
162
169
- ✅ Easy integration
You can’t perform that action at this time.
0 commit comments