This is a discussion on VELOCT Direct Mode Module within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; If you are hosting your oscommerce store on a hosting provider who does not allow traffic out on ports 1401 ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| ||||
| ||||
| 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 More...
__________________ Michael Sasek osCMax Developer
|
| Sponsored Links | ||
| ||
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| VELOCT Direct Mode Module | michael_s | New osCommerce Contributions | 0 | 06-07-2007 12:13 PM |
| epayment romania IPN mode | michael_s | New osCommerce Contributions | 0 | 03-21-2007 05:01 AM |
| Direct Deposit Payment module | learoypc | osCMax v1.7 General Mods Discussion | 1 | 03-06-2005 09:02 PM |
| Admin not going into security mode | goldie | osCommerce 2.2 Modification Help | 4 | 11-16-2003 12:32 PM |
| Safe Mode OFF !!! Help Please | oliverm | osCommerce 2.2 Installation Help | 8 | 03-07-2003 01:19 AM |