View Single Post
  #10  
Old 02-27-2005, 10:26 PM
 
svowl svowl is offline
 

X-Cart team
  
Join Date: Jan 2003
Posts: 937
 

Default

2bjosa: The Cardia Shop payment module works correctly. Your problem was in the HTTPS bouncer. You are used OpenSSL that did not send some of HTTP headers by a proper way. This also regards the CURL executable HTTPS bouncer (libCURL HTTPS bouncer works correctly). Now it's fixed. Below is a patch used to fix your issue:

Code:
Index: payment/func_https_tunneling_bouncer.php =================================================================== diff -u payment/func_https_tunneling_bouncer.php:1.13.2.2 payment/func_https_tunneling_bouncer.php:1.13.2.3 --- payment/func_https_tunneling_bouncer.php:1.13.2.2 Wed Jan 12 10:43:12 2005 +++ payment/func_https_tunneling_bouncer.php Fri Feb 25 15:14:17 2005 @@ -82,7 +82,11 @@ // Additional headers if($headers != "") { foreach($headers as $k=>$v) { + if(is_integer($k)) { + $request[] = $v; + } else { $request[] =$k.": ".$v; + } } } Index: payment/func_https_curl.php =================================================================== diff -u payment/func_https_curl.php:1.24.2.5 payment/func_https_curl.php:1.24.2.6 --- payment/func_https_curl.php:1.24.2.5 Wed Jan 12 10:43:12 2005 +++ payment/func_https_curl.php Fri Feb 25 15:14:17 2005 @@ -148,7 +148,11 @@ # Additional headers if($headers != "") { foreach($headers as $k=>$v) { - $execline.=" -H \"$k: ".addslashes($v)."\""; + if (is_integer($k)) { + $execline .= " -H \"".addslashes($v)."\""; + } else { + $execline .= " -H \"$k: ".addslashes($v)."\""; + } } }

2chilll33: your problem may be caused by upgrading issues. Only one modification was made between 4.0.11 and 4.0.12 and this modification regards the testing of the libCURL availability:

Quote:
Tue Feb 08 11:34:46 MSK 2005 [!] - mclap - Bug: Curl wasn't detected on PHP5 because the function curl_version() in PHP5 returns an array value instead of a string value (Because of this Curl could not be used as an HTTPS bouncer even though it was installed in the system). Fixed.

You can see the details here: http://www.php.net/manual/en/function.curl-version.php
Please contact our support team to get help.
__________________
Vladimir Semyonov
Lead Software Engineer
Reply With Quote