Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 1.12 KB

README.md

File metadata and controls

32 lines (21 loc) · 1.12 KB

Badger Button Templates

How to use it

There are 2 to 3 steps to follow to set up the Badger Button donation button.

1. Step one is including the Badger Wallet JavaScript file into your website, right at the end of the code, before the closing body tag (</body>).
<!-- insert this at the end of the page before the closing body tag -->
<script src="https://badgerwallet.cash/button.js"></script>
2. Step two is inserting one or more buttons in your page. Edit the field data-to and insert your BCH address and the field data-satoshi with the amount you want to receive (in satoshis).
<!-- insert the button anywhere -->
<button class="badger-button" data-to="bitcoincash:qq6e3seenwkhjqv88vavrlpfy7wc6mrzt5xqu0w5ch" data-satoshis="1000"><span>Donate 1000 satoshis</span></button>

At this point your button will look very basic like this:

button

3. Optional step three is to customize the style of your button using CSS.
.badger-button {
  /* your styling here */
}