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
<?
$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?