Bitcoin Forum
June 23, 2024, 06:27:46 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1] 2 »
1  Bitcoin / Bitcoin Technical Support / Re: Zen Cart bitcoin payment module HELP on: August 22, 2011, 07:26:36 PM
Glad you got it up and running.

I'd hate to be the bearer of bad news, but I am thinking about taking down Coin Daemon this week due to lack of funds to pay for it and the intense amount of disk space required to host the blocks.  I can give you some pointers on hosting your own bitcoind if you would like.
2  Bitcoin / Bitcoin Technical Support / Re: Zen Cart bitcoin payment module HELP on: August 22, 2011, 06:16:25 PM
Are you running PHP5 on this server or PHP4?  The lines noted by the error message match with the "try-catch" exception.  I don't believe try-catches worked in PHP4.
3  Bitcoin / Bitcoin Discussion / Re: Getting banned for telling everybody that X is a scam? on: June 15, 2011, 07:21:30 PM
This was definitely spam.  I received the same message.  I did not download the image as it wasn't an image at all, but rather a malicious payload.  Hope you didn't contract it....
4  Bitcoin / Project Development / Re: BitcoinBB - New Bitcoin forum on: June 13, 2011, 09:00:40 PM
I don't mean to laugh.  But maybe you should title your post "Yet Another Bitcoin Forum"


yeesh
5  Bitcoin / Project Development / Re: Bitcoin Payment Module for Magento on: June 11, 2011, 10:16:08 PM
Okay,

This is "usable", see Issues for my current primary concerns.  Nothing critical that would flaw payments, but not good.

https://github.com/jalder/Magento-Bitcoin-Payment-Module

Let the enhancements begin.
6  Bitcoin / Project Development / Re: Bitcoin Payment Module for Magento on: June 11, 2011, 07:09:00 PM
Okay, since I am quite a bit farther along than  ben-abuya with the module. I will be posting my version here shortly this evening.

I currently have the admin backend where you configure your RPC URL, and I also have the payment block that shows the visitor what address they need to send payment to, which is dynamically generated for each checkout session.  Obviously more features are needed, but this is a really good core for it.  My only concern is one of the other developers grabbing it and profiting, obviously that wouldn't make me feel good about the time I put into it.
7  Bitcoin / Project Development / Re: Zen Cart Bitcoin Payment Module on: June 10, 2011, 12:27:54 AM
Yo
I'ma let you finish...


but what I would consider doing is setting USD as default. Pricing things in terms of USD, updating just the BTC currency rate table at cron.  Then in your template header, set the $_SESSION['currency'] to bitcoin so it is the default.  This way you don't have to continually modify your script every time you add a new product.
8  Bitcoin / Project Development / Re: Zen Cart Bitcoin Payment Module on: June 09, 2011, 10:52:50 PM
As I understand it, zencart requires a fixed point of reference and then you put in the currency conversion for all other currencies.  There may be a way to hack around this, but what I think you are suggesting is in zencart when you create or edit a product, you want a list of currencies and how much to charge for the item for each currency regardless of conversion equality?

Otherwise, I think you may just be mixed up, if BTC is set as the default, and you set a product at that BTC value, then you would be adjusting the USD equivalent with the rate update script, and vice versa for USD is the default (frame of reference).

Anywho, as promised, here is a short little script to take the mtgox ticker and break it down into an array.  I've included a curl function to make it even easier for you.

Code:
<?php 


$data 
curl_grab_page('https://mtgox.com/code/data/ticker.php');

$data str_replace('{"ticker":','',$data);
$data str_replace('}}','}',$data);

$mtgox json_decode($data,true);

var_dump($mtgox);  //This is your mtgox data, use this to perform some math and update the currency table

function 
curl_grab_page($url,$ref_url,$data,$login,$proxy,$proxystatus){
    if(
$login == 'true') {
        
$fp fopen("cookie.txt""w");
        
fclose($fp);
    }
    
$ch curl_init();
    
curl_setopt($chCURLOPT_COOKIEJAR"cookie.txt");
    
curl_setopt($chCURLOPT_COOKIEFILE"cookie.txt");
    
curl_setopt($chCURLOPT_USERAGENT"Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)");
    
curl_setopt($chCURLOPT_TIMEOUT40);
    
curl_setopt($chCURLOPT_RETURNTRANSFERTRUE);
    if (
$proxystatus == 'true') {
        
curl_setopt($chCURLOPT_HTTPPROXYTUNNELTRUE);
        
curl_setopt($chCURLOPT_PROXY$proxy);
    }
    
curl_setopt($chCURLOPT_SSL_VERIFYHOST0);
    
curl_setopt($chCURLOPT_SSL_VERIFYPEER0);

    
curl_setopt($chCURLOPT_URL$url);
    
curl_setopt($chCURLOPT_RETURNTRANSFER1);
    
curl_setopt($chCURLOPT_REFERER$ref_url);

    
curl_setopt($chCURLOPT_HEADERFALSE);
    
curl_setopt($chCURLOPT_USERAGENT$_SERVER['HTTP_USER_AGENT']);
    
curl_setopt($chCURLOPT_FOLLOWLOCATIONTRUE);
    
curl_setopt($chCURLOPT_POSTTRUE);
    
curl_setopt($chCURLOPT_POSTFIELDS$data);
    
ob_start();
    
$output curl_exec ($ch);
    
ob_end_clean();
    
curl_close ($ch);
    unset(
$ch);
    return  
$output;// execute the curl command    
}



edit: realized i left a header() in there.  removed.
9  Bitcoin / Project Development / Re: Zen Cart Bitcoin Payment Module on: June 09, 2011, 02:25:38 PM
Valhalla1,

I have a script at home that pulls down mtgox ticker data and puts it into php variables.  Keep in mind that you will probably want some kind of average to be taken rather than the most current price.

I will post the snippet later today.

Kind Regards
10  Bitcoin / Project Development / Re: Coin Daemon beta testing and feedback on: June 09, 2011, 02:21:09 PM
Thanks for the kind feedback so far!  Smiley

My team and I will have an official introduction up before launch, we are pretty busy putting the final touches on the service.

As for currency storage, while you can certainly store as much as you would like in your wallet at Coin Daemon, I do not intend for this to be its primary function.  As with Paypal and many other ecommerce payment and transfer services, I expect most shop owners to use the service for its uptime and reliability and to move their payments to their local wallets after payments have been cleared and products delivered to their end clients.  In fact, we will probably assist with writing scripts for cron jobs and scheduled tasks to pull the funds down from Coin Daemon to their local clients.

When I was putting together the Zen Cart plugin for bitcoin, I witnessed the need for shop owners to have an always available bitcoind rpc service with which to track and provide their clients with payment addresses.  This is where Coin Daemon spawned from.
11  Bitcoin / Project Development / Coin Daemon beta testing and feedback on: June 09, 2011, 03:54:43 AM
Introducing Coin Daemon https://www.coindaemon.com/

It is still in beta, but wanted to get some feedback from the community regarding the service.  If you run an ecommerce store and are interested in beta testing the service, please let me know.

Thanks!
12  Bitcoin / Bitcoin Technical Support / Re: Are there any publicly available bitcoind servers? on: June 09, 2011, 03:23:41 AM
How about something like this?

https://www.coindaemon.com/


About finished with beta testing.  Let me know if interested.
13  Bitcoin / Project Development / Re: Zen Cart Bitcoin Payment Module on: June 06, 2011, 06:38:52 PM
automatic currency updates is something that has been discussed for a while.  It really wouldnt be too difficult to do, I could write up a cron job that will run every X minutes/hours to average the mtgox USD rate and update the zencart rate.

