Skip to content
Switch branches/tags

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

Slack Status Donate Bitcoin


Copyright (GPL) 2016 Nathan Robinson

A simple html plugin to allow people to donate the equivalent bitcoin amount of a donation of a chosen fiat currency.

Click here for a Demo.

Configuration: (inside of index.js)

var address = "PUT_ADDRESS_HERE"; // The bitcoin address to receive donations. Change to yours
var popup = false; // Set to true if you want a popup to pay bitcoin
var currency_code = "USD"; // Change to your default currency. Choose from
var qrcode = true; // Set to false to disable qrcode
var link = true; // Set to false to disable generating hyperlink
var organization = "Example"; // Change to your organization name
var mbits = true; // Set to false to display bitcoin traditionally


  • Link people to your donate-bitcoin page to let them chose how much Bitcoin to donate.
  • Link people to your donate-bitcoin page with a set amount and specific currency for them to donate. This is done by adding something like ?amount=100&currency=USD to your url. (Example) Read more in the Advanced Configuration.


Create a donation button:

To create a cool button like this, Donate Bitcoin, you can use the API.


[![Donate Bitcoin]($10-orange.svg)](


<a href=""><img src="$10-orange.svg"></a>


You can use HTML to embed donate-bitcoin into one of your existing pages to add an option for people to donate right on your page.

<iframe style="border:none;" src="donate-bitcoin/index.html" height="600px" width="400px"></iframe>

Or with QR code option disabled:

<iframe style="border:none;" src="donate-bitcoin/index.html" height="200px" width="400px"></iframe>

A demo of donate-bitcoin being embedded can be found on my portfolio.

Advanced Configuration:

You can override any of the variables for donate-bitcoin by adding the parameters in your URL. Different variables are separated with a &. For example, to donate 10 Pounds Sterling to Satoshi Nakamoto, you would add:


to your URL. See this example in action.

Variables that you can set:

  • amount - Set the amount of currency to donate.
  • address - Set a Bitcoin address.
  • popup - Enable / Disable popup. (true or false)
  • currency - Set currency. (Chose from the Bitcoin average API)
  • qrcode - Enable / Disable QR code. (true or false)
  • link - Enable / Disable Hyperlink. (true or false)
  • name - Set your name. ( "Donate Bitcoin to NAME") Separate words with -, use -- for a - !
  • mbits - Display bitcoin donation in mBits. (Milli-Bitcoins) (true or false)

Custom Examples of donate-bitcoin:

I have installed donate-bitcoin on my po-util website, at

Here is what it looks like on an iPhone 6 Plus:


A simple html plugin to allow people to donate the equivalent bitcoin amount of a donation of a chosen fiat currency.




No releases published


No packages published