Bitcoin Forum

Bitcoin => Project Development => Topic started by: cablepair on September 19, 2012, 04:35:39 PM



Title: Bounty PAID: BITCOIN OPEN CART PAYMENT MODULE!
Post by: cablepair on September 19, 2012, 04:35:39 PM

Bit-pay has been DDOS'd for awhile now, and a lot of us merchants who depend on them are losing money.

I am personally offering a bounty of 50 BTC for someone to develop an opensource payment module for Opencart that will interact with Bitcoind.

There already is a payment module like this for zencart but it is very very primitive.

This Module should:

Allow to be installed like regular opencart plugin
interact with Bitcoind on local or remote server
be able to convert prices from USB to BTC correctly for invoice
should be able to generate new btc address for every transaction
should be completely integrated with Opencart


if any other merchants would like to contribute to this bounty please feel free.

thank you.


Title: Re: 50 BTC BOUNTY: BITCOIN OPEN CART PAYMENT MODULE!
Post by: jga on September 20, 2012, 12:59:47 AM
I'm taking a look at this. I already have some of this functionality in existing code that I might be able to adapt.


Title: Re: 50 BTC BOUNTY: BITCOIN OPEN CART PAYMENT MODULE!
Post by: mc_lovin on September 20, 2012, 02:43:18 AM
1 block bounty ;)

I would purchase this module once completed.


Title: Re: 50 BTC BOUNTY: BITCOIN OPEN CART PAYMENT MODULE!
Post by: jfreak53 on September 20, 2012, 01:48:13 PM
Did someone already do this for you? If not we already have a working module for WHMCS that is automatic bitcoind payment, it converts current market price from mtgox at that moment and creates a new address for each payment. Along with confirming payments after. If someone hasn't already made this we have it already done for another system, it wouldn't be too hard to move it over to opencart.


