Skip to content

Commit 9c40a88

Browse files
committed
OP-159-API-Payment-widget
1 parent 90d517d commit 9c40a88

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

widget/README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Open-widget
2+
This is a payment widget that you can embed in your site for receiving payments from customers in the Crypto currency via [OPEN platform](https://api.openfuture.io/) API.
3+
4+
This widget requires [Metamask wallet](https://metamask.io/).
5+
6+
[![](http://joxi.net/VrwNex4COodeMA.png)]()
7+
8+
### Usage
9+
10+
width and height parameters.
11+
You also need to put your scaffold address in the src element after - "https://www.openfuture.io/widget/"
12+
The best solution is to do this dynamically, especially if you have created a lot of scaffolds.k
13+
14+
15+
```html
16+
<iframe id="open-widget-iframe" src="https://www.openfuture.io/widget/your_scaffold_address_here" width="400" height="600" scrolling="no" frameborder="0" allowfullscreen></iframe>
17+
18+
```
19+
20+
21+
The widget can contain a maximum of 9 fields of 3 types (string, number, boolean).
22+
Field names and type are set in a [personal OPEN-platform account](https://api.open-platform.zensoft.io/scaffolds/new) , before creating a smart contract.
23+

0 commit comments

Comments
 (0)