Hello,
I am not familiar with cURL, and I am trying to integrate my shopping cart with PayPal's pro payments. I got their "test" setup to work fine, but live is giving an error:
Error 3: malformed
The error is called here:
if (curl_error($ch))
{
printf("Error %s: %s", curl_errno($ch), curl_error($ch));
}
I think the error means (from cURL):
CURLE_URL_MALFORMAT (3)
The URL was not properly formatted.
the URL is:
var $_apiURL = https://api.paypal.com/2.0/;
These are the actual functions:
function getCall() #@private function
{
Make the Soap Header available to us
#require_once("$this->_soapheader");
Everything is stored in the $SOAPrequest variable
require_once("$this->filename");
#require_once("$this->soapfooter");
A fully stacked XML call
$this->_request = $SOAPrequest;
}
function execute()
{
$this->getCall();
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,"$this->apiURL");
curl_setopt($ch, CURLOPT_SSLCERT, $this->cert);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_POSTFIELDS, "$this->_request");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$xmlResponse = curl_exec($ch);
$this->_result = $xmlResponse;
if (curl_error($ch))
{
printf("Error %s: %s", curl_errno($ch), curl_error($ch));
}
curl_close ($ch);
}
Any ideas on where I can start looking to fix this error?
Thanks!