Skip to content

Commit

Permalink
Merge pull request #16 from DrH97/dev-dr
Browse files Browse the repository at this point in the history
Dev dr
  • Loading branch information
DrH97 authored Jan 11, 2022
2 parents 8e4e820 + c97f245 commit 2c56bf8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Http/Controllers/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function instantPaymentNotification(Request $request)
$tandaRequest = TandaRequest::updateOrCreate(['request_id' => $request->input('transactionId')], [
'status' => $request->input('status'),
'message' => $request->input('message'),
'receiptNumber' => $request->input('receiptNumber'),
'receipt_number' => $request->input('receiptNumber'),
'last_modified' => Carbon::parse($request->input('timestamp'))->utc(),
'result' => $request->input('resultParameters'),
]);
Expand Down
6 changes: 4 additions & 2 deletions src/Library/Utility.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@ public function billPayment(
$this->setCommand($this->provider);

if (in_array($provider, [Providers::KPLC_PREPAID, Providers::KPLC_POSTPAID])) {
$this->provider = 'KPLC';
$provider = 'KPLC';
} else {
$provider = $this->provider;
}

// TODO: Check whether customerContact is necessary or what it is used for.
Expand All @@ -129,7 +131,7 @@ public function billPayment(

$body = [
'commandId' => $this->command,
'serviceProviderId' => $this->provider,
'serviceProviderId' => $provider,
'requestParameters' => $requestParameters
];

Expand Down

0 comments on commit 2c56bf8

Please sign in to comment.