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
Post a Comment