coinswitch-pay-stake
v1.1.2
Published
Coinswitch Pay javaScript library for Stake
Downloads
3
Readme
Install
$ npm install --save coinswitch-pay-stake
Usage
See demo.html for sample setup
Put the css on your page
<link rel="stylesheet" type="text/css" href="dist/css/coinswitch-pay-stake.min.css">
and the script
<script src="/dist/js/coinswitch-pay-stake.js"></script>
add id="coinswitch-pay"
to the element you want to bind the popup to
Configuration example
let config = {
merchant_id: 'xxxxx',
coin_configuration: {
coins: [{
symbol: 'ETH',
address: "xxxx"
},
{
symbol: 'BTC',
address: "xxxx"
},
{
symbol: 'LTC',
address: "xxxx"
}
],
default_coin: 'btc'
}
}
let cs = new Coinswitch(config);