I need to integrate paypal payments advanced in a website. I have configured the required settings on manager.paypal.com.
Now I am making secure http request using curl. But curl_exec doesn't returns anything. Here is my code. I have confirmed that all the variables have correct values.
$ch=curl_init();
curl_setopt($ch, CURLOPT_URL, $pf_host_addr);
curl_setopt($ch, CURLOPT_RETURNTRANSFER , TRUE);
curl_setopt($ch,CURLOPT_POST,TRUE);
curl_setopt($ch,CURLOPT_POSTFIELDS, $postdata);
$resp=curl_exec($ch);
if(!$resp)
{
return "<p>Failed</p>";
}
I get failed as output.
Official documentation on this page is quite helpful
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.