diff --git a/app/Models/AccountGateway.php b/app/Models/AccountGateway.php index a4027db6ef36..5e951285349e 100644 --- a/app/Models/AccountGateway.php +++ b/app/Models/AccountGateway.php @@ -60,13 +60,7 @@ class AccountGateway extends EntityModel public function getConfigField($field) { - $config = $this->getConfig(); - - if (!$field || !property_exists($config, $field)) { - return false; - } - - return $config->$field; + return object_get($this->getConfig(), $field, false); } public function getPublishableStripeKey()