Установка адреса callback для тестового режима

This commit is contained in:
Anthony Axenov 2020-05-30 01:57:38 +08:00
parent 7899daf421
commit f2b4952aa5

View File

@ -172,7 +172,7 @@ class Kkt extends Client
*/ */
public function setCallbackUrl(string $url) public function setCallbackUrl(string $url)
{ {
$this->kkt_config['prod']['callback_url'] = $url; $this->kkt_config[$this->isTestMode() ? 'test' : 'prod']['callback_url'] = $url;
return $this; return $this;
} }