if (! $fp) {
HTTP ERROR
else {
Fputs ($FP, $header. $req);
while (!feof ($fp)) {
$res = fgets ($fp, 1024);
if (strcmp ($res, "verified") = = 0) {
Check the payment_status is Completed
Check that txn_id has not been previously processed
Check that Receiver_email is your Primary PayPal email
Check that payment_amount/payment_currency are correct
Process Payment
}
else if (strcmp ($res, "INVALID") = = 0) {
Log for manual investigation
}
}
Fclose ($FP);
}
?>
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.