$this->encodePrimaryKey($gateway->id), 'name' => (string)$gateway->name ?: '', 'key' => (string)$gateway->key ?: '', 'provider' => (string)$gateway->provider ?: '', 'visible' => (bool)$gateway->visible, 'sort_order' => (int)$gateway->sort_order, //'recommended' => (bool)$gateway->recommended, 'site_url' => (string)$gateway->site_url ?: '', 'is_offsite' => (bool)$gateway->is_offsite, 'is_secure' => (bool)$gateway->is_secure, 'fields' => (string)$gateway->fields ?: '', 'updated_at' => (int)$gateway->updated_at, ]; } }