/home/techb158/ileadtechnology.com/vendor/smodav/mpesa/src/Mpesa/C2B
NameSizeModeActions
Identity.php18230755editdlrm
Registrar.php36400755editdlrm
Simulate.php44700755editdlrm
STK.php69950755editdlrm
Edit: /home/techb158/ileadtechnology.com/vendor/smodav/mpesa/src/Mpesa/C2B/Identity.php (1823B)
validateNumber($number); $time = Carbon::now()->format('YmdHis'); $shortCode = $this->core->configRepository()->getAccountKey('lnmo.shortcode'); $passkey = $this->core->configRepository()->getAccountKey('lnmo.passkey'); $callback = $this->core->configRepository()->getAccountKey('lnmo.callback'); $defaultCallback = $this->core->configRepository()->getAccountKey('id_validation_callback'); $initiator = $this->core->configRepository()->getAccountKey('initiator'); $body = [ 'Initiator' => $initiator, 'BusinessShortCode' => $shortCode, 'Password' => $this->password($shortCode, $passkey, $time), 'Timestamp' => $time, 'TransactionType' => 'CheckIdentity', 'PhoneNumber' => $number, 'CallBackURL' => $callback ?: $defaultCallback, 'TransactionDesc' => ' ' ]; try { $response = $this->clientRequest( $body, $this->core->configRepository()->url(Endpoint::MPESA_ID_CHECK) ); return json_decode($response->getBody()); } catch (RequestException $exception) { return json_decode($exception->getResponse()->getBody()); } } }