A Bitcoin payment module for prestashop

Posted by admin on Feb 15, 2011 in Uncategorized |

–EDIT—
There was a bug in this module briefly, because of which the invoices were showing the wrong currency in the back office (although the correct amount was being charged). This has been fixed.
—-

Bitcoin is running at about $1.05 per coin right now. It’s quite possible, in my opinion, that the ease of transferring them verifiably electronically, as well as the level of acceptance so far (about 5 million USD worth in circulation at current prices), will lead to them playing a major role in e-commerce in the future.

Prestashop is a very user friendly and neat free (beer and freedom) PHP shopping cart for small business web sites. For more information on that, or to download it, check out prestashop.com.

You can download my Mybitcoin SCI module, it uses the Mybitcoin SCI Toolkit, so thanks are in order to the good people at mybitcoin.com. Download links:

mbcmod.tgz
md5sum

Installation is a few steps:

1. Set up the SCI settings in your mybitcoin account.

2. Change the sci-config.inc.php file, by inserting your SCI key, user name, and receiving address.

3. If you have GPG enabled in the config file, make sure you have mybitcoins public key installed and that your server has GPG installed, otherwise you may need to disable GPG support.

4. Copy the entire directory to /your/prestashop/modules

5. Go into the back office view of your prestashop, under the modules tab, under Payment, you will see mybitcoin as an option. Install it and make sure it’s enabled. There is no configuration needed since all that data is store in the config file.

6. You’re done, but you should probably make a test payment to yourself to make sure everything is working and the receipt script is reachable.

A few caveats: Do a small purchase from yourself to make sure it’s working, if for some reason the receipt script is unreachable the order won’t show up in your back office, and whoever sent coins will be angry. Also, the module currently just uses the 3 letter currency code from prestashop in the payment link, so this will only work reliably if all currencies enabled in your shop are supported by mybitcoin.com and have the correct ISO code set up. By default prestashop comes with GBP EUR and USD enabled, all of those should work I think, I tried EUR and USD and no problems. If someone lives somewhere with an unsupported national currency I’ll try to see if I can add something.

Donations welcome:
19zCqdZPXv18hDRQ4ALF16WepWVsUVi3jZ

1 Comment

admin
Feb 16, 2011 at 3:23 am

I seem to have missed a bug, my transactions are in dollars but are showing up in the back office as if they were in euros, I’ll try to figure out what’s behind that and update over the next couple days. The correct amount is being charged though.


 

Reply

Copyright © 2013 Electronics and Gadgets All rights reserved. Theme by Laptop Geek.