Bitcoin Forum

Other => Beginners & Help => Topic started by: bigbeninlondon on May 22, 2012, 04:02:34 PM



Title: Paysius
Post by: bigbeninlondon on May 22, 2012, 04:02:34 PM
Hey All,

I'm trying to test out paysius before I put it on a working merchant site, but I'm having a hard time figuring it out.

I'm using PHP and cURL, but it appears that I can't connect to their server.  Here's the pertinent info:

I've got the CA.pem installed on my server next to this php
Code:
<?
$gate = "https://paysius.com:53135/api/getnewaddress"

$post_string = "qty=1&key=8GEb5x01u3&hmac=7c3a4c7c2f629942e90983c97db8bae160b822620d16484d1c758daa182421663c0f32c1be58084dcea0054e1eb0cef8e18b2b003841c0e5199193a8b2487d63"

   $curl = curl_init($gate);
   curl_setopt($curl, CURLOPT_PORT, '53135');
   curl_setopt($curl, CURLOPT_RETURNTRANSFER, TRUE);
   curl_setopt($curl, CURLOPT_CAINFO, getcwd() . "/CA.pem");
   curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
   curl_setopt($curl, CURLOPT_FORBID_REUSE, TRUE);
   curl_setopt($curl, CURLOPT_FRESH_CONNECT, TRUE);
   curl_setopt($curl, CURLOPT_POST, TRUE);
   curl_setopt($curl, CURLOPT_FOLLOWLOCATION, false);
   curl_setopt($curl, CURLOPT_POSTFIELDS, $post_string);

   $response = curl_exec($curl);
 
   if (curl_errno($curl))
      echo curl_errno($curl);
   else
      var_dump($response);
?>

However, I keep getting a cURL error 7, which tells me that it can't connect.  Anyone else use Paysius?  What am I missing?


Title: Re: Paysius
Post by: bigbeninlondon on May 22, 2012, 08:09:32 PM
Bump - Anyone?  Anyone at all?  I would love to at least confirm whether or not Paysius api gates are up and running.


Title: Re: Paysius
Post by: ShireSilver on May 23, 2012, 01:23:58 AM
I got it working on my site ( http://shiresilver.com ) using a module I just had to install and configure. There was one purchase attempt that failed the other day (probably just a network glitch) but other than that its worked fine for me.


Title: Re: Paysius
Post by: bearbones on May 23, 2012, 01:44:34 AM
However, I keep getting a cURL error 7, which tells me that it can't connect.  Anyone else use Paysius?  What am I missing?

This error is almost always caused by your firewall. Can you establish outgoing TCP connections on port 53135? If not, you need to open up said port to https://paysius.com.

[EDIT]
not sure why I wrote coinapult.com the first time... long day
[/EDIT]


Title: Re: Paysius
Post by: bigbeninlondon on May 24, 2012, 12:50:56 AM
bearbones thanks!  Turns out HostGator automatically closes all of the ports that are not in use and requires you to request to open specific ports on demand.

Everything is working GREAT now!  


Title: Re: Paysius
Post by: BCB on May 24, 2012, 01:13:47 AM
You don't need"

   curl_setopt($curl, CURLOPT_POST, TRUE);

if you are setting:

   curl_setopt($curl, CURLOPT_POSTFIELDS, $post_string);

It's redundant.


Title: Re: Paysius
Post by: gigantic on August 28, 2012, 01:56:19 PM
thanks for the info,

another question-

let's say i got 5 orders, and i can see 3 of the orders on paysius- paid, and i am using Magento, how will i know from which of the 5 costumers, which one paid ?
how do i link the payment on paysius to the costumers on Magento?