Skip to content

Commit

Permalink
Return value must be of type array
Browse files Browse the repository at this point in the history
  • Loading branch information
mah-shamim committed May 4, 2024
1 parent bea5afc commit 5af6e43
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Vendors/IslamiBankApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function fetchBalance(string $currency): array
$soapMethod = 'fetchBalance';
$response = $this->connectionCheck($xmlString, $soapMethod);

return $response['Envelope']['Body'];
return explode('|', $response['Envelope']['Body']);
}

/**
Expand All @@ -80,7 +80,7 @@ public function fetchAccountDetail(array $data): array
$soapMethod = 'fetchAccountDetail';
$response = $this->connectionCheck($xmlString, $soapMethod);

return $response['Envelope']['Body'];
return explode('|', $response['Envelope']['Body']);
}

/**
Expand All @@ -100,7 +100,7 @@ public function fetchRemittanceStatus(array $data): array
$soapMethod = 'fetchWSMessageStatusResponse';
$response = $this->connectionCheck($xmlString, $soapMethod);

return $response['Envelope']['Body'];
return explode('|', $response['Envelope']['Body']);
}

/**
Expand Down Expand Up @@ -144,7 +144,7 @@ public function directCreditRemittance(array $data): array
$soapMethod = 'directCreditWSMessage';
$response = $this->connectionCheck($xmlString, $soapMethod);

return $response['Envelope']['Body'];
return explode('|', $response['Envelope']['Body']);
}

/**
Expand Down Expand Up @@ -256,7 +256,7 @@ public function validateBeneficiaryWallet(array $data): array
$soapMethod = 'validateBeneficiaryWallet';
$response = $this->connectionCheck($xmlString, $soapMethod);

return $response['Envelope']['Body'];
return explode('|', $response['Envelope']['Body']);
}

/**
Expand Down

0 comments on commit 5af6e43

Please sign in to comment.