Skip to content

Commit

Permalink
upgraded minimum php version from 7.2 to 7.4 to ensure type hinting i…
Browse files Browse the repository at this point in the history
…s not hindered
  • Loading branch information
e-Miracle committed Sep 16, 2022
1 parent 2e7977f commit 46182a7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
],
"minimum-stability": "dev",
"require": {
"php": "^7.2|^8.0",
"php": "^7.4|^8.0",
"illuminate/support": "^5.0|^6.0|^7.0|^8.0|^9.0"
},
"require-dev": {
Expand Down
10 changes: 2 additions & 8 deletions src/Kudaping.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,11 @@ final class Kudaping

public function __construct()
{
/*$this->emailAddress = config('kudaping.emailAddress');
$this->emailAddress = config('kudaping.emailAddress');
$this->apiKey = config('kudaping.apiKey');
$this->environment = config('kudaping.environment');
$this->transactionPrefix = config('kudaping.transactionPrefix');
$this->liveUrl = "https://kuda-openapi.kuda.com/v2";
$this->testUrl = "https://kuda-openapi-uat.kudabank.com/v1";*/
$this->emailAddress = env('KUDA_EMAIL_ADDRESS');
$this->apiKey = env('KUDA_API_KEY');
$this->environment = 'live';
$this->transactionPrefix = 'kuda';
$this->liveUrl = "https://kuda-openapi.kuda.com/v2";
$this->testUrl = "https://kuda-openapi-uat.kudabank.com/v2";
$this->testUrl = "https://kuda-openapi-uat.kudabank.com/v1";
}
}
9 changes: 7 additions & 2 deletions src/Traits/BankList.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,19 @@

trait BankList
{
public function getBankList()
public function getBankList($reference = null)
{
if (is_null($reference)){
$reference = $this->generateRequestReference();
}
return [
'body'=>$this->sendRequestWithRef(
'BANK_LIST',
$this->generateRequestReference(),
$reference,
[]
),
'param'=>[],
'reference'=>$reference
];
}
}

0 comments on commit 46182a7

Please sign in to comment.