php - PayPal curl can't execute -


have problem paypal pdt. sandbox url good, if using not sandbox url, exec can't do.

$data = array(     'cmd' => '_notify-synch',     'tx' => $pdt_tx,     'at' => $pdt_token ); $opts = array(     curlopt_url => 'https://www.paypal.com/cgi-bin/webscr',     curlopt_header => 0,     curlopt_nobody => 0,     curlopt_returntransfer => 1,     curlopt_post => 1,     curlopt_followlocation => 1,     curlopt_ssl_verifypeer => 1,     curlopt_postfields => http_build_query($data),     curlopt_verbose => true );  $curlhandler = curl_init(); curl_setopt_array( $curlhandler, $opts ); $output = curl_exec($curlhandler); curl_close($curlhandler); 


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -