diff --git a/src/Vendors/IslamiBankApi.php b/src/Vendors/IslamiBankApi.php index 88553e3..9a76501 100644 --- a/src/Vendors/IslamiBankApi.php +++ b/src/Vendors/IslamiBankApi.php @@ -896,7 +896,7 @@ private function __beneficiaryIdentityTypeCode(int $code): string * * @return array|string|string[] */ - private function __accountTypeCode(string $code): array|string + public function accountTypeCode(string $code): array|string { $return = [ '01' => 'AWCA (Current)', @@ -914,6 +914,11 @@ private function __accountTypeCode(string $code): array|string '71' => 'Remittance card', ]; - return $return[$code]; + if($code == ''){ + $returnValue = $return; + }else{ + $returnValue = $return[$code]; + } + return $returnValue; } }