Bitcoin Forum
July 21, 2024, 10:45:09 PM *
News: Help 1Dq create 15th anniversary forum artwork.
   Home   Help Search Login Register More  
Pages: [1]
Author Topic: uc_bitcoin: A Bitcoin payment method for Ubercart/Drupal  (Read 4348 times)
mikegogulski (OP)
Sr. Member
Offline Offline

Activity: 360
Merit: 250

View Profile WWW
November 24, 2010, 08:47:06 PM

First release of a Bitcoin payment method module for the Ubercart shopping cart for Drupal

Github repository:
Support and module download:

Feedback welcome!

The README file:


A Bitcoin payment method for the Ubercart shopping cart for Drupal.

Version: 0.9.0

    * Generates a new bitcoin address for every order
    * Provides payment address to customer on site at checkout, plus in a subsequent email
    * Configurable timeout after which unpaid transactions will be canceled automatically
    * Configurable number of Bitcoin network confirmations after which an order is considered paid
    * HTTP or HTTPS access to bitcoind

Base requirements

    * Ubercart 2.x
    * Drupal 6.x

PHP requirements:

    * PHP5
    * cURL support
    * SSL support (if you're using HTTPS to talk to bitcoind)


    * It is assumed that Bitcoin is the only currency accepted.
    * All prices are assumed to be in Bitcoins, and no currency conversions are performed.
    * Checks for payment receipt are performed via Drupal cron, at least until bitcoind allows attaching a JSON-RPC callback to an address.
    * Orders for downloadables are not tagged as "shipped" once paid.
    * No localization support.


    * Install Drupal 6
    * Install Ubercart 2
    * Transfer the contents of the distribution archives to the modules/ directory of your Drupal installation.


    * Log into your Drupal installation as an administrator.
    * Navigate to Administer->Site building->Modules and enable the Bitcoin module
    * Navigate to Administer->Store administration->Configuration->Payment settings
    * Click "Edit" at top, then "Payment methods"
    * Enable the Bitcoin payment method and disable all others
    * Expand the "Bitcoin settings" dropdown and proceed as follows:
          o Configure your bitcoind server information.
          o If you are using HTTPS to talk to bitcoind and would like to validate the connection using bitcoind's own SSL certificate, enter the absolute path to the certificate file (server.cert) you've uploaded to the server.
          o Configure your payment timeout and number of transaction confirmations required.
          o Save configuration.
    * Navigate to Administer->Store administration->Configuration->Store settings
    * Clik "Edit", then "Format settings"
    * Expand the "Currency format" dropdown
    * Set "Default currency" and "Currency sign" to "BTC"
    * Save configuration


    * Bitcoin payments: 1DDuMEPaQzdH3vLTiQwQvACgnv7tR25SpE
    * Gifts via other methods:


    * Mike Gogulski -


uc_bitcoin incorporates code from:

    * XML-RPC for PHP by Edd Dumbill (for JSON-RPC support)
    * bitcoin-php by Mike Gogulski (Bitcoin support library)


uc_bitcoin is free and unencumbered public domain software. For more information, see or the accompanying UNLICENSE file.

FREE ROSS ULBRICHT, allegedly one of the Dread Pirates Roberts of the Silk Road
Sr. Member
Offline Offline

Activity: 350
Merit: 252

View Profile WWW
March 16, 2011, 10:16:27 PM

I am testing module right now. Looks cool Smiley

Little nuance concern me: I know that Drupal and the PHP is pretty buggy, so want to be able to check payments through the CLI.

New bitcoin lottery:
- Moжeт, ты eщё и в Heвидимyю Pyкy Pынкa вepyeшь? - Зaчeм жe вepoвaть в тo, чтo мoжнo нaблюдaть нeпocpeдcтвeннo?
Offline Offline

Activity: 52
Merit: 0

View Profile
May 25, 2011, 01:16:07 AM

very nice
Offline Offline

Activity: 62
Merit: 10

View Profile WWW
July 16, 2011, 07:11:28 PM

thanks for the code, this option is realy nice to have!
i think about a way to integrate the free bitcoin mine into drupal wonder if that sounds interesting? Wink the actual standallone 5.0.1 version looks like this:
I see the combination of the farm with a BTC based shop like you created it by using drupal quite usefull.


Dnt mind any donation!
Offline Offline

Activity: 7
Merit: 0

View Profile
August 22, 2011, 02:13:07 AM

hi mike
i installed the uc_bitcoin module but im getting:
Fatal error: Cannot redeclare class BitcoinClientException in /var/www/vhosts/ on line 211
when i try to send the order, the whole checkout process works till this point, i guess the problem is caused by php 5.3
Offline Offline

Activity: 11
Merit: 0

View Profile
September 03, 2011, 12:55:46 AM
Last edit: September 03, 2011, 01:12:42 AM by NittyBitty

I started with this module and i got stuck on "Configure your bitcoin server information", "User name for your Bitcoin server's JSON-RPC-HTTP interface" and "Bitcoin server password". Where do I find this? I assume I must also install a bitcoin client running on my server first?

Links to guides for noobs are very welcome!
Full Member
Offline Offline

Activity: 210
Merit: 100

View Profile
May 07, 2012, 08:43:01 PM

I have drupal 7 and problems to istall the new modul can someone help ?

Sr. Member
Offline Offline

Activity: 313
Merit: 250

View Profile
May 08, 2012, 09:29:54 AM


I have drupal 7 and problems to istall the new modul can someone help ?


I think this only works on drupal 6, because drupal 7 has different ubercart version.

Base requirements

    * Ubercart 2.x
    * Drupal 6.x
Sr. Member
Offline Offline

Activity: 382
Merit: 253

View Profile WWW
May 11, 2012, 12:10:37 AM

I probably would have gotten into bitcoins 6 months earlier if this module had been stable and maintained. As it is, if you're using Drupal and Ubercart, Paysius works very well.

Shire Silver, a better bullion that fits in your wallet. Get some, now accepting bitcoin!
Pages: [1]
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!