@@ -165,6 +165,19 @@ abstract class Merchant extends AbstractDocumentEntity | |||
return $this; | |||
} | |||
public function getMerchantConfig($name) | |||
{ | |||
if($this->getMerchantConfigs()) { | |||
foreach($this->getMerchantConfigs() as $merchantConfig) { | |||
if($merchantConfig->getName() == $name) { | |||
return $merchantConfig->getValue() ; | |||
} | |||
} | |||
} | |||
return false ; | |||
} | |||
public function getAddress(): ?Address | |||
{ | |||
return $this->address; |