I have to finish a few other projects I've been working on in my free time before I can write that script though.
14  Bitcoin / Project Development / Re: Zen Cart Bitcoin Payment Module on: June 06, 2011, 03:47:51 PM
Hi Valhalla1,

Regarding the addresses, from this line you can see that it generates a new account and address for each transaction:
$address = $bitcoin->getaccountaddress($order->customer['email_address'].'-'.session_id());

So the customers email address- session_id are the unique identifiers for the account.  By this method it creates a unique payment address for each session, as a typical user would make one checkout per session.  You are experiencing the same payment address over and over as you are testing with the same session.  This can be modified in a future release if you would like.

Regarding the link, do you have this file uploaded? / includes / boxes / extra_boxes / bitcoin_extras_dhtml.php

If so, it should automagically create the link, let me know otherwise.

The currency aspect is kind of decoupled from the payment gateway.  So this question may be a bit outside my area of expertise.  I will look further into it and let you know of any updates.

As for the repeated ordering, it leaves the payment state as Pending, I think there may be a setting in zencart to not deduct from quantity dependant on the order status.  Currently the module requires manual confirmation of the funds being deposited into the account.  There are some helper links at the admin/bitcoin.php table.
15  Bitcoin / Project Development / Re: Bitcoin Payment Module for Magento on: May 25, 2011, 08:38:42 PM
Sorry I haven't updated in a few days, though I do have a full time job and busy with LOTS of projects.

I do have some code down for magento already, though it isn't functional yet.

Would you guys prefer if I put what I have up on github so others can fork it and get this going quicker than a one man project can provide?
16  Bitcoin / Project Development / Re: Bitcoin Payment Module for Magento on: May 20, 2011, 11:23:11 PM
The plugins I mentioned are at Github https://github.com/jalder

I'll get started on the magento plugin this weekend if there isn't any existing codebase.

Will keep you updated.
17  Bitcoin / Project Development / Re: Bitcoin Payment Module for Magento on: May 19, 2011, 07:23:54 PM
Wow, for a 10btc bounty I'll definitely man this project.

However, would just like to say that others have promised bounties for both the whmcs and the zencart modules I wrote, never received a single donation...
18  Bitcoin / Project Development / Re: Zen Cart Bitcoin Payment Module on: May 14, 2011, 04:29:33 PM
Hi Neil,

I foresaw that as a problem people would encounter.  I am currently building a platform for hosted bitcoind instance for end users.  This way you don't need to keep you home computer on all the time and will be able to connect to my service which will offer isolated bitcoind instances and wallets, unlike mybitcoin....  It will be a hosting service similar to a hosted website service (if that clarifies things for you).

I will be looking for beta testers very soon.  If you are interested in beta testing, PM me with your website and email and we can take it from there.

Best Regards,
face
19  Bitcoin / Project Development / Re: MtGox ticker issues on: May 12, 2011, 01:57:36 PM
I think one of the biggest issues with the way mtgox put together their feed is that their server requires you to post for a jsonp if you are doing cross-domain scripting, which is correctly.  However, when they return the content type, it comes back as text/html.  This causes the $.get() in jQuery to break as it was expecting the headers to read application/json, I'd love if magical tux would correct the headers sent back.
20  Bitcoin / Project Development / MtGox ticker issues on: May 12, 2011, 01:38:57 AM
Does anyone else have trouble pulling a jQuery.get() from the mtgox /code/data/ticker.php?  For the life of me I couldn't figure out why my jsonp request failed repeatedly.  I put together a relay script to return it correctly, at least for my scripts.  Feel free to use it.

http://btc.jalder.com/mtgox.php

example usage:
Code:
$(document).ready(function() {	
$('#update').click(function(){
     $.get('http://btc.jalder.com/mtgox.php',null,function(data){
$.each(data, function() {
$.each(this, function(k,v) {
                                       //Do something interesting with the data
});
});
},'jsonp');
              return false;
});
});
Pages: [1] 2 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!