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); } }
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; }
public static function handle_form_submission($entry, $form) { if (class_exists('GFPayPal')) { $paypal_config = GFPayPal::get_config($form['id']); //don't send SMS if PayPal delay twilio setting is ON if (rgget('delay_twilio', $paypal_config['meta'])) { $order_total = GFCommon::get_order_total($form, $entry); if ($order_total != 0) { return; } } } self::export($entry, $form); }