public function getFields() { if ($this->isCustom()) { return ['name' => '', 'text' => '']; } else { return Omnipay::create($this->provider)->getDefaultParameters(); } }