Bitcoin Forum
April 18, 2024, 12:14:04 AM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Paysius  (Read 1449 times)
bigbeninlondon (OP)
Hero Member
*****
Offline Offline

Activity: 742
Merit: 500



View Profile
May 22, 2012, 04:02:34 PM
 #1

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?
1713399244
Hero Member
*
Offline Offline

Posts: 1713399244

View Profile Personal Message (Offline)

Ignore
1713399244
Reply with quote  #2

1713399244
Report to moderator
1713399244
Hero Member
*
Offline Offline

Posts: 1713399244

View Profile Personal Message (Offline)

Ignore
1713399244
Reply with quote  #2

1713399244
Report to moderator
1713399244
Hero Member
*
Offline Offline

Posts: 1713399244

View Profile Personal Message (Offline)

Ignore
1713399244
Reply with quote  #2

1713399244
Report to moderator
The forum strives to allow free discussion of any ideas. All policies are built around this principle. This doesn't mean you can post garbage, though: posts should actually contain ideas, and these ideas should be argued reasonably.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
bigbeninlondon (OP)
Hero Member
*****
Offline Offline

Activity: 742
Merit: 500



View Profile
May 22, 2012, 08:09:32 PM
 #2

Bump - Anyone?  Anyone at all?  I would love to at least confirm whether or not Paysius api gates are up and running.
ShireSilver
Sr. Member
****
Offline Offline

Activity: 382
Merit: 253



View Profile WWW
May 23, 2012, 01:23:58 AM
 #3

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.

Shire Silver, a better bullion that fits in your wallet. Get some, now accepting bitcoin!
bearbones
Sr. Member
****
Offline Offline

Activity: 316
Merit: 250



View Profile WWW
May 23, 2012, 01:44:34 AM
Last edit: May 23, 2012, 01:58:30 AM by bearbones
 #4

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]

Feed Ze Birds Pay and get paid for tweets
Coinapult Send Bitcoins easily over email or text message
bigbeninlondon (OP)
Hero Member
*****
Offline Offline

Activity: 742
Merit: 500



View Profile
May 24, 2012, 12:50:56 AM
 #5

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!  
BCB
CTG
VIP
Legendary
*
Offline Offline

Activity: 1078
Merit: 1002


BCJ


View Profile
May 24, 2012, 01:13:47 AM
 #6

You don't need"

   curl_setopt($curl, CURLOPT_POST, TRUE);

if you are setting:

   curl_setopt($curl, CURLOPT_POSTFIELDS, $post_string);

It's redundant.
gigantic
Member
**
Offline Offline

Activity: 89
Merit: 10



View Profile
August 28, 2012, 01:56:19 PM
 #7

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?
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!