'no', 'test_client_id' => '', 'live_client_id' => '', 'test_api_key' => '', 'live_api_key' => '', 'payment_mode' => 'test', ]; } public function isActive(): bool { return $this->settings['is_active'] == 'yes'; } public function get($key = '') { if ($key && isset($this->settings[$key])) { return $this->settings[$key]; } return $this->settings; } public function getMode() { return $this->get('payment_mode'); } public function getClientId() { return $this->get('client_id'); } public function getApiKey() { return Helper::decryptKey($this->get('api_key')); } public function getWebhookSecret() { return Helper::decryptKey($this->get('webhook_secret')); } }