The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
Paypal Refunds and Form Tools - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1) +--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5) +--- Thread: Paypal Refunds and Form Tools (/showthread.php?tid=1852) |
Paypal Refunds and Form Tools - just1ncase - Jan 12th, 2012 First of all, I just want to thank you for creating an easy to use Form backend database. For a graphic designer, these tools have been really helpful when working with clients who are need for form database solutions. I do have a question, however, in regards to Paypal refunds and Form Tools. Whenever I create a refund within Paypal, it would initiate an email confirmation of the transaction within Form Tools even though its not needed. Is there way to stop Form tools from sending out confirmation emails when refunding a transaction through Paypal? I'm not sure why it would do this. Let me know what your thoughts! I appreciate it! RE: Paypal Refunds and Form Tools - Ben - Jan 12th, 2012 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: PHP Code: if ($_POST["payment_status"] == "Refunded") 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 RE: Paypal Refunds and Form Tools - just1ncase - Jan 12th, 2012 Awesome, thanks for the fast response! I'll go ahead and input it within my existing IPN file. And, hopefully, it should work appropriately. RE: Paypal Refunds and Form Tools - Ben - Jan 13th, 2012 Finger's crossed! If you have any more trouble, let me know. - Ben |