Bitcoin Forum
December 16, 2024, 04:20:51 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 »  All
  Print  
Author Topic: Bitcoin for WP e-Commerce for WordPress  (Read 8039 times)
mikegogulski (OP)
Sr. Member
****
Offline Offline

Activity: 360
Merit: 250



View Profile WWW
November 26, 2010, 11:40:55 PM
 #1

A payment processor for the WP e-Commerce shopping cart plugin for WordPress.

github repository: https://github.com/mikegogulski/bitcoin-virtuemart
Support: http://www.nostate.com/3971/bitcoin-for-wp-e-commerce-shopping-cart-for-wordpress/

The README file:

Bitcoin for WP e-Commerce

A Bitcoin payment method for the WP e-Commerce shopping cart for WordPress.

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

    * WP e-Commerce 3.7.7 or greater
    * WordPress 3.0 or greater (may work on 2.8+, untested)

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 WordPress cron, at least until bitcoind allows attaching a JSON-RPC callback to an address.
    * No notification is sent to the customer or shop administrator if a transaction expires without payment.
    * Expired transactions are marked with a status code of "5" in the database, which doesn't correspond to a human-readable status code provided by WP e-Commerce.
    * No localization support.

Installation

    * Install WordPress http://codex.wordpress.org/Installing_WordPress.
    * Log into your WordPress installation as an administrator.
    * Install WP e-Commerce via Plugins->Add New in the WordPress dashboard.
    * Transfer the contents of the distribution archive to the wp-content/plugins/wp-e-commerce directory of your WordPress installation.

Configuration

    * Navigate to Store->Settings->Payment Options.
    * Under "General Settings", check "Bitcoin" and uncheck everything else.
    * Click "Update"
    * At right, Select the Bitcoin payment gateway.
    * Configure your bitcoind server information.
    * 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.
    * Configure your payment timeout and number of transaction confirmations required.
    * Adjust the checkout message template as required.
    * Click "Update".
    * Click "General" at the top and set the currency type to "Bitcoin".
    * Set the remaining parameters as you wish and click "Update".

Donate

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

Authors

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

Credits

Bitcoin for WP e-Commerce incorporates code from:

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

License

Bitcoin for WP e-Commerce is free and unencumbered public domain software. For more information, see http://unlicense.org/ or the accompanying UNLICENSE file.

FREE ROSS ULBRICHT, allegedly one of the Dread Pirates Roberts of the Silk Road
Cryptoman
Hero Member
*****
Offline Offline

Activity: 726
Merit: 500



View Profile
November 27, 2010, 02:10:40 AM
 #2

OMG, I was just talking to my girlfriend about how nice it would be to have a WP e-Commerce-compatible processor for Bitcoin.  I can't wait to test this out.  Does bitcoind need to be running on the server that the site is hosted on?  That wouldn't be possible in my case as it's a shared server.  Keep up the good work, Mike!

"A small body of determined spirits fired by an unquenchable faith in their mission can alter the course of history." --Gandhi
mikegogulski (OP)
Sr. Member
****
Offline Offline

Activity: 360
Merit: 250



View Profile WWW
November 27, 2010, 02:41:45 AM
 #3

Does bitcoind need to be running on the server that the site is hosted on?

No, but the webserver must have a static IP address and the bitcoind server must have either a static IP or a DNS name to IP address mapping taken care of by DynDNS, for example. Also, the bitcoind server needs to be configured to permit the webserver's IP to connect to the RPC interface: https://www.bitcoin.org/wiki/doku.php?id=rpcssl

FREE ROSS ULBRICHT, allegedly one of the Dread Pirates Roberts of the Silk Road
The Madhatter
Hero Member
*****
Offline Offline

Activity: 490
Merit: 511


My avatar pic says it all


View Profile
November 27, 2010, 03:13:06 AM
 #4

OMG, I was just talking to my girlfriend about how nice it would be to have a WP e-Commerce-compatible processor for Bitcoin.

