Jan 12th, 2012, 12:08 PM
Hi just1ncase,
Thanks for the post!
Yes, we noticed this ourselves - but I don't believe the patch has made it's way into the PayPal integration zipfile that we offer through this site.
So yes, what's happening is that the IPN script you specified within PayPal is being called when you do the refund through their interface, triggering the emails. To remedy this, just edit your ipn.php file (or whatever it's called) and add this at the very top:
Paypal includes a "payment_status" key in their POST request containing the value "Refunded". So, we just check for it, then immediately close.
Hope this helps!
- Ben
Thanks for the post!
Yes, we noticed this ourselves - but I don't believe the patch has made it's way into the PayPal integration zipfile that we offer through this site.
So yes, what's happening is that the IPN script you specified within PayPal is being called when you do the refund through their interface, triggering the emails. To remedy this, just edit your ipn.php file (or whatever it's called) and add this at the very top:
PHP Code:
if ($_POST["payment_status"] == "Refunded")
{
exit;
}
// ... the rest of your code here
Paypal includes a "payment_status" key in their POST request containing the value "Refunded". So, we just check for it, then immediately close.
Hope this helps!
- Ben