PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Possible PayPal notification bug

  1. Hi,

    I think there may be a bug in the PayPal add-on related to the "Send admin (or user) notification email only when payment is received" options. I'm using the latest version 1.0 of the add-on. The code on lines 119 and 120 is:

    add_filter("gform_disable_user_notification", array("GFPayPal", "delay_notification"), 10, 3);
    add_filter("gform_disable_admin_notification", array("GFPayPal", "delay_autoresponder"), 10, 3);

    These "delay_notification" and "delay_autorespnder" filter hooks set a couple of config options, which are then read on lines 1987 - 1993, as follows:

    if($config && $config["meta"]["delay_notification"]){
               GFCommon::send_admin_notification($form, $entry);
            }
    
            if($config && $config["meta"]["delay_autoresponder"]){
               GFCommon::send_user_notification($form, $entry);
            }

    You can see in this second code sample that the admin notification relates to the 'delay_notification' option, and the user notification relates to 'delay_autoresponder'. However, in the first code sample the admin notification is linked to 'delay_autoresponder' hook. Should the filter hooks on lines 119 and 120 be the other way around?

    Andy

    Posted 13 years ago on Monday March 28, 2011 | Permalink
  2. We are looking into this, we had another user bring it to our attention also. We'll get it resolved via an update.

    Posted 13 years ago on Monday March 28, 2011 | Permalink