Vote count:
0
I am using the PHP version of Paypal IPN, and have the following code to determine if there is an amount paid on the callback from paypal:
[code]
if(isset($_POST['mc_amount1'])){
$payment_amount = $_POST['mc_amount1'];
}elseif(isset($_POST['mc_gross'])){
$payment_amount = $_POST['mc_gross'];
}elseif(isset($_POST['payment_gross'])){
$payment_amount = $_POST['payment_gross'];
}else{
$payment_amount = "Amount Not Available";
}
[/code]
The problem is that sometimes it works, sometimes it doesnt, pay attention that my buyers are subscribers, they dont pay just an item they subscribe to me. But I had 2 accounts paid from same paypal and one query was the correct amount and the other one was amount not available, while when I checked the paypal ipn response it was exactly the same on both, just the user variable changed, but why it didn't catch the amount the second time?
Any tips will be appreciated.
Thanks in advance
asked 40 secs ago
PayPal IPN Subscriber Amount Paid variable not available
Aucun commentaire:
Enregistrer un commentaire