Buy Button is a simple web component that opens up trade widget in a 768x576 popup.
How to use
Add the following code into your web page:
for sandbox
<script src="https://trade-ui.sandbox.coinify.com/components/buy-button.js"></script>
...
<buy-button
url="https://trade-ui.sandbox.coinify.com?partnerId={replace-with-assigned-id}&primaryColor=blue&cryptoCurrencies=BTC,ETH,XLM"
/>
for production
<script src="https://trade-ui.coinify.com/components/buy-button.js"></script>
...
<buy-button
url="https://trade-ui.coinify.com?partnerId={replace-with-assigned-id}&primaryColor=blue&cryptoCurrencies=BTC,ETH,XLM"
/>
url
property points to the trade widget just as in the example.
The
partnerId
query parameter must be set to the proper value so that users can be registered with your company.
Styling the Buy Button
Custom CSS properties exposed:
Property | Description |
---|---|
background-color | Colour of the button. |
color | Colour of the text. |
Style using custom CSS properties
<style type="text/css">
buy-button {
--background-color: #8fc065;
}
</style>
Style using CSS
buy-button button {
background-color: #8fc065;
}