The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $newpmmsg - Line: 40 - File: global.php(841) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/global.php(841) : eval()'d code 40 errorHandler->error
/global.php 841 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5024 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 5024 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1415 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 1415 errorHandler->error
/inc/functions.php 1370 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
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")
{
  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! Smile

- 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. Smile


RE: Paypal Refunds and Form Tools - Ben - Jan 13th, 2012

Finger's crossed! If you have any more trouble, let me know. Smile

- Ben