/ Published in: PHP
Expand |
Embed | Plain Text
// Send POST for data response $ch = curl_init(PAYPAL_URL); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS,'cmd=_notify-synch&tx='.$tx.'&at='.PAYPAL_TOKEN); curl_setopt($ch, CURLOPT_HEADER, 0); // DO NOT RETURN HTTP HEADERS curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // RETURN THE CONTENTS OF THE CALL $res = curl_exec($ch); // Log response // Parse response foreach ($lines as $line) { } if ($processed && $keyarray['payment_status'] == 'Completed') { echo "OK"; } else { }
You need to login to post a comment.
