Forum Moderators: buckworks

Message Too Old, No Replies

PP IPN payment status change from Pending to Completed, POST vars

Do all the original POST variables get sent back to my IPN listener?

         

amature_php

12:20 am on Jan 18, 2011 (gmt 0)

10+ Year Member



Does PayPal send back all of the POST variables when payment_status changes from "Pending" to "Completed" even if its several hours/days later? Say someone pays for my digital service with an e-check, the $POST[] variable "payment_status" could potentially be "Pending". I haven't experienced it myself but I've read this happens occasionally and that PayPal will send another IPN to my IPN listener as soon as the payment is completed. My question is whether the follow-up IPN changing "Pending" to "Completed" contains all of the original POST variables such as:

$txn_id = $_POST['txn_id'];
$receiver_email = $_POST['receiver_email'];
$item_number = $_POST['item_number'];
$payer_email = $_POST['payer_email'];

etc...

Any help is greatly appreciated

Thanks

amature_php

12:09 am on Jan 23, 2011 (gmt 0)

10+ Year Member



If my post is too confusiong, I have no problem trying to clarify. Should I move to a different topic(ie PHP)? Let me know, I really need help.

Thanks

rocknbil

7:05 pm on Jan 25, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



No, as I recall it only sends a token (the id) and the status. The way you handle it is store the data on your server before sending them to payPal, then when the IPN comes in update some field accordingly (completed, declined, etc.) It's also at this point you send any verification emails.

amature_php

9:42 pm on Jan 25, 2011 (gmt 0)

10+ Year Member



Awesome, thank you for the info! This helps a lot, I really appreciate your post.

Thanks