Bitcoin Forum

Bitcoin => Bitcoin Discussion => Topic started by: mikegogulski on November 24, 2010, 08:47:06 PM



Title: uc_bitcoin: A Bitcoin payment method for Ubercart/Drupal
Post by: mikegogulski on November 24, 2010, 08:47:06 PM
First release of a Bitcoin payment method module for the Ubercart shopping cart for Drupal

Github repository: https://github.com/mikegogulski/uc_bitcoin
Support and module download: http://www.nostate.com/3955/uc_bitcoin-a-bitcoin-payment-method-for-ubercartdrupal/

Feedback welcome!

The README file:

uc_bitcoin

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

Version: 0.9.0
Features

    * 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

Requirements
Base requirements

    * Ubercart 2.x
    * Drupal 6.x

PHP requirements:

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

Limitations

    * 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.

Installation

    * Install Drupal 6 http://drupal.org/documentation/install.
    * Install Ubercart 2 http://www.ubercart.org/docs/user/8075/installing_ubercart.
    * Transfer the contents of the distribution archives to the modules/ directory of your Drupal installation.

Configuration

    * 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

Donate

    * Bitcoin payments: 1DDuMEPaQzdH3vLTiQwQvACgnv7tR25SpE
    * Gifts via other methods: http://www.nostate.com/support-nostatecom/

Authors

    * Mike Gogulski - http://www.nostate.com/ http://www.gogulski.com/

Credits

uc_bitcoin incorporates code from:

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

License

uc_bitcoin is free and unencumbered public domain software. For more information, see http://unlicense.org/ or the accompanying UNLICENSE file.


Title: Re: uc_bitcoin: A Bitcoin payment method for Ubercart/Drupal
Post by: bitcoinex on March 16, 2011, 10:16:27 PM
I am testing module right now. Looks cool :)

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.
Details: http://bitcointalk.org/index.php?topic=703.msg7709#msg7709


Title: Re: uc_bitcoin: A Bitcoin payment method for Ubercart/Drupal
Post by: ISA on May 25, 2011, 01:16:07 AM
very nice


Title: Re: uc_bitcoin: A Bitcoin payment method for Ubercart/Drupal
Post by: openrune on 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 https://github.com/Xenland/MiningFarm/ wonder if that sounds interesting? ;) the actual standallone 5.0.1 version looks like this: http://miningfarm.com/
I see the combination of the farm with a BTC based shop like you created it by using drupal quite usefull.


tenobis
http://mine.tenobis.com/


Title: Re: uc_bitcoin: A Bitcoin payment method for Ubercart/Drupal
Post by: Tenobis on 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/icoin.ch/httpdocs/modules/uc_bitcoin/bitcoin.inc 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


Title: Re: uc_bitcoin: A Bitcoin payment method for Ubercart/Drupal
Post by: NittyBitty on September 03, 2011, 12:55:46 AM
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!


Title: Re: uc_bitcoin: A Bitcoin payment method for Ubercart/Drupal
Post by: ZiggiStar on May 07, 2012, 08:43:01 PM
I have drupal 7 and problems to istall the new modul can someone help ?

mfg


Title: Re: uc_bitcoin: A Bitcoin payment method for Ubercart/Drupal
Post by: nomnomnom on May 08, 2012, 09:29:54 AM
Hello,

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

mfg

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

Requirements
Base requirements

    * Ubercart 2.x
    * Drupal 6.x


Title: Re: uc_bitcoin: A Bitcoin payment method for Ubercart/Drupal
Post by: ShireSilver on 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.