public function get_paypal_feed($form_id, $entry)
 {
     if (!class_exists('GFPayPal')) {
         return false;
     }
     if (method_exists('GFPayPal', 'get_config_by_entry')) {
         $feed = GFPayPal::get_config_by_entry($entry);
     } else {
         if (method_exists('GFPayPal', 'get_config')) {
             $feed = GFPayPal::get_config($form_id);
         } else {
             $feed = false;
         }
     }
     return $feed;
 }
Beispiel #2
0
 private static function get_paypal_config($form_id, $entry)
 {
     if (!class_exists('GFPayPal')) {
         return false;
     }
     if (method_exists("GFPayPal", "get_config_by_entry")) {
         return GFPayPal::get_config_by_entry($entry);
     } else {
         return GFPayPal::get_config($form_id);
     }
 }