integrate paypal payments advanced with curl in php -
I need to integrate advanced paypal payments into a website. I have configured the necessary settings on manager.paypal.com .
I am now using the safe http request curl. But curl_exec does not return anything here is my code. I have confirmed that all the variables have the 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 " unsuccessful "; }
I failed as output
official document This page is quite useful
Comments
Post a Comment