diff --git a/src/Provider/Mim.php b/src/Provider/Mim.php index e231ae0..426e81a 100644 --- a/src/Provider/Mim.php +++ b/src/Provider/Mim.php @@ -80,8 +80,8 @@ public function errorException() if (!array_key_exists('apikey', $this->senderObject->getConfig())) { throw new XenonException('apikey is absent in configuration'); } - if (!array_key_exists('apitoken', $this->senderObject->getConfig())) { - throw new XenonException('apitoken is absent in configuration'); + if (!array_key_exists('username', $this->senderObject->getConfig())) { + throw new XenonException('username is absent in configuration'); } if (strlen($this->senderObject->getMobile()) > 11 || strlen($this->senderObject->getMobile()) < 11) { throw new XenonException('Invalid mobile number. It should be 11 digit');