function get_enabled_payment_providers() { $result = array(); foreach (get_payment_providers() as $p) { if (payment_provider_enabled($p)) { $result[] = $p; } } return $result; }
public function enabled() { return payment_provider_enabled($this->name()); }