Pages:
Author

Topic: Bounty PAID: BITCOIN OPEN CART PAYMENT MODULE! - page 2. (Read 20655 times)

newbie
Activity: 30
Merit: 0
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  Roll Eyes. 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

  
newbie
Activity: 50
Merit: 0
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  Roll Eyes. But I'll instruct my customers to add the ordernumber as a description. anyone can add a description to their payments right?
newbie
Activity: 30
Merit: 0
As for everyone else, if you're still having issues with my extension, email me at [email protected] 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 Smiley

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  Roll Eyes

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 Smiley
jga
member
Activity: 96
Merit: 10
http://btcgear.com

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 Wink

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 [email protected] 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.
sr. member
Activity: 462
Merit: 250
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  Roll Eyes
One can provide a discount for Bitcoin payments instead, but who cares about PayPal? Grin
newbie
Activity: 50
Merit: 0
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  Roll Eyes
newbie
Activity: 30
Merit: 0
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.
newbie
Activity: 50
Merit: 0
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 Wink

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 Grin 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..
newbie
Activity: 30
Merit: 0
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 Wink

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.
newbie
Activity: 50
Merit: 0
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 Wink
sr. member
Activity: 462
Merit: 250
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 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 Cheesy
That's not about my extension. Smiley
legendary
Activity: 1420
Merit: 1010
Ok I tried to setup both versions of this BTC plugin and both fail Sad 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 Cheesy
sr. member
Activity: 462
Merit: 250
Still not working for after about 20 minuts
What exactly is not working?
full member
Activity: 140
Merit: 100
BitFi Services
Still not working for after about 20 minuts
sr. member
Activity: 462
Merit: 250
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  Angry
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.
sr. member
Activity: 353
Merit: 250
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  Angry
member
Activity: 100
Merit: 10
Support the bitcoin economy, use BTC merchants
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?
sr. member
Activity: 462
Merit: 250
Raw Response
It's a positive result.

Looks like this is another stupid SELinux issue
Believable. So, have you managed to communicate with bitcoind?
sr. member
Activity: 353
Merit: 250
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



 
 
  Error 405 (Method Not Allowed)!!1
 
  Google
 

405. That’s an error.
 

The request method POST is inappropriate for the URL /That’s all we know.

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.
sr. member
Activity: 462
Merit: 250
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.
Pages:
Jump to: