Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How do I make sure Curl is installed, anyone?


steward dondi

Recommended Posts

I installed the veloct module for fastransact and it said this in the contribution page:

 

VELOCT Direct Mode Module

for osCommerce Online Merchant v2.2

This is the payment module for VELOCT, FastTransact's Payment Gateway (www.fasttransact.com).<br><br>

It uses direct mode to connect to the gateway so make sure to have Curl installed.<br><br>

If you have any problems or questions please email me at [email protected]

 

 

Could you tell me how I check to see if curl is installed. I dont know where to look as well to see if it is. There is also more coding on the contrib page if certain port are not open:

 

Ports 1401 and 1402 joshhulbert 1 Aug 2007

 

If you are hosting your oscommerce store on a hosting provider who does not allow traffic out on ports 1401 and/or 1402, consider the following modifications:

 

// BEGIN PHP_CURL.DLL CODE - Author: Peter Drake - 4/29/03 // Use for Win32 or Unix-type systems with php-curl.dll // Get a CURL handle

$curl_handle = curl_init();

 

// Tell CURL the URL of the CGI

 

$URL="https://secure-dm3.ezic.com:443/gw/sas/direct3.1";

curl_setopt ($curl_handle, CURLOPT_VERBOSE, 1); curl_setopt ($curl_handle, CURLOPT_HTTPPROXYTUNNEL, TRUE); curl_setopt ($curl_handle, CURLOPT_PROXYTYPE, CURLPROXY_HTTP); curl_setopt ($curl_handle, CURLOPT_PROXY,"http://proxy.shr.secureserver.net:3128");

curl_setopt ($curl_handle, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt ($curl_handle, CURLOPT_URL, $URL); curl_setopt ($curl_handle, CURLOPT_TIMEOUT, 120);

 

// This section sets various options. See http://www.php.net/manual/en/function.curl-setopt.php

// for more details

 

curl_setopt($curl_handle, CURLOPT_FOLLOWLOCATION, 1);

curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, 1);

curl_setopt($curl_handle, CURLOPT_POST, 1);

curl_setopt($curl_handle, CURLOPT_POSTFIELDS, $data);

curl_setopt($curl_handle, CURLOPT_SSL_VERIFYPEER, 0);

curl_setopt($curl_handle, CURLOPT_SSL_VERIFYHOST, 0);

 

// Perform the POST and get the data returned by the server.

$response = curl_exec ($curl_handle) or die ("There has been an error connecting to VELOCT.");

 

// Close the CURL handle

curl_close ($curl_handle);

 

//END PUP_CURL.DLL CODE

 

 

 

thanks for your input,

 

Steward Dondi

Link to comment
Share on other sites

Administration > Tools > Server Info ... then look for Curl

 

 

Thank you Mav I see it:

 

says this:

 

curl

CURL support enabled

CURL Information libcurl/7.10.6 OpenSSL/0.9.7a ipv6 zlib/1.2.3

 

 

is this correct how it should be?

 

THanks a bunch

 

Steward Dondi

Link to comment
Share on other sites

  • 3 weeks later...
Thank you Mav I see it:

 

says this:

 

curl

CURL support enabled

CURL Information libcurl/7.10.6 OpenSSL/0.9.7a ipv6 zlib/1.2.3

is this correct how it should be?

 

THanks a bunch

 

Steward Dondi

 

What do you do if you cannot see curl anywhere ?

 

How do you install it ?

Link to comment
Share on other sites

  • 8 months later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...