Your girlfriend knew what you were talking about? I'm surprised. Shocked
mikegogulski (OP)
Sr. Member
****
Offline Offline

Activity: 360
Merit: 250



View Profile WWW
November 27, 2010, 03:45:31 AM
 #5

OMG, I was just talking to my girlfriend about how nice it would be to have a WP e-Commerce-compatible processor for Bitcoin.

Your girlfriend knew what you were talking about? I'm surprised. Shocked

He didn't say that...

FREE ROSS ULBRICHT, allegedly one of the Dread Pirates Roberts of the Silk Road
Cryptoman
Hero Member
*****
Offline Offline

Activity: 726
Merit: 500



View Profile
November 27, 2010, 04:21:15 AM
 #6

Actually, she's the most intelligent person I've ever met and did indeed understand what I was talking about.  At any rate, could I compile bitcoind to run on a MIPS-based router?  I have an ASUS RT-N16 running DD-WRT sitting on my cable modem.  If not, I'll just slap together a reasonably low power x86 Linux box.


"A small body of determined spirits fired by an unquenchable faith in their mission can alter the course of history." --Gandhi
mikegogulski (OP)
Sr. Member
****
Offline Offline

Activity: 360
Merit: 250



View Profile WWW
November 27, 2010, 04:40:36 AM
 #7

Actually, she's the most intelligent person I've ever met and did indeed understand what I was talking about.

Then you're both lucky!

At any rate, could I compile bitcoind to run on a MIPS-based router?  I have an ASUS RT-N16 running DD-WRT sitting on my cable modem.  If not, I'll just slap together a reasonably low power x86 Linux box.

In its current state, bitcoin is x86-specific. Certainly it can be decoupled from the hardware architecture, but that's not a task taken lightly.

If all you need is a bitcoind network appliance, I'd just look around for the cheapest functioning p3/p4 notebook I could find for less than $50.

FREE ROSS ULBRICHT, allegedly one of the Dread Pirates Roberts of the Silk Road
bitdragon
Hero Member
*****
Offline Offline

Activity: 609
Merit: 501


peace


View Profile WWW
January 16, 2011, 07:01:16 PM
 #8

Can someone guide me on how to configure bitcoin to run on my hosting with wordpress and WP e-commerce.

I made a bitcoin.conf file that I put into .bitcoin folder at the root.
This file includes my username and password.
Is this the correct way to configure password?

Where do I upload bitcoin(d) to?

Is that all there is to it?

Thank you very much for any help,



BitPorium
Hero Member
*****
Offline Offline

Activity: 590
Merit: 500


View Profile
May 10, 2011, 06:10:28 PM
 #9

I know this is one hell of a revival but I think my question is valid.
HEre is my issue.
The script pulls a new address from the server, I can see it in my address book.
The transaction goes into the list of sales in the dashboard.
But the transaction results always report that the transaction was not accepted. Why is that?

Thanks
mikegogulski (OP)
Sr. Member
****
Offline Offline

Activity: 360
Merit: 250



View Profile WWW
May 15, 2011, 09:54:17 AM
 #10

Folks,

As I'm not checking here often, I've missed replies asking for support.

The best place for general support is to post a comment at the support link listed in the announcement.

I can provide implementation assistance at €20/hr or the equivalent in BTC. For that, get in touch with me via http://gogulski.com/contact

Peace,
Mike

FREE ROSS ULBRICHT, allegedly one of the Dread Pirates Roberts of the Silk Road
Valhalla1
Newbie
*
Offline Offline

Activity: 51
Merit: 0


View Profile
June 05, 2011, 10:11:43 PM
Last edit: June 05, 2011, 11:50:14 PM by Valhalla1
 #11

Hey Mike,
I tried posting this as a comment on your support link, but it seems like it was filtered as spam because it never showed up.

I am having the same problem as 'bearbones' had in his comment.  

I am using the latest version of WP (3.1.3), latest WP-e-commerce (3.8.4) and am using PHP 5.3.6, my server runs FreeBSD.  

