Trying out Bitcoin + WordPress plugin

Update: Download zip-file of plugin here.

Update: The plugin has been updated. The latest version uses a payment processor (currently Coinbase support is available) so there is no static public address anymore. It is still possible to have a bubble showing total amount and number of payments.

I signed up for the Flattr micro-payment platform a while ago and I’ve been very pleased with the system. It is very convenient to be able to donate a small sum to the author after reading an interesting blog post or encountering a useful open source project. However, recently the digital currency Bitcoin came to my attention as a possible contender for micro-payments, one of the primary advantages being that the transaction fee is very low compared to Flattr (who take 10% of every transaction). So I’ve made a Bitcoin wallet and I intend to use it like Flattr to give a small sum to anyone whose blog posts or source code I find useful or interesting.

In addition you can donate a small amount to my projects using the link on the right or below. I made a small WordPress plugin to complement the pretty Flattr button. If you want to use it on your own site you can get the source code here. It shows the address, QR code and current balance, and it works like a shortcode which can be embedded in any post, page or widget. It is also possible to show the number of transactions instead of the balance, the total received amount, or nothing at all, like this:



  • 1QFK9zgcc7SsTXmo3F2bXAXb7ePrcu

    I sent you .25 btc for the plugin. Nice work. I’m happy to be your first donation! You should post this on some Bitcoin boards and let folks know about it:

    https://bitcointalk.org
    http://reddit.com/r/bitcoin

    But how do you know I’m the one that sent you a donation? Maybe I’m lying for some reason. Here’s how you can know. (For the benefit of those new to Bitcoin…Jon probably knows this already)

    Below is a message signed with the address from which I sent you the coins (taken from the transaction record*):

    —-BEGIN—-

    1QFK9zgcc7SsTXmo3F2bXAXb7ePrcub1pp

    I sent .25 btc to Jon on 2 Mar 2013

    H5BKbiokseUs/oJbJgMaWzs0DzVx+jgzZwNnIcJrSwBQSOfAAxBzdy/VZ3e4Du9ruCui8mtAGaTENZi4ri3Cgsc=
    —-END—-

    In your Bitcoin client or on the blockchain.info, find the “Verify Message” option and enter the above info into the three correct boxes to see that I’m the owner of the address that sent you the btc.

  • 1QFK9zgcc7SsTXmo3F2bXAXb7ePrcu

    Corrections:

    “In your Bitcoin client or on the blockchain.info,” should be “In your Bitcoin client or on the blockchain.info wallet,”

    *Transaction record: https://blockchain.info/tx/c469cb61c7ab1d6934fa1bc5e8a15cfe966421b74f5406f540626338b26b7614

  • http://jonls.dk/ Jon Lund Steffensen

    Thanks! And thank you for the demonstration of the signed message. I did not know of that feature. Just for future reference: In the blockchain.info wallet the Verify Message option is found in Receive Money > More Actions.

  • 1QFK9zgcc7SsTXmo3F2bXAXb7ePrcu

    Bitcoin’s message signing and verification feature is something that only militaries, governments and large corporate concerns had until the 90′s. The power behind it is staggering if you think about it. It provides possibilities for new ID systems on paid web boards, games and the like. Confirming orders for online sales between vendors and customers is another example.

    I’m glad you’re onto Bitcoin. It’s an inspired piece of software, imo.

  • Jim Burton

    In your Bitcoin URI you can also specify “&label=YourBlogName” or “&amount=0.01″ to specify a descriptive label and/or a recommended amount. Most Bitcoin clients will fill out their send form with these details when the user clicks on the link or scans the QR code.

  • http://jonls.dk/ Jon Lund Steffensen

    Thanks, done.

  • Joe

    Hmm, can I also verify that message? I tried, but couldnt verify the below message with neither blockchain.info or Bitcoinqt 0.8.0.

    http://i49.tinypic.com/2570efp.png

  • 1QFK9zgcc7SsTXmo3F2bXAXb7ePrcu

    The message is merely:

    I sent .25 btc to Jon on 2 Mar 2013

  • http://www.facebook.com/rs.mfuertes Marcos Fuertes

    pretty icon

  • Joe

    Ok, it worked now. Thx for the explaination! I must say though, its quite difficult and not very user(noob) friendly like this. I hope the dev team improves on it, smthg like one-click solutions would of course be ideal.

  • Joe

    I just installed it on my wp page, but dont see any additional information, like received amount, current balance, etc. although I included those appendixes to the short codes as you described. All I ever see on my page is this:

    http://i49.tinypic.com/106arls.png

  • http://jonls.dk/ Jon Lund Steffensen

    It seems that the button can’t fetch the information on the address. Maybe you can check manually if it is available? You should be able to go to http://www.«yourhost».com/wp-content/plugins/bitcoin-button/address-info.php?address=«your address here» and get the information as a small json file.
    Btw, on my web host for some reason it only works if I set the permission bits on the address-info.php file in a particular way, so you may run into similar issues.

  • http://www.facebook.com/jonwaller0 Jonathan Waller

    Fantastic button. Well done!

  • Pingback: Trying out the bitcoin plugin | James Rumas

  • James

    Hey, thanks for this! I’m trying it out on my site now. For some reason the ‘amount received’ does not show up even using the short code. I get the address and QR fine though. Any tips?

  • http://jonls.dk/ Jon Lund Steffensen

    The address-info.php which mediates the access to the balance/amount received does not seem to be available on your site. When I try to open http://jamesrumas.com/blog/wp-content/plugins/bitcoin-button/address-info.php?17Vjg93STLTssij6umaMVyJrTtsfymtdTb I get “404 Not Found”. If the file is there, maybe some other setting is not correct on your web host. In my case I have to setup the file permission bits in a particular way for it to work.

  • http://jonls.dk/ Jon Lund Steffensen

    I’ve updated the plugin to fetch fetch the information in a more portable fashion. Please try the new version.

  • http://jonls.dk/ Jon Lund Steffensen

    I’ve updated the plugin to hopefully fix these issues. Please try the new version.

  • James

    That did the trick, thanks

  • http://www.facebook.com/sobeash Ash Hayden

    Hi Jon and thanks for this. I’m just learning to code and am new bitcoin and am struggling to figure out how to implement this plugin. I copied the php file and created a php file in my wp-content/plugins. I’m obviously doing something wrong. I was wondering if you or someone who was successful in getting this on their page could help me out with step by step tutorial? Thanks in advance.

  • http://jonls.dk/ Jon Lund Steffensen

    If you’re just trying to install the plugin this should do it: Copy the directory “bitcoin-button” into “/wp-content/plugins”.

  • http://www.facebook.com/sobeash Ash Hayden

    My bad Jon. I’m also new to Github and didn’t see where to download the file originally. I figured it out. It’s beautiful!! It’s on my homepage sidebar for anyone to see http://iqlearningreview.com

    Thanks again Jon! I’ll have to get some donations now so I can donate to you!

  • http://jonls.dk/ Jon Lund Steffensen

    Great. I see that there is some black on black text in the bubble which is a bit hard to read. I’ll try to see if I can fix the style in the next version.

  • Findabitcoin

    We just opened our website on http://www.findabitcoin.com ! Add your website for free :)

  • amw

    Hi…i wanted to install this but i cannot seem to install in wordpress. What version is this for?

  • amw

    How do i go to

    /wp-content/plugins?

  • http://jonls.dk/ Jon Lund Steffensen

    This folder exists on your web host in your WordPress installation. The plugin should work with any version as long as it is not ancient.

  • Pingback: How to Add Donate Bitcoin Buttons to WordPress | WordPress Jedi

  • Pingback: 3 Ways to Add Donate to Bitcoin Button in WordPress

  • Morpheus

    my site is http://www.titanians.org

    not having any luck with the plugin. I saved the wordpress-bitcoin-shortcode-0.4.zip to my computer, when I upload and install it gives me error

    Unpacking the package…

    Installing the plugin…

    The package could not be installed. No valid plugins were found.

    Plugin install failed.

  • http://jonls.dk/ Jon Lund Steffensen

    I’ve never tried to upload the package files generated by github directly, I always upload the folder contained in the zip file through ftp. Perhaps the zip file has to conform to some secret standard before wordpress will accept it? You can try unpacking the file and repackaging the contained folder as a zip before upload.

  • Bevor

    I would love to use your plugin, but what annoys me is that you always see the same bitcoin address (the “real” address from the wallet). Usually it should always generate a new address which is forwarded to the main address.

  • http://jonls.dk/ Jon Lund Steffensen

    Yes, that would be nice to have. It would require a much more complex implementation though.

  • http://jonls.dk/ Jon Lund Steffensen

    This is actually implemented now through Coinbase.