Title: Working on it
Post by: Yurock on September 20, 2012, 02:07:13 PM
I work on an OpenCart payment module that uses bitcoind. You can take a look at work in progress here (http://bitcoin.metal-bunker.info/opencart/). After it will be finished, I can adapt it to suit your requirements.

There is a topic about it in Russian (https://bitcointalk.org/index.php?topic=109902).


Title: Re: 50 BTC BOUNTY: BITCOIN OPEN CART PAYMENT MODULE!
Post by: TheKoziTwo on September 20, 2012, 02:17:43 PM
I'm getting close to finish, coding this atm.


Title: Re: 50 BTC BOUNTY: BITCOIN OPEN CART PAYMENT MODULE!
Post by: jga on September 20, 2012, 11:05:04 PM
I'm pretty far along as well. I will be open sourcing my code once it's functional.


Title: Re: 50 BTC BOUNTY: BITCOIN OPEN CART PAYMENT MODULE!
Post by: TheKoziTwo on September 21, 2012, 12:47:48 AM
Here is my current setting page, please let me know if there is anything important I have forgotten.
https://i.imgur.com/cgL0X.png

Closing in on this now, guess we'll have to see who finishes off first, I will complete it regardless.

As for the price, currently I have created a cron job, so I'm thinking it could run every 10 minutes to fetch price from mtgox. As you can see I have also added some minimum and maximum prices to protect shop owner from potential flash crashes in the market. The script automatically creates the BTC currency, and if you choose to disable mtgox price fetch you may adjust the price manually in the currency section of open cart, otherwise it will be updated through cron.

Any comments on this solution is welcome, I'm open for any suggestions.


Title: Re: 50 BTC BOUNTY: BITCOIN OPEN CART PAYMENT MODULE!
Post by: jga on September 21, 2012, 01:12:13 AM
EDIT: UPDATED

and boom goes the dynamite.

http://www.btcgear.com/OpenCart_Bitcoin_v1.1.1.zip

I will be putting this up in a GitHub repo shortly and adding some other features that I'd like to have, but this satisfies the initial requirements set forth by cablepair.

edit: file updated... a couple times.

EDIT: Version 1.1.0 checks for sent bitcoins before creating an order.


Title: Re: 50 BTC BOUNTY: BITCOIN OPEN CART PAYMENT MODULE!
Post by: jga on September 21, 2012, 01:29:01 AM
Github repo

https://github.com/btcgear/OpenCart_Bitcoin


Title: Re: 50 BTC BOUNTY: BITCOIN OPEN CART PAYMENT MODULE!
Post by: jga on September 21, 2012, 01:49:46 AM
see it in action at http://test154.btcgear.com

EDIT: My bitcoind server is currently down so this isn't currently working properly. The code is good, though.

EDIT: This is now back up and running. Current code now gives an error message if it can't communicate.

EDIT: This is now running the most recent version and I created a $0.05 product so you can test it fully.  PM me with the address you sent the $0.05 worth of bitcoins to and I'll get them back to you... if you're cheap like that.


Title: Re: 50 BTC BOUNTY: BITCOIN OPEN CART PAYMENT MODULE!
Post by: WikileaksDude on September 21, 2012, 02:12:14 AM
see it in action at http://test154.btcgear.com

That was quick ;D


Title: Re: 50 BTC BOUNTY: BITCOIN OPEN CART PAYMENT MODULE!
Post by: jga on September 21, 2012, 03:04:30 AM
see it in action at http://test154.btcgear.com

That was quick ;D

That's what she said.


oh wait...


Title: Re: 50 BTC BOUNTY: BITCOIN OPEN CART PAYMENT MODULE!
Post by: BCB on September 21, 2012, 03:34:21 AM
cablepair

Is that working for you?


Title: Re: 50 BTC BOUNTY: BITCOIN OPEN CART PAYMENT MODULE!
Post by: dadj on September 21, 2012, 02:44:16 PM
I would like to add a feature request and along with it 10 BTC bounty for this feature: Add an easy to implement hack into Opencart that adds Bitcoin as a currency and gives the user the choice to display prices in Bitcoin or any other currency.


Title: Re: 50 BTC BOUNTY: BITCOIN OPEN CART PAYMENT MODULE!
Post by: Kris on September 21, 2012, 03:11:04 PM
Probably not what you want, but I just wanted to let you know it exist.

https://walletbit.com/connect/OpenCartPaymentModule.zip


Title: Re: 50 BTC BOUNTY: BITCOIN OPEN CART PAYMENT MODULE!
Post by: BCB on September 21, 2012, 03:41:26 PM
Kris

Do you have a demo link?


Title: Re: 50 BTC BOUNTY: BITCOIN OPEN CART PAYMENT MODULE!
Post by: jga on September 21, 2012, 04:17:52 PM
I would like to add a feature request and along with it 10 BTC bounty for this feature: Add an easy to implement hack into Opencart that adds Bitcoin as a currency and gives the user the choice to display prices in Bitcoin or any other currency.

Done. This is already in my latest version.  In the admin console upon install, you can choose whether or not to enable BTC as a user-visible currency.

Edit: I also have this available as a stand-alone module, but I haven't open sourced it yet.

Edit: now I have open sourced it and it is available at https://github.com/btcgear/Bitcoin_Exchange_Rate_OpenCart
This code is fully tested and has been in use at http://www.btcgear.com for months.

Please send bounty to 14dTC7bBphANAHzmK9aD7X7Wvo99rhHMTF


Title: WalletBit
Post by: Yurock on September 21, 2012, 06:01:14 PM
Do you have a demo link?
For example, I think, GADJA | shop (http://gadja.hostoi.com) uses that WalletBit extension.


Title: Re: WalletBit
Post by: BCB on September 21, 2012, 06:15:49 PM
Do you have a demo link?
For example, I think, GADJA | shop (http://gadja.hostoi.com) uses that WalletBit extension.

Thanks.

Very nice.



Title: Re: 50 BTC BOUNTY: BITCOIN OPEN CART PAYMENT MODULE!
Post by: jga on September 22, 2012, 02:16:31 AM
Dear Friends,


Bit-pay has been DDOS'd for awhile now, and a lot of us merchants who depend on them are losing money.

I am personally offering a bounty of 50 BTC for someone to develop an opensource payment module for Opencart that will interact with Bitcoind.

There already is a payment module like this for zencart but it is very very primitive.

This Module should:

Allow to be installed like regular opencart plugin
interact with Bitcoind on local or remote server
be able to convert prices from USB to BTC correctly for invoice
should be able to generate new btc address for every transaction
should be completely integrated with Opencart


if any other merchants would like to contribute to this bounty please feel free.

thank you.

As I'm certain the code I've written (you can find it at https://github.com/btcgear/OpenCart_Bitcoin) fills and exceeds the requirements, please send the bounty to 12ctRXVVPAXQ6CQyEXkBhvi33K7kP4CMB5 .

There are a few other features that I'm continuing to work on, so stay tuned. Also, let me know if you have any issues and I will work diligently to fix them.

I am still accepting feature requests with and without bounty (obviously, the bounty ones will be higher priority). Let me know what features you would like to see.

1 block bounty ;)

I would purchase this module once completed.

You are certainly welcome to donate.


Title: Re: 50 BTC BOUNTY: BITCOIN OPEN CART PAYMENT MODULE!
Post by: cablepair on September 22, 2012, 04:07:12 AM
gangsta.

I will test this tomorrow and if it works I will pay the bounty promptly.

thanks

Tom


Title: Re: 50 BTC BOUNTY: BITCOIN OPEN CART PAYMENT MODULE!
Post by: cablepair on September 24, 2012, 02:13:50 PM
Dear Friends,


Bit-pay has been DDOS'd for awhile now, and a lot of us merchants who depend on them are losing money.

I am personally offering a bounty of 50 BTC for someone to develop an opensource payment module for Opencart that will interact with Bitcoind.

There already is a payment module like this for zencart but it is very very primitive.

This Module should:

Allow to be installed like regular opencart plugin
interact with Bitcoind on local or remote server
be able to convert prices from USB to BTC correctly for invoice
should be able to generate new btc address for every transaction
should be completely integrated with Opencart


if any other merchants would like to contribute to this bounty please feel free.

thank you.

As I'm certain the code I've written (you can find it at https://github.com/btcgear/OpenCart_Bitcoin) fills and exceeds the requirements, please send the bounty to 12ctRXVVPAXQ6CQyEXkBhvi33K7kP4CMB5 .

There are a few other features that I'm continuing to work on, so stay tuned. Also, let me know if you have any issues and I will work diligently to fix them.

I am still accepting feature requests with and without bounty (obviously, the bounty ones will be higher priority). Let me know what features you would like to see.

1 block bounty ;)

I would purchase this module once completed.

You are certainly welcome to donate.

I just remembered I have to check this one out.

(Sorry Doug :P )


Title: Re: 50 BTC BOUNTY: BITCOIN OPEN CART PAYMENT MODULE!
Post by: HostFat on September 24, 2012, 02:47:45 PM
Some feature requests:
- Bitcoin URIs support
- Something like Bitcoin SCI (http://bitfreak.info/index.php?page=tools&t=bitsci) ( connected with blockexplorer/blockchain.info APIs ) to avoid bitcoind.

I'm not going to use your great module, but I think that someone will like these features :)


Title: Re: 50 BTC BOUNTY: BITCOIN OPEN CART PAYMENT MODULE!
Post by: jga on September 25, 2012, 01:11:51 AM


I just remembered I have to check this one out.

(Sorry Doug :P )

That's cool. Also, who's Doug? ??? I'm John. Although, pay me 50 bitcoins and you can call me whatever you want.  ;)

Some feature requests:
- Bitcoin URIs support
- Something like Bitcoin SCI (http://bitfreak.info/index.php?page=tools&t=bitsci) ( connected with blockexplorer/blockchain.info APIs ) to avoid bitcoind.

I'm not going to use your great module, but I think that someone will like these features :)


The URI support is a good idea. I'm also looking into the best way to add QR codes to the mix.

The Bitcoin SCI integration would be a lower-priority feature because the main idea behind this was to help merchants avoid third parties. However, if someone wants to throw some money at this, I'll get it done. My long-term vision for this module is a one-stop shop for OpenCart merchants to get FULL Bitcoin integration anywhere they could possibly want it. I even have aspirations of forking OpenCart and creating an out-of-the-box full Bitcoin merchant solution.


Title: Re: 50 BTC BOUNTY: BITCOIN OPEN CART PAYMENT MODULE!
Post by: cablepair on September 25, 2012, 01:57:56 AM
sorry been super busy - I  promise I will test this tomorrow and pay the bounty if it meets requirements.

thanks.


Title: Re: 50 BTC BOUNTY: BITCOIN OPEN CART PAYMENT MODULE!
Post by: Yurock on September 26, 2012, 09:33:35 AM
Here is another extension that satisfies the given requirements: code (http://bitcoin.metal-bunker.info/opencart-bitcoind-2012-09-28.zip), demo (http://bitcoin.metal-bunker.info/opencart/).
It does not update BTC rate automatically. I believe, it should be done in a separate module. The payment module just uses the current rate from OpenCart settings.
The extension is designed to work together with a cron job that processes outstanding invoices. However, the cron job is optional: bills can be processed manually from admin panel.
Why cron job? Bitcoind does not have an option to notify us when a new block arrives. So, it is necessary to poll bitcoind for changes. Under normal circumstances, the payment transaction arrives while the customer has the site open in browser; so this event is processed automatically. After that we don't hold the customer any longer, and they are free to browse away without waiting for confirmations. This is where I rely on the cron job to check if the transaction gets confirmed or reversed and change the order status accordingly. If cron job is not installed, a store operator has to open an outstanding bill's page, click "Process" and see the final status of the payment.

Update: VPS with bitcoind went down. :( I will make an update when it will be up, so you all can try the demo site.

In the meantime, here is a screenshot of the settings page:
http://bitcoin.metal-bunker.info/ss-en/opencart-bitcoind-admin-config-2012-09-26-small.png (http://bitcoin.metal-bunker.info/ss-en/opencart-bitcoind-admin-config-2012-09-26.png)

Update: Bitcoind is up, demo site should be fully functional now.


Title: Re: 50 BTC BOUNTY: BITCOIN OPEN CART PAYMENT MODULE!
Post by: BCB on September 26, 2012, 02:04:15 PM
How are you polling bitcoind?


Title: Polling bitcoind
Post by: Yurock on September 26, 2012, 04:52:26 PM
How are you polling bitcoind?
listtransactions to catch new incoming transactions; then getreceivedbyaddress and getbalance for all outstanding invoices to catch transaction reversal.


Title: Bitcoind is up
Post by: Yurock on September 26, 2012, 07:20:36 PM
Bitcoind is up, you can check out the demo site (http://bitcoin.metal-bunker.info/opencart/). And here are more screenshots from the store back.

http://bitcoin.metal-bunker.info/ss-en/opencart-bitcoind-admin-control-2012-09-26-small.png (http://bitcoin.metal-bunker.info/ss-en/opencart-bitcoind-admin-control-2012-09-26.png) http://bitcoin.metal-bunker.info/ss-en/opencart-bitcoind-admin-bills-2012-09-26-small.png (http://bitcoin.metal-bunker.info/ss-en/opencart-bitcoind-admin-bills-2012-09-26.png) http://bitcoin.metal-bunker.info/ss-en/opencart-bitcoind-admin-bill-2012-09-26-small.png (http://bitcoin.metal-bunker.info/ss-en/opencart-bitcoind-admin-bill-2012-09-26.png)


Title: Re: 50 BTC BOUNTY: BITCOIN OPEN CART PAYMENT MODULE!
Post by: jga on September 27, 2012, 01:06:49 AM
Bounty paid!  Thanks cablepair.


Title: Re: Bounty PAID: BITCOIN OPEN CART PAYMENT MODULE!
Post by: Yurock on September 27, 2012, 02:05:44 AM
Congrats jga!


Title: Re: 50 BTC BOUNTY: BITCOIN OPEN CART PAYMENT MODULE!
Post by: dadj on September 27, 2012, 04:20:11 AM
I would like to add a feature request and along with it 10 BTC bounty for this feature: Add an easy to implement hack into Opencart that adds Bitcoin as a currency and gives the user the choice to display prices in Bitcoin or any other currency.

Done. This is already in my latest version.  In the admin console upon install, you can choose whether or not to enable BTC as a user-visible currency.

Edit: I also have this available as a stand-alone module, but I haven't open sourced it yet.

Edit: now I have open sourced it and it is available at https://github.com/btcgear/Bitcoin_Exchange_Rate_OpenCart
This code is fully tested and has been in use at http://www.btcgear.com for months.

Please send bounty to 14dTC7bBphANAHzmK9aD7X7Wvo99rhHMTF

Bounty paid - thank you! :D


Title: Item delivery failed
Post by: Yurock on September 27, 2012, 04:23:30 AM
Someone registered an account named "ss" with email address email@email.com and ordered 50¢ Mt.Gox Code (http://bitcoin.metal-bunker.info/opencart/mtgox-usd-0.5). As email cannot be delivered to that address, the order was cancelled, and bitcoins were returned. Anyway, thanks for the participation in testing. :)

http://bitcoin.metal-bunker.info/ss-en/refund-19-bill-small.png (http://bitcoin.metal-bunker.info/ss-en/refund-19-bill.png) http://bitcoin.metal-bunker.info/ss-en/refund-19-order-history-small.png (http://bitcoin.metal-bunker.info/ss-en/refund-19-order-history.png)

On the second screenshot, first 2 entries in the order history are in Russian. They were added automatically by the payment extension. I suppose, the buyer was using Russian interface.



Here are some tips for those who use my demo site.
There is a language switch at the top.
To receive codes, specify your email address.
To make a donation, "order" these items (http://bitcoin.metal-bunker.info/opencart/donations).
To try the refund feature, "order" this item (http://bitcoin.metal-bunker.info/opencart/impossible).


Title: Re: 50 BTC BOUNTY: BITCOIN OPEN CART PAYMENT MODULE!
Post by: jga on September 27, 2012, 04:52:13 AM
I would like to add a feature request and along with it 10 BTC bounty for this feature: Add an easy to implement hack into Opencart that adds Bitcoin as a currency and gives the user the choice to display prices in Bitcoin or any other currency.

Done. This is already in my latest version.  In the admin console upon install, you can choose whether or not to enable BTC as a user-visible currency.

Edit: I also have this available as a stand-alone module, but I haven't open sourced it yet.

Edit: now I have open sourced it and it is available at https://github.com/btcgear/Bitcoin_Exchange_Rate_OpenCart
This code is fully tested and has been in use at http://www.btcgear.com for months.

Please send bounty to 14dTC7bBphANAHzmK9aD7X7Wvo99rhHMTF

Bounty paid - thank you! :D

Confirmed! Thanks!


Title: Update
Post by: Yurock on September 28, 2012, 10:00:19 PM
New version (http://bitcoin.metal-bunker.info/opencart-bitcoind-2012-09-28.zip). Added Bitcoin URI support, improved recalculation of total amount after order editing. Demo site (http://bitcoin.metal-bunker.info/opencart/) is still up.


Title: refilling the keypool
Post by: Norklom on September 30, 2012, 11:33:19 AM
I have talked to the guys at SlySoft and they have their own implementation of a bitcoin shop integration because they have their own clunky shop software.  However, one problem we could not solve is that the keypool is being depleted unless they manually unlock bitcoind's wallet on a regular basis.  As I don't have a clue about OpenCart internals, I have not looked at your implementation yet.  Can you replenish the keypool without manual intervention?  Do you use a different wallet?


Title: Re: refilling the keypool
Post by: Yurock on September 30, 2012, 01:36:26 PM
However, one problem we could not solve is that the keypool is being depleted unless they manually unlock bitcoind's wallet on a regular basis.
Use large key pool. Add something like
Code:
keypool=10000
to bitcoin.conf
https://en.bitcoin.it/wiki/Running_Bitcoin

Can you replenish the keypool without manual intervention?
Key pool cannot be refilled without unlocking the wallet, because it uses a symmetric cypher. So, the passphrase is needed to encrypt newly created keys.


Title: Re: Bounty PAID: BITCOIN OPEN CART PAYMENT MODULE!
Post by: jga on December 10, 2012, 10:37:36 PM
I've been busy updating the OpenCart module at https://github.com/btcgear/OpenCart_Bitcoin. It now has a much cleaner user interface, a QR code, and a URI link. It also automatically redirects to the checkout/success page upon receipt of payment.

You can check out a demo version currently running at http://test154.btcgear.com.

More info is here: http://blog.btcgear.com/2012/12/10/opencart_bitcoin-version-1-3-1/

Here's a screenshot:

http://www.btcgear.com/external/screenshots/OpenCart_Bitcoin_v1.3.1_screenshot.png


Title: demo site
Post by: Yurock on December 24, 2012, 08:47:25 AM
You can check out a demo version currently running at http://test154.btcgear.com.
On the checkout page I got an alert box that says "object". Then payment details appeared as expected.


Title: Re: demo site
Post by: jga on December 24, 2012, 10:20:29 PM
You can check out a demo version currently running at http://test154.btcgear.com.
On the checkout page I got an alert box that says "object". Then payment details appeared as expected.

Yeah, sorry about that. I had a development version installed. The production version is now loaded and ready to rock.


Title: Re: Bounty PAID: BITCOIN OPEN CART PAYMENT MODULE!
Post by: SlickTheNick on December 26, 2012, 08:50:43 AM
Been using this.. thanks for the work! Now I just need to wait for some actual BTC customers


Title: Re: Bounty PAID: BITCOIN OPEN CART PAYMENT MODULE!
Post by: LiteBit on January 13, 2013, 03:05:59 PM
I'm having trouble getting this working.  Any help?

Here's what I'm doing:
I've got the module installed on my OpenCart (running 1.5.4)
I've got version 0.7.2 of Bitcoin running on a local computer
I've got a bitcoin.conf file in my User/AppData/Roaming/Bitcoin folder that looks like this:

rpcuser=username
rpcpassword=password
rpcallowip=ip_address
rpcport=9332
daemon=1
server=1
gen=0

My ip address in the above .conf file is my local computer's ip address which is a static ip address.
I've got the module in OpenCart filed in with the above information
I've got US Dollar set as my default currency and it's value set at 1.00000
I've got Bitcoin as a currency in my Localisation settings and it's value is set as 0.07042125

Ok, that's what I'm doing.
The problem I'm getting is on testing the checkout functions.
I put in a false order with a user I set up.  I have the currency showing BTC. I get to step 5 of the checkout (payment method) with Bitcoin selected.  I check my TOC box and click "Continue"... 
Problem #1: Nothing happens.

I click "Continue" a second time and I get a signal that it's processing the order
On step 6 of the checkout (confirm order) I get what looks to be a summary of my order. 
Problem #2: About 10 seconds after this a message at the bottom of the order that says "Error communicating with payment provider. Please contact the store for assistance."

Questions:
1. Is it ok to have this pointing to a local computer or does it need to be on a server?
2. If it does need to be on a server how do I actually do that? Do I "install" bitcoin program somehow?
3. Can I have special characters %#@ in my RPC username and RPC password?
4. Should my bitcoin.conf file show my IP as 127.0.0.1 and my RPC host on the module in my OpenCart Admin show my actual IP of the computer?

Any and all help is greatly appreciated!
Cheers,
LiteBit


Title: Troubleshooting
Post by: Yurock on January 13, 2013, 09:22:01 PM
LiteBit

Check that RPC works:
bitcoind getinfo

Add
rpcallowip=127.0.0.1
You can leave rpcallowip with another address too.

What are the payment module settings?

Check OpenCart error log.


Title: Re: Troubleshooting
Post by: LiteBit on January 14, 2013, 01:28:32 PM
LiteBit

Check that RPC works:
bitcoind getinfo

Add
rpcallowip=127.0.0.1
You can leave rpcallowip with another address too.

What are the payment module settings?

Check OpenCart error log.

It looks like it's not talking back and forth.  I run bitcoind getinfo and get a ping in the debug.log file, but when I run it through my OC module checkout I'm still getting errors.  I'm going to run a curl script on it tonight and see what the hangup is.  I'll try rpcallowip= as well... that could be the issue.  Thx.


Title: Re: Bounty PAID: BITCOIN OPEN CART PAYMENT MODULE!
Post by: jga on January 15, 2013, 10:14:26 PM
LiteBit,

Which module are you using? Mine or Yurock's?


Title: Re: Bounty PAID: BITCOIN OPEN CART PAYMENT MODULE!
Post by: LiteBit on January 17, 2013, 01:03:54 PM
LiteBit,

Which module are you using? Mine or Yurock's?

Yours.  I think it's a port issue.  My provider locks down ports unless I have a dedicated IP.  I'm going to wait til that takes affect and try it once more with 8332 and 9332 open.  Will let you know.


Title: Re: Bounty PAID: BITCOIN OPEN CART PAYMENT MODULE!
Post by: LiteBit on January 20, 2013, 06:41:34 PM
Can you answer this so I set everything up right?
On my server side with a dedicated IP address: For port 8332 which protocol (UDP or TCP) and which direction (Inbound or Outbound)?


Title: Re: Troubleshooting
Post by: bitgold on January 21, 2013, 12:16:07 AM
LiteBit

Check that RPC works:
bitcoind getinfo

Add
rpcallowip=127.0.0.1
You can leave rpcallowip with another address too.

What are the payment module settings?

Check OpenCart error log.

It looks like it's not talking back and forth.  I run bitcoind getinfo and get a ping in the debug.log file, but when I run it through my OC module checkout I'm still getting errors.  I'm going to run a curl script on it tonight and see what the hangup is.  I'll try rpcallowip= as well... that could be the issue.  Thx.

I am having similar issue, there's no rpc traffic information in bitcoin debug.log.

opencart log has this:
2013-01-20 23:50:00 - PHP Notice:  Undefined variable: bitcoin_send_address in /var/www/html/opencart/catalog/view/theme/default/template/payment/bitcoin.tpl on line 51
2013-01-20 23:50:00 - PHP Notice:  Undefined variable: bitcoin_send_address in /var/www/html/opencart/catalog/view/theme/default/template/payment/bitcoin.tpl on line 53
2013-01-20 23:50:00 - PHP Notice:  Undefined variable: bitcoin_send_address in /var/www/html/opencart/catalog/view/theme/default/template/payment/bitcoin.tpl on line 55

when checkout after payment step, user always gets: "Error communicating with payment provider. Please contact the store for assistance."

bitcoind getinfo returns result after 20~30 seconds, I don't know why it takes so long, the error message was definitely displayed back to user in less than 5 seconds, so this seems to be a timeout issue, where should I change it?






Title: RPC connections
Post by: Yurock on January 21, 2013, 08:45:07 AM
On my server side with a dedicated IP address: For port 8332 which protocol (UDP or TCP) and which direction (Inbound or Outbound)?
TCP is used for RPC communications.
For bitcoind, connections are inbound.
For OpenCart, connections are outbound.

I am having similar issue, there's no rpc traffic information in bitcoin debug.log.

opencart log has this:
2013-01-20 23:50:00 - PHP Notice:  Undefined variable: bitcoin_send_address in /var/www/html/opencart/catalog/view/theme/default/template/payment/bitcoin.tpl on line 51
2013-01-20 23:50:00 - PHP Notice:  Undefined variable: bitcoin_send_address in /var/www/html/opencart/catalog/view/theme/default/template/payment/bitcoin.tpl on line 53
2013-01-20 23:50:00 - PHP Notice:  Undefined variable: bitcoin_send_address in /var/www/html/opencart/catalog/view/theme/default/template/payment/bitcoin.tpl on line 55

when checkout after payment step, user always gets: "Error communicating with payment provider. Please contact the store for assistance."

bitcoind getinfo returns result after 20~30 seconds, I don't know why it takes so long, the error message was definitely displayed back to user in less than 5 seconds, so this seems to be a timeout issue, where should I change it?
Check that your scripts on the web server have ability to make TCP connections to other hosts on the internet.
Check that bitcoind allows connections from your web site (rpcallowip).
Check that inbound RPC connections are possible on the bitcoind side.
You can also try my extension (http://bitcoin.metal-bunker.info/opencart-bitcoind-2012-09-28.zip) and check OpenCart error log for relevant messages. Also, I am going to write a special Bitcoin RPC test script, so you won't have to install an OpenCart extension just for debugging.


Title: Bitcoin RPC test script
Post by: Yurock on January 22, 2013, 08:45:08 AM
a special Bitcoin RPC test script
Code:
<?php
error_reporting 
(E_ALL);
ini_set ('display_errors'true);
ini_set ('html_errors'true);
echo 
'<?xml version="1.0" encoding="UTF-8"?>
';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Bitcoin RPC Test</title>
</head>
<body>
<?php
function rpc ($url$userpwd) {
 
$curl curl_init ($url);
 if (! 
$curl) {
  echo 
'<p>curl_init failed</p>';
  return;
 }
 
$id = (string) rand ();
 if (! 
curl_setopt ($curlCURLOPT_RETURNTRANSFERtrue)) {
  echo 
'<p>curl_setopt (CURLOPT_RETURNTRANSFER) failed: 'htmlspecialchars (curl_error ($curl)), '</p>';
  return;
 }
 if (
strlen ($userpwd) > 1)
  if (! 
curl_setopt ($curlCURLOPT_USERPWD$userpwd)) {
   echo 
'<p>curl_setopt (CURLOPT_USERPWD) failed: 'htmlspecialchars (curl_error ($curl)), '</p>';
   return;
  }
 if (! 
curl_setopt ($curlCURLOPT_POSTFIELDSjson_encode (array ('method' => 'getinfo''params' => array (), 'id' => $id)))) {
  echo 
'<p>curl_setopt (CURLOPT_POSTFIELDS) failed: 'htmlspecialchars (curl_error ($curl)), '</p>';
  return;
 }
 
$r curl_exec ($curl);
 if (
curl_errno ($curl)) echo '<p>curl_exec failed: 'htmlspecialchars (curl_error ($curl)), '</p>';
 if (
is_string ($r)) {
  
$d json_decode ($rtrue);
  
$e json_last_error ();
  if (
$e) echo "<p>JSON error: $e</p>";
  if (
is_array ($d)) {
   if (
array_key_exists ('id'$d)) {
    if (
$d ['id'] != $id) echo '<p>ID mismatch:<br />request: '$id'<br />response: '$d ['id'], '</p>';
   } else echo 
'<p>Response lacks ID.</p>';
   if (
array_key_exists ('result'$d)) echo '<h3>Result</h3><pre>'htmlspecialchars (var_export ($d ['result'], true)), '</pre>';
   else echo 
'<p>Response lacks result.</p>';
   if (
array_key_exists ('error'$d) && $d ['error']) echo '<h3>Error</h3><pre>'htmlspecialchars (var_export ($d ['error'], true)), '</pre>';
  }
  echo 
'<h3>Raw Response</h3><pre>'htmlspecialchars ($r), '</pre>';
 }
  echo 
'<h3>CURL Info</h3><pre>'htmlspecialchars (var_export (curl_getinfo ($curl), true)), '</pre>';
}
foreach (array (
'proto''host''port''user''pass') as $n)
 
$GLOBALS [$n] = array_key_exists ($n$_REQUEST) ? $_REQUEST [$n] : '';
if (
strlen ($proto) && strlen ($host)) {
 if (
is_numeric (strpos ($host':'))) $host '[' $host ']';
 
$url "$proto://$host";
 if (
strlen ($port)) $url .= ":$port";
 if (
is_numeric (strpos ($user':'))) echo '<p>Warning: username contains a semicolon.</p>';
 
rpc ($url"$user:$pass");
} else {
?>

<form method="post" target="result" action="<?php echo htmlspecialchars (basename ($_SERVER ['PHP_SELF'])); ?>"><table>
<tr><td align="right"><label for="proto">Protocol:</label></td><td align="left"><select name="proto" id="proto"><option value="http">HTTP</option><option value="https">HTTPS</option></select></td></tr>
<tr><td align="right"><label for="host">Hostname:</label></td><td align="left"><input name="host" id="host" /></td></tr>
<tr><td align="right"><label for="port">Port:</label></td><td align="left"><input name="port" id="port" value="8332" /></td></tr>
<tr><td align="right"><label for="user">Username:</label></td><td align="left"><input name="user" id="user" /></td></tr>
<tr><td align="right"><label for="pass">Password:</label></td><td align="left"><input name="pass" id="pass" type="password" /></td></tr>
<tr><td></td><td><input type="submit" value="Check" /></td></tr>
</table></form>
<h2>Result</h2>
<iframe name="result" style="width:100%;height:32em"></iframe>
<?php
}
?>

</body>
</html>


Title: Re: Bounty PAID: BITCOIN OPEN CART PAYMENT MODULE!
Post by: bitgold on January 27, 2013, 02:02:41 PM
Yurock, thanks for the script. 

After running it, I got this:

Code:
curl_exec failed: Failed to connect to 127.0.0.1: Permission denied
CURL Info
array (
  'url' => 'http://localhost:8332',
  'content_type' => NULL,
  'http_code' => 0,
  'header_size' => 0,
  'request_size' => 0,
  'filetime' => -1,
  'ssl_verify_result' => 0,
  'redirect_count' => 0,
  'total_time' => 0,
  'namelookup_time' => 0.00074,
  'connect_time' => 0,
  'pretransfer_time' => 0,
  'size_upload' => 0,
  'size_download' => 0,
  'speed_download' => 0,
  'speed_upload' => 0,
  'download_content_length' => -1,
  'upload_content_length' => -1,
  'starttransfer_time' => 0,
  'redirect_time' => 0,
  'certinfo' =>
  array (
  ),
)

what permission is it talking about?


Title: Re: Bounty PAID: BITCOIN OPEN CART PAYMENT MODULE!
Post by: Yurock on January 27, 2013, 06:02:00 PM
curl_exec failed: Failed to connect to 127.0.0.1: Permission denied
Try to connect to something other. For example:
Protocol: HTTP
Hostname: www.googe.com
Port:80
(empty username and password)
If it fails with the same error then I assume, connections are disabled by your web server configuration.


Title: Re: Bounty PAID: BITCOIN OPEN CART PAYMENT MODULE!
Post by: bitgold on January 27, 2013, 06:53:53 PM
curl_exec failed: Failed to connect to 127.0.0.1: Permission denied
Try to connect to something other. For example:
Protocol: HTTP
Hostname: www.googe.com
Port:80
(empty username and password)
If it fails with the same error then I assume, connections are disabled by your web server configuration.
I got this:
Code:
JSON error: 4
Raw Response

<!DOCTYPE html>
<html lang=en>
  <meta charset=utf-8>
  <meta name=viewport content="initial-scale=1, minimum-scale=1, width=device-width">
  <title>Error 405 (Method Not Allowed)!!1</title>
  <style>
    *{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}
  </style>
  <a href=//www.google.com/><img src=//www.google.com/images/errors/logo_sm.gif alt=Google></a>
  <p><b>405.</b> <ins>That’s an error.</ins>
  <p>The request method <code>POST</code> is inappropriate for the URL <code>/</code>.  <ins>That’s all we know.</ins>

CURL Info

array (
  'url' => 'http://google.com:80',
  'content_type' => 'text/html; charset=UTF-8',
  'http_code' => 405,
  'header_size' => 226,
  'request_size' => 256,
  'filetime' => -1,
  'ssl_verify_result' => 0,
  'redirect_count' => 0,
  'total_time' => 0.164868,
  'namelookup_time' => 0.134401,
  'connect_time' => 0.144327,
  'pretransfer_time' => 0.144334,
  'size_upload' => 50,
  'size_download' => 959,
  'speed_download' => 5816,
  'speed_upload' => 303,
  'download_content_length' => 959,
  'upload_content_length' => 0,
  'starttransfer_time' => 0.16483,
  'redirect_time' => 0,
  'certinfo' =>
  array (
  ),
)



Looks like this is another stupid SELinux issue: if I run setenforce Permissive, it returns result, but takes a looooong time.


Title: SELinux
Post by: Yurock on January 28, 2013, 07:30:22 AM
Raw Response
It's a positive result.

Looks like this is another stupid SELinux issue
Believable. So, have you managed to communicate with bitcoind?


Title: Re: Bounty PAID: BITCOIN OPEN CART PAYMENT MODULE!
Post by: hashalfahalve on January 28, 2013, 10:17:17 PM
Yurock,

Using your test script I connect without issue, and from within opencart I can get data clicking on the "Control" button, but during transactions I get Server error. Please try again or contact us.

There are no details. Are logs kept somewhere to see what the error is?


Title: Re: SELinux
Post by: bitgold on January 29, 2013, 02:24:58 AM
Looks like this is another stupid SELinux issue
Believable. So, have you managed to communicate with bitcoind?

Yes,  It's working! Finally.  Thank you very much!

It looks like I have to have a bitcoin client running and the blocks need to be up to date, otherwise, it's going to wait forever. Is it true?

For some reason, the btc block download on this machine is VERY slow, MUCH slower than ltc client  >:(


Title: Re: SELinux
Post by: Yurock on January 29, 2013, 06:30:06 AM
I have to have a bitcoin client running and the blocks need to be up to date
Yes.

For some reason, the btc block download on this machine is VERY slow, MUCH slower than ltc client  >:(
A new Bitcoin node has to download and verify every block, which includes verifying every transaction. Every input of every transaction needs to be matched to an output of a previous transaction. Then it is necessary to make sure that these outputs were not spend earlier. So, to verify 1 block, it takes hundreds of database lookups. And in total, more than 200000 blocks need to be verified. Services like SatoshiDice make Bitcoin transaction history bloat. If you watch block count during initial download, you can see that pre-SatoshiDice part of transaction history gets downloaded quickly, then it takes very long time to download the heavy part.

To minimize pain of node setup, you can detach DB on your existing Bitcoin installation and copy blk* files to the server.


Title: Re: Bounty PAID: BITCOIN OPEN CART PAYMENT MODULE!
Post by: SynOps on February 12, 2013, 01:38:16 PM
Still not working for after about 20 minuts


Title: Re: Bounty PAID: BITCOIN OPEN CART PAYMENT MODULE!
Post by: Yurock on February 13, 2013, 01:31:17 AM
Still not working for after about 20 minuts
What exactly is not working?


Title: Re: Bounty PAID: BITCOIN OPEN CART PAYMENT MODULE!
Post by: FuzzyBear on February 17, 2013, 11:38:54 PM
Ok I tried to setup both versions of this BTC plugin and both fail :( each at different points... perhaps opencart has had an update or something? is this thread still alive to try and help me debug the issues? or am I going to have to start from scratch?

any help will be very greatly appreciated

sites i'm trying on are

jga / btcgear version - http://opencart-btc.btc-music.com

Yrock version - http://opencart2-btc.btc-music.com

i have emailed jga directly but not had a reply with detailed info of my problems,

Yurock I seemed to even just have errors pop up on trying to install the latest version of ur code... on installing bitcoin as payment method... just goes to white screen... can refresh the site and it looks to have installed anyway... but no currency added to the DB, and the settings when clicking control and bills throws errors

Code:
Notice: bitcoind: RPC getinfo failed:curl_exec () failed: The requested URL returned error: 401 in C:\_websites\YourikBTCOpencartPlugin\admin\controller\payment\bitcoind.php on line 595Notice: bitcoind: RPC getaddressesbyaccount failed:curl_exec () failed: The requested URL returned error: 401 in C:\_websites\YourikBTCOpencartPlugin\admin\controller\payment\bitcoind.php on line 595
but bitcoind is def running on the server and i can do getinfo on it in a cmd

second error is only prob cause there has been no purchases yet...
Code:
Notice: Error: Table 'opencart2btc.oc_bitcoind_bill' doesn't exist
Error No: 1146
Error in: C:\_websites\YourikBTCOpencartPlugin\admin\model\payment\bitcoind.php line 67
SELECT order_id,total,status,deadline,sent,payment_address,refund_address,IF(deadline,TIMESTAMPDIFF(SECOND,NOW(),deadline),NULL)AS time_left FROM oc_bitcoind_bill LIMIT 0,20 in C:\_websites\YourikBTCOpencartPlugin\system\database\mysql.php on line 54

But I have had another issue... i have enabled the bitcoin as payment method, set the localhost and port info as well as username and pass, set the sort value to 1.  I checkout and get past stage 5... but on stage 6 of checkout I get the same error as on your test website?? is this a sign of something else broken? or have i not done something?

any advice??

otherwise nice code and simple plugin :D


Title: Troubleshooting
Post by: Yurock on February 19, 2013, 09:50:33 PM
perhaps opencart has had an update or something?
My extension is currently unmaintained due to lack of interest from users. I haven't tested it with latest OpenCart, but I'm going to do it as time permits.

is this thread still alive to try and help me debug the issues?
Sort of. You can also send me a PM or email.

Yurock I seemed to even just have errors pop up on trying to install the latest version of ur code... on installing bitcoin as payment method... just goes to white screen... can refresh the site and it looks to have installed anyway...
Code:
Notice: Error: Table 'opencart2btc.oc_bitcoind_bill' doesn't exist
Error No: 1146
Error in: C:\_websites\YourikBTCOpencartPlugin\admin\model\payment\bitcoind.php line 67
SELECT order_id,total,status,deadline,sent,payment_address,refund_address,IF(deadline,TIMESTAMPDIFF(SECOND,NOW(),deadline),NULL)AS time_left FROM oc_bitcoind_bill LIMIT 0,20 in C:\_websites\YourikBTCOpencartPlugin\system\database\mysql.php on line 54
During installation, the extension needs to create a table in the database. It seems like this step failed. Maybe the MySQL user account of OpenCart does not have the needed permission. If this is the case:
  • uninstall the extension;
  • grant CREATE (http://dev.mysql.com/doc/refman/5.6/en/privileges-provided.html#priv_create) privilege to the OpenCart database user on the OpenCart database;
  • install the extension again;
  • optionally revoke the CREATE privilege.
Alternatively, you can create the table manually:
Code:
CREATE TABLE`oc_bitcoind_bill`(`order_id`INT NOT NULL,`total`DECIMAL(16,8)NOT NULL,`status`ENUM('wait', 'timeout','receive','reverse','confirm','complete','cancel')COLLATE ascii_bin NOT NULL DEFAULT'wait',`deadline`DATETIME NOT NULL DEFAULT'0000-00-00 00:00:00',`sen
t`DECIMAL(16,8)NOT NULL DEFAULT 0,`payment_address`CHAR(34)COLLATE ascii_bin NOT NULL,`refund_address`CHAR(34)COLLATE ascii_bin NOT NULL,PRIMARY KEY(`order_id`),UNIQUE KEY(`payment_address`),INDEX(`status`));

but no currency added to the DB
It is not supposed to add the currency automatically. You need to add it manually and specify it in the extension settings. Also note that if you specify prices in another currency, you'll need to update BTC rate somehow.

otherwise nice code and simple plugin :D
That's not about my extension. :)


Title: Re: 50 BTC BOUNTY: BITCOIN OPEN CART PAYMENT MODULE!
Post by: Sebjectivist on April 11, 2013, 10:51:19 AM
I would like to add a feature request and along with it 10 BTC bounty for this feature: Add an easy to implement hack into Opencart that adds Bitcoin as a currency and gives the user the choice to display prices in Bitcoin or any other currency.

Done. This is already in my latest version.  In the admin console upon install, you can choose whether or not to enable BTC as a user-visible currency.

Edit: I also have this available as a stand-alone module, but I haven't open sourced it yet.

Edit: now I have open sourced it and it is available at https://github.com/btcgear/Bitcoin_Exchange_Rate_OpenCart
This code is fully tested and has been in use at http://www.btcgear.com for months.

Please send bounty to 14dTC7bBphANAHzmK9aD7X7Wvo99rhHMTF
I'm dying for a module like this because if the strong fluctuations.. it only works if the standard valuta is USD - but mine has to be EUR.. I recon it's not too difficult to fork this module for the european market? I emailed the guy, and I just hope someone can explain me how to do it sooner rather then later ;)


Title: Re: 50 BTC BOUNTY: BITCOIN OPEN CART PAYMENT MODULE!
Post by: BiTCoinRC on May 10, 2013, 10:37:07 AM
I would like to add a feature request and along with it 10 BTC bounty for this feature: Add an easy to implement hack into Opencart that adds Bitcoin as a currency and gives the user the choice to display prices in Bitcoin or any other currency.

Done. This is already in my latest version.  In the admin console upon install, you can choose whether or not to enable BTC as a user-visible currency.

Edit: I also have this available as a stand-alone module, but I haven't open sourced it yet.

Edit: now I have open sourced it and it is available at https://github.com/btcgear/Bitcoin_Exchange_Rate_OpenCart
This code is fully tested and has been in use at http://www.btcgear.com for months.

Please send bounty to 14dTC7bBphANAHzmK9aD7X7Wvo99rhHMTF
I'm dying for a module like this because if the strong fluctuations.. it only works if the standard valuta is USD - but mine has to be EUR.. I recon it's not too difficult to fork this module for the european market? I emailed the guy, and I just hope someone can explain me how to do it sooner rather then later ;)

I noticed the plugin has now been updated to use other currencies, did you manage to get it working? If possible could you PM me the URL of your store so I can see it in action? Thanks.


Title: Re: 50 BTC BOUNTY: BITCOIN OPEN CART PAYMENT MODULE!
Post by: Sebjectivist on May 10, 2013, 07:30:34 PM
I would like to add a feature request and along with it 10 BTC bounty for this feature: Add an easy to implement hack into Opencart that adds Bitcoin as a currency and gives the user the choice to display prices in Bitcoin or any other currency.

Done. This is already in my latest version.  In the admin console upon install, you can choose whether or not to enable BTC as a user-visible currency.

Edit: I also have this available as a stand-alone module, but I haven't open sourced it yet.

Edit: now I have open sourced it and it is available at https://github.com/btcgear/Bitcoin_Exchange_Rate_OpenCart
This code is fully tested and has been in use at http://www.btcgear.com for months.

Please send bounty to 14dTC7bBphANAHzmK9aD7X7Wvo99rhHMTF
I'm dying for a module like this because if the strong fluctuations.. it only works if the standard valuta is USD - but mine has to be EUR.. I recon it's not too difficult to fork this module for the european market? I emailed the guy, and I just hope someone can explain me how to do it sooner rather then later ;)

I noticed the plugin has now been updated to use other currencies, did you manage to get it working? If possible could you PM me the URL of your store so I can see it in action? Thanks.
Thank you so much for telling me!! It works out of the box with my 1.5.5.1 install ;D I did already add BTC as a valuta before, keeping it up to date manually. This is such a relief!! You can visit my store by following the link in my profile..


Title: Re: 50 BTC BOUNTY: BITCOIN OPEN CART PAYMENT MODULE!
Post by: BiTCoinRC on May 11, 2013, 08:17:55 PM
I have got this installed now (jga full version) and all seems to be working but it is not saying it has been paid or adding the order on my end?? I have 3 confirmations so far on a test payment of 0.001 BTC and the payment is in my wallet. I'm using the blockchain.info JSON RPC API login details to connect to my blockchain wallet, could this be the problem?:

Store front 1:
http://s24.postimg.org/eszb7p5zp/btc1.png

3 Confirmations:
http://s24.postimg.org/rbki20sd1/btc3.png

Store front 2:
http://s14.postimg.org/v6isvj3s1/btc2.png

It is adding the funds/address to my wallet but not adding the order or saying it has been paid on the website end:
http://s8.postimg.org/50rjt75cl/btc4.png

This was in my opencart error log:
Code:
2013-05-12 2:57:03 - PHP Notice:  Undefined variable: bitcoin_send_address in /home/*****/public_html/catalog/view/theme/default/template/payment/bitcoin.tpl on line 55

Any help is much appreciated. I'm using Opencart 1.5.5.1 and a blockchain.info wallet.


Title: Re: Bounty PAID: BITCOIN OPEN CART PAYMENT MODULE!
Post by: Sebjectivist on May 13, 2013, 05:20:04 PM
Yes, it is my intention to be independent of the middle men. I haven't been as brave as you to try and install the payment module, and I'm not skilled enough to help you sorry. As my shop is just starting I'm thinking about just providing a fixed bitcoin address. I don't think that's any different from providing details about a bank account. for business it is cheaper though. Before I do that I want to be able to charge the customer for the transaction costs - to make it clear what the difference is between say paypal and bitcoin. I just learned paypal forbids you to separately add the transaction costs, and I'm curious if they're going to cut me off  ::)


Title: PayPal
Post by: Yurock on May 13, 2013, 07:47:34 PM
Before I do that I want to be able to charge the customer for the transaction costs - to make it clear what the difference is between say paypal and bitcoin. I just learned paypal forbids you to separately add the transaction costs, and I'm curious if they're going to cut me off  ::)
One can provide a discount for Bitcoin payments instead, but who cares about PayPal? ;D


Title: Re: 50 BTC BOUNTY: BITCOIN OPEN CART PAYMENT MODULE!
Post by: jga on May 14, 2013, 01:54:38 AM

I'm dying for a module like this because if the strong fluctuations.. it only works if the standard valuta is USD - but mine has to be EUR.. I recon it's not too difficult to fork this module for the european market? I emailed the guy, and I just hope someone can explain me how to do it sooner rather then later ;)

Hey, sorry I didn't get back to you when you emailed about EUR support. I integrated it and then couldn't remember what e-mail address you contacted me through or if it had been a forum PM or whatever so I couldn't let you know I had gotten it working.

As for everyone else, if you're still having issues with my extension, email me at support@btcgear.com and I'll see what I can do. I can make a test site and/or test bitcoind server available to one user at a time which can make troubleshooting much easier.


Title: Re: 50 BTC BOUNTY: BITCOIN OPEN CART PAYMENT MODULE!
Post by: BiTCoinRC on May 14, 2013, 01:22:54 PM
As for everyone else, if you're still having issues with my extension, email me at support@btcgear.com and I'll see what I can do. I can make a test site and/or test bitcoind server available to one user at a time which can make troubleshooting much easier.

Thanks for the email. I have replied, hopefully this can be made to work with the blockchain.info JSON RPC API :)

Yes, it is my intention to be independent of the middle men. I haven't been as brave as you to try and install the payment module, and I'm not skilled enough to help you sorry. As my shop is just starting I'm thinking about just providing a fixed bitcoin address. I don't think that's any different from providing details about a bank account. for business it is cheaper though. Before I do that I want to be able to charge the customer for the transaction costs - to make it clear what the difference is between say paypal and bitcoin. I just learned paypal forbids you to separately add the transaction costs, and I'm curious if they're going to cut me off  ::)

I think the problem of providing just one address is that you will not know who has sent you the BTC :-/

As said above though just do a discount for BTC, many sites do this (10% off or similar) if you pay by bank transfer rather than CC :)


Title: Re: 50 BTC BOUNTY: BITCOIN OPEN CART PAYMENT MODULE!
Post by: Sebjectivist on May 14, 2013, 01:49:40 PM
I think the problem of providing just one address is that you will not know who has sent you the BTC :-/
With the current amount of orders I should be good for now  ::). But I'll instruct my customers to add the ordernumber as a description. anyone can add a description to their payments right?


Title: Re: 50 BTC BOUNTY: BITCOIN OPEN CART PAYMENT MODULE!
Post by: BiTCoinRC on May 14, 2013, 02:23:12 PM
I think the problem of providing just one address is that you will not know who has sent you the BTC :-/
With the current amount of orders I should be good for now  ::). But I'll instruct my customers to add the ordernumber as a description. anyone can add a description to their payments right?

To be honest I'm not sure if you can add a comment/order number with a payment, maybe somebody else can let you know about this... I run a store that accepts bank transfer and that's what I do, get the customer to put the order number as the reference but 99% of the time the payment actually shows the customers name in my bank account anyway, on the odd occasion (I think when they go directly to my bank to make a deposit) it will only show the city/branch name and the reference/order number.

This is what I like about JGA's payment module, it makes a new address with the label as a prefix and the order number, so you could have a different prefix for different stores and still use the same wallet without it getting confusing, like in the screen shot below:

http://s24.postimg.org/4bcsocibp/btcrccri.png

  


Title: Re: 50 BTC BOUNTY: BITCOIN OPEN CART PAYMENT MODULE!
Post by: Sebjectivist on May 14, 2013, 07:52:43 PM
I think the problem of providing just one address is that you will not know who has sent you the BTC :-/
With the current amount of orders I should be good for now  ::). But I'll instruct my customers to add the ordernumber as a description. anyone can add a description to their payments right?

To be honest I'm not sure if you can add a comment/order number with a payment, maybe somebody else can let you know about this... I run a store that accepts bank transfer and that's what I do, get the customer to put the order number as the reference but 99% of the time the payment actually shows the customers name in my bank account anyway, on the odd occasion (I think when they go directly to my bank to make a deposit) it will only show the city/branch name and the reference/order number.

This is what I like about JGA's payment module, it makes a new address with the label as a prefix and the order number, so you could have a different prefix for different stores and still use the same wallet without it getting confusing, like in the screen shot below:

http://s24.postimg.org/4bcsocibp/btcrccri.png

  
Sure. Well I'm using Electrum and it's possible to add a description to your payment. Will have to check if that's standard.

Eventually jga's module is what I need, because it's the only way to automate things. For small scale I think it can be done my way as well..


Title: Re: Bounty PAID: BITCOIN OPEN CART PAYMENT MODULE!
Post by: alfabitcoin on May 14, 2013, 08:46:40 PM
Can somebody help me?
Have a problem with btc-usd exchange (bitcoin_update.php) with change by adding one line in index.php

Fatal error: Call to undefined function strptime()

running php version 5.4.3

Maybe can be replaced with date_parse_from_format() ?


Title: Re: 50 BTC BOUNTY: BITCOIN OPEN CART PAYMENT MODULE!
Post by: BiTCoinRC on May 15, 2013, 10:11:40 AM
Sure. Well I'm using Electrum and it's possible to add a description to your payment. Will have to check if that's standard.

Eventually jga's module is what I need, because it's the only way to automate things. For small scale I think it can be done my way as well..

I have not tried Electrum yet, just having a look at it now and it seems quite impressive. My plan is to just dump all the BTC into an offline wallet each day/week.

From the standard bitcoin-qt client, I just had a look and it does not look like you can add a comment when sending a payment, only a label for yourself. Maybe I am missing something.


Title: Re: Bounty PAID: BITCOIN OPEN CART PAYMENT MODULE!
Post by: jga on May 22, 2013, 03:32:50 AM
Well, I finally figured out why it wasn't working with the Blockchain.info JSON-RPC API. It appears the JSON-RPC API returns Bitcoin values rounded to three decimal points (!) So... the smaller orders I was testing with returned 0.000 received when they should have returned 0.0001... There was some other weird behavior with the blockchain API so I need to test more thoroughly before I push out a fix.

I also have some other features (including a timer and a bit cleaner interface) and bugfixes that I'm hoping to roll out in the next day or two.


Title: Re: Bounty PAID: BITCOIN OPEN CART PAYMENT MODULE!
Post by: jga on May 23, 2013, 01:38:30 AM
Well, friends, I have some bad news. It appears the Blockchain.info JSON-RPC API can not play nice with my payment module in its current incarnation. The payment module relies upon immediate acknowledgement of a transaction (0 confirmations) in order to function properly. There is a delay between sending payment to a Blockchain.info MyWallet address and Blockchain's acknowledgement of the transaction. It appears to wait until 1 confirmation. This means that it is impossible to do a slick immediate recognition of payment (as my payment module is programmed to do) with the Blockchain.info API at the present.

I could write an extension that would accept any order regardless of whether payment was ever sent, OR I could write an extension that would instruct the user to wait 10 or 15 minutes to see if their order went through. Both sound like a rather silly way of doing business, but unfortunately that's all that would be possible with the Blockchain.info JSON-RPC API (until they improve it).


Title: Re: Bounty PAID: BITCOIN OPEN CART PAYMENT MODULE!
Post by: BiTCoinRC on May 27, 2013, 12:31:49 PM
Well, friends, I have some bad news. It appears the Blockchain.info JSON-RPC API can not play nice with my payment module in its current incarnation. The payment module relies upon immediate acknowledgement of a transaction (0 confirmations) in order to function properly. There is a delay between sending payment to a Blockchain.info MyWallet address and Blockchain's acknowledgement of the transaction. It appears to wait until 1 confirmation. This means that it is impossible to do a slick immediate recognition of payment (as my payment module is programmed to do) with the Blockchain.info API at the present.

I could write an extension that would accept any order regardless of whether payment was ever sent, OR I could write an extension that would instruct the user to wait 10 or 15 minutes to see if their order went through. Both sound like a rather silly way of doing business, but unfortunately that's all that would be possible with the Blockchain.info JSON-RPC API (until they improve it).

This is a shame. Could you possibly make a version that shows a button "click here when you have sent payment", that will close the window and put the order through regardless of payment? I know this is not ideal but it would be no harder to check if the payment has been made than it would for say a bank transfer payment. Thanks for your time on this.


Title: Non-verifying extension
Post by: Yurock on May 27, 2013, 07:43:59 PM
Could you possibly make a version that shows a button "click here when you have sent payment", that will close the window and put the order through regardless of payment? I know this is not ideal but it would be no harder to check if the payment has been made than it would for say a bank transfer payment.
It makes sense to separate verification from the ordering process. The payment extension will only need to generate and display a new address for every order, which can be done in PHP. The extension can generate public keys using a deterministic wallet algorithm. The corresponding private keys can be generated locally on operator's computer. This scheme does not need a hot wallet or a third-party service.


Title: Re: Non-verifying extension
Post by: BiTCoinRC on May 30, 2013, 09:38:07 AM
Could you possibly make a version that shows a button "click here when you have sent payment", that will close the window and put the order through regardless of payment? I know this is not ideal but it would be no harder to check if the payment has been made than it would for say a bank transfer payment.
It makes sense to separate verification from the ordering process. The payment extension will only need to generate and display a new address for every order, which can be done in PHP. The extension can generate public keys using a deterministic wallet algorithm. The corresponding private keys can be generated locally on operator's computer. This scheme does not need a hot wallet or a third-party service.

In all honesty I would personally still check each payment had been made manually anyway, so for me this solution would be fine. I can understand how others may want the whole process to be automatic though, especially for digital goods.


Title: Re: Bounty PAID: BITCOIN OPEN CART PAYMENT MODULE!
Post by: jga on June 07, 2013, 01:52:51 AM
Good news, friends! I found a way to do instant payment verification with the Blockchain JSON-RPC API!

Other features (added a countdown timer) and bugfixes are also in the latest version.

Check out https://github.com/btcgear/OpenCart_Bitcoin for the latest code and, as always, let me know if you have any issues by sending an email to support@btcgear.com.


Title: Re: Bounty PAID: BITCOIN OPEN CART PAYMENT MODULE!
Post by: BiTCoinRC on June 07, 2013, 05:46:36 PM
This is great news, I will be testing it out soon. Thank you :)


Title: Re: Bounty PAID: BITCOIN OPEN CART PAYMENT MODULE!
Post by: OnlyC on June 30, 2013, 05:44:09 PM
Hi, I wonder if I using your extension, that's mean I have to run bitcoin server on my computer 24/7?


Title: Re: Bounty PAID: BITCOIN OPEN CART PAYMENT MODULE!
Post by: Yurock on July 01, 2013, 07:07:09 AM
Hi, I wonder if I using your extension, that's mean I have to run bitcoin server on my computer 24/7?
I think, bitcoind is needed whenever a customer goes to checkout. But it does not have to run on your computer, it can be someone else's computer (e.g. DS/VDS).


Title: Re: Bounty PAID: BITCOIN OPEN CART PAYMENT MODULE!
Post by: OnlyC on July 02, 2013, 04:31:35 PM
Just sent to jga suggestion to fix strptime()
trying to use blockchain API...


Title: Re: Bounty PAID: BITCOIN OPEN CART PAYMENT MODULE!
Post by: Moogle on January 28, 2014, 09:53:54 PM
dont suppose there are any of these confirmed as working on 1.5.6 are there?
I noticed they are only confirmed as working on lower versions


Title: Re: Bounty PAID: BITCOIN OPEN CART PAYMENT MODULE!
Post by: iwaldo on May 06, 2014, 09:24:45 AM
Can this be updated now that MTGox is no longer active? I need it to convert from GBP (£) on the newest OpenCart software. Willing to pay a bounty just PM me


Title: Re: Bounty PAID: BITCOIN OPEN CART PAYMENT MODULE!
Post by: Initscri on May 06, 2014, 09:22:54 PM
Can this be updated now that MTGox is no longer active? I need it to convert from GBP (£) on the newest OpenCart software. Willing to pay a bounty just PM me

PM'd. I'll fork and provide the source on Github.


Title: Re: Bounty PAID: BITCOIN OPEN CART PAYMENT MODULE!
Post by: noob-developer on July 18, 2014, 01:33:41 PM
Have you maybe released the github source of the fixed version, I have tried to fix it but haven't managed to.


Title: Re: Bounty PAID: BITCOIN OPEN CART PAYMENT MODULE!
Post by: BiTCoinRC on December 18, 2014, 09:10:59 AM
Hi again,

I'm also keen to know if there is any updated version of this. Thanks for your time and effort.

Regards.


Title: Re: Bounty PAID: BITCOIN OPEN CART PAYMENT MODULE!
Post by: fedotsemenoff on December 25, 2014, 12:14:20 PM
Internal Server Error

Can I fix it?
Opencart opencart-1.5.5.1
OpenCart_Bitcoin-master
Debian


Title: Re: Bounty PAID: BITCOIN OPEN CART PAYMENT MODULE!
Post by: NarC on December 25, 2014, 05:52:20 PM
If anyone uses wordpress, check out my product: https://bitcointalk.org/index.php?topic=903623.msg9937935