I extracted bitcoin-wp-e-commerce-0.9.0.tar.gz to the plugins folder, but Bitcoin is not available under Store-> Payment Options.


from 'bearbones's comment, I tried entering this in phpmyadmin 'sql' section -

INSERT INTO wp_wpsc_currency_list VALUES (NULL, 'Bitcoin', 'BC', 'Bitcoin', '', '', 'BTC', '0', '0', 'antarctica', '1');


this makes BTC show on WP Dashboard->Settings->Store->General->Currency , but still when I go to my wordpress dashboard->settings->store->payment options, all I have are Chronopay, Google Checkout, some Paypal options and Test
mikegogulski (OP)
Sr. Member
****
Offline Offline

Activity: 360
Merit: 250



View Profile WWW
June 06, 2011, 01:05:39 AM
 #12

Hey Mike,
I tried posting this as a comment on your support link, but it seems like it was filtered as spam because it never showed up.

I am having the same problem as 'bearbones' had in his comment.  

I am using the latest version of WP (3.1.3), latest WP-e-commerce (3.8.4) and am using PHP 5.3.6, my server runs FreeBSD.  

I extracted bitcoin-wp-e-commerce-0.9.0.tar.gz to the plugins folder, but Bitcoin is not available under Store-> Payment Options

In the plugins folder? You mean wp-content/plugins? That's the wrong place, if so. The archive needs to be extracted into the wp-e-commerce directory.

FREE ROSS ULBRICHT, allegedly one of the Dread Pirates Roberts of the Silk Road
Valhalla1
Newbie
*
Offline Offline

Activity: 51
Merit: 0


View Profile
June 06, 2011, 04:12:43 AM
 #13

Hey Mike,
I tried posting this as a comment on your support link, but it seems like it was filtered as spam because it never showed up.

I am having the same problem as 'bearbones' had in his comment.  

I am using the latest version of WP (3.1.3), latest WP-e-commerce (3.8.4) and am using PHP 5.3.6, my server runs FreeBSD.  

I extracted bitcoin-wp-e-commerce-0.9.0.tar.gz to the plugins folder, but Bitcoin is not available under Store-> Payment Options

In the plugins folder? You mean wp-content/plugins? That's the wrong place, if so. The archive needs to be extracted into the wp-e-commerce directory.

sorry, to be more specific, I meant the "wp-content/plugins/wp-e-commerce" directory.  Is this the wrong place?  

http://img98.imageshack.us/img98/3356/ecommerce.png


I've also tried it with putting the contents of the 'wp-content/plugins/wp-e-commerce/merchants' folder into the 'wp-content/plugins/wp-ecommerce' directory and that didn't change anything.
mikegogulski (OP)
Sr. Member
****
Offline Offline

Activity: 360
Merit: 250



View Profile WWW
June 13, 2011, 02:58:07 AM
 #14

You're going to be better off forking and fixing this yourself, or finding a dev to do it for you. I'm fully engaged in a new project.

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

Activity: 470
Merit: 250



View Profile
June 13, 2011, 04:01:02 AM
 #15

Quote
Limitations

    * It is assumed that Bitcoin is the only currency accepted.

I'm running the website houseofreplicas.net and would really like to accept bitcoins. But not only bitcoins, that would limit it way too much. After all there's only a small fraction of Mankind that's even aware of bitcoins. Is somebody still engaged in this? I'm already running eshop on wp so would be perfect if it allowed different currencies. Would would be my best option if I wanted to accept bitcoins?


░░░░░░░░░░░░░░░░░░░░░░░░░░
░░░░░░░░░░░░░░░░░░░░░▄████▀
░░░░░░░░░░░░░░░░▄███████▀
░░░░░░░░░░░░░░█████████▀
░░░░░░░▄████░░████████▀
░░▄█████████████████▀
░░░████████████████▀
░░░░██████████████▀
░░░░░██████░░█████▀
░░░░░░██████████▀
░░░░░░░████████▀
░░░░░░░░██████▀
░░░░░░░░░████▀
░░░░░░░░░░█▀


























▄████████████▀▀█▄
████▀▀▀▀▀░░░▄ ░██
██▄░░░░░░░▄▀░░███
████▄░░░▄▀░░░████
██████▄█░░░░█████
████████░▄░██████
▀███████████████▀
▄████▀▀▀█▀▀▀████▄
████░▄▀▀▀▀▀▄░████
██▀░░░░░░░░░░░▀██
█▀░░░█▀█░█▀█░░░▀█
█░░░░▀▀▀░▀▀▀░░░░█
█▄░░▀▄░░░░░▄▀░░██
▀██▄▄▄█████▄▄▄██▀

▄█▀███████▀▀████▄
██░░▀███▀░░░░▀▄██
███░░░░▀░░░░░░▄██
████░░░░░░░░░░░██
█████▄░░░░░░░░▄██
██▄░░░░░░░░░▄████
▀███▄▄▄▄▄▄▄█████▀

▄███████████████▄
█████▀░▀▀▀▀░▀████
████░░░░░░░░░░███
████▄░░░░░░░░▄███
█▀████▄▄░░▄▄█████
██▄▀▀▀▀░░░░██████
▀██████▄▄▄▄█████▀

▄████▀▀▀▀▀▀▀▀▀▀█▄
███▀▀▀▀▀▀▀▀▀██░██
██░▄███████▄░█░██
██░█▄▄▄▄▄███░█░██
██░▀███████▀░████
███▄▄░░░▄▄▄▄█████
▀█████▄█████████▀


▄████▀▀▀▀▀▀▀████▄
███▀░▄▀█▀██▄░▀███
██░▄█▀░▀░▀▀██▄░██
██░███░▀▀▀ ▀██░██
██░███░████░██░██
██▄░█▄░▄░▄▄▄▀░▄██
▀███▄▄▄▄▄▄▄▄▄███▀

mikegogulski (OP)
Sr. Member
****
Offline Offline

Activity: 360
Merit: 250



View Profile WWW
June 13, 2011, 05:17:27 AM
 #16

Quote
Limitations

    * It is assumed that Bitcoin is the only currency accepted.

I'm running the website houseofreplicas.net and would really like to accept bitcoins. But not only bitcoins, that would limit it way too much. After all there's only a small fraction of Mankind that's even aware of bitcoins. Is somebody still engaged in this? I'm already running eshop on wp so would be perfect if it allowed different currencies. Would would be my best option if I wanted to accept bitcoins?

I'm not sure who might be engaged, but I created www.btcrate.com as a means for online shops to handle BTC/fiat currency conversions. My plugins would probably need some tweaking in order to talk to it and enable true multi-currency support.

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

Activity: 470
Merit: 250



View Profile
June 13, 2011, 05:39:52 AM
 #17

Quote
Limitations

    * It is assumed that Bitcoin is the only currency accepted.

I'm running the website houseofreplicas.net and would really like to accept bitcoins. But not only bitcoins, that would limit it way too much. After all there's only a small fraction of Mankind that's even aware of bitcoins. Is somebody still engaged in this? I'm already running eshop on wp so would be perfect if it allowed different currencies. Would would be my best option if I wanted to accept bitcoins?

I'm not sure who might be engaged, but I created www.btcrate.com as a means for online shops to handle BTC/fiat currency conversions. My plugins would probably need some tweaking in order to talk to it and enable true multi-currency support.

Well that would be a very useful combination. Unfortunately I don't know much about coding to do it myself, anybody feel like helping the bitcoin-community. Easy integration is probably an important factor for wide acceptance of the bitcoin. I'll donate Wink


░░░░░░░░░░░░░░░░░░░░░░░░░░
░░░░░░░░░░░░░░░░░░░░░▄████▀
░░░░░░░░░░░░░░░░▄███████▀
░░░░░░░░░░░░░░█████████▀
░░░░░░░▄████░░████████▀
░░▄█████████████████▀
░░░████████████████▀
░░░░██████████████▀
░░░░░██████░░█████▀
░░░░░░██████████▀
░░░░░░░████████▀
░░░░░░░░██████▀
░░░░░░░░░████▀
░░░░░░░░░░█▀


























▄████████████▀▀█▄
████▀▀▀▀▀░░░▄ ░██
██▄░░░░░░░▄▀░░███
████▄░░░▄▀░░░████
██████▄█░░░░█████
████████░▄░██████
▀███████████████▀
▄████▀▀▀█▀▀▀████▄
████░▄▀▀▀▀▀▄░████
██▀░░░░░░░░░░░▀██
█▀░░░█▀█░█▀█░░░▀█
█░░░░▀▀▀░▀▀▀░░░░█
█▄░░▀▄░░░░░▄▀░░██
▀██▄▄▄█████▄▄▄██▀

▄█▀███████▀▀████▄
██░░▀███▀░░░░▀▄██
███░░░░▀░░░░░░▄██
████░░░░░░░░░░░██
█████▄░░░░░░░░▄██
██▄░░░░░░░░░▄████
▀███▄▄▄▄▄▄▄█████▀

▄███████████████▄
█████▀░▀▀▀▀░▀████
████░░░░░░░░░░███
████▄░░░░░░░░▄███
█▀████▄▄░░▄▄█████
██▄▀▀▀▀░░░░██████
▀██████▄▄▄▄█████▀

▄████▀▀▀▀▀▀▀▀▀▀█▄
███▀▀▀▀▀▀▀▀▀██░██
██░▄███████▄░█░██
██░█▄▄▄▄▄███░█░██
██░▀███████▀░████
███▄▄░░░▄▄▄▄█████
▀█████▄█████████▀


▄████▀▀▀▀▀▀▀████▄
███▀░▄▀█▀██▄░▀███
██░▄█▀░▀░▀▀██▄░██
██░███░▀▀▀ ▀██░██
██░███░████░██░██
██▄░█▄░▄░▄▄▄▀░▄██
▀███▄▄▄▄▄▄▄▄▄███▀

freedominnumbers
Newbie
*
Offline Offline

Activity: 33
Merit: 0



View Profile
June 29, 2011, 03:50:04 AM
 #18

I'm attempting to implement this for a BTC project and wanted to share my findings on the problem above.
bitcoin.php needs to be in the wpsc-merchants folder for the latest version.
samablog
Newbie
*
Offline Offline

Activity: 30
Merit: 0



View Profile WWW
August 09, 2011, 12:18:29 PM
 #19

I am having troubles getting this up and running as well.  I have the plugin in the wpsc-merchants folder as indicated above.  The plugin shows up in the dashboard and seems to be configurable.  I have bitcoind running on the server, and I tested this by sending a bitocin to and from the server, so I know it's running.  It's running on the same domain as the website, so i have it set to localhost, and the username and password match what's in the bitcoin.conf file.  Yet when I go to check out with a shopping cart, it returns a blank screen.  I figure that there must be a conflict somewhere, or that I have something misconfigured.  Any thoughts?

Thanks in advance for the help.
jaminunit
Member
**
Offline Offline

Activity: 132
Merit: 14

Co-Founder of TheStandard.io & Vaultoro.com


View Profile WWW
June 21, 2013, 02:32:34 PM
 #20

This is  really cool!
love it.

Things I would love to see in this project.

  • Accept multiple currencies. not just bitcoin because its hard to accept bitcoin if your going to lock out all other possibilities.
  • I would love to hook into the blockchain.info wallet api so that I dont have to run the bitcoin client on the server. (a lot of hosting providers don't let you access IRC and a lot of people are on shared hosting.)



I've been a Bitcoiner since 2010, and currently working on TheStandard.io, a next-generation stablecoin, and lending protocol.
The Standard Protocol Announcement thread
Pages: [1] 2 »  All
  Print  
 
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!