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