diff --git a/src/Drivers/RestDriver.php b/src/Drivers/RestDriver.php index 31b3b86..568e8ba 100644 --- a/src/Drivers/RestDriver.php +++ b/src/Drivers/RestDriver.php @@ -42,8 +42,8 @@ public function requestWithExtra($inputs) return ['Authority' => $result['Authority']]; } else { return [ - 'Status' => 'error', - 'error' => !empty($result['Status']) ? $result['Status'] : null, + 'Status' => 'error', + 'error' => !empty($result['Status']) ? $result['Status'] : null, 'errorInfo' => !empty($result['errors']) ? $result['errors'] : null, ]; } @@ -64,8 +64,8 @@ public function verify($inputs) return ['Status' => 'success', 'RefID' => $result['RefID']]; } else { return [ - 'Status' => 'error', - 'error' => !empty($result['Status']) ? $result['Status'] : null, + 'Status' => 'error', + 'error' => !empty($result['Status']) ? $result['Status'] : null, 'errorInfo' => !empty($result['errors']) ? $result['errors'] : null, ]; } @@ -84,14 +84,14 @@ public function verifyWithExtra($inputs) if ($result['Status'] == 100) { return [ - 'Status' => 'success', - 'RefID' => $result['RefID'], + 'Status' => 'success', + 'RefID' => $result['RefID'], 'ExtraDetail' => $result['ExtraDetail'], ]; } else { return [ - 'Status' => 'error', - 'error' => !empty($result['Status']) ? $result['Status'] : null, + 'Status' => 'error', + 'error' => !empty($result['Status']) ? $result['Status'] : null, 'errorInfo' => !empty($result['errors']) ? $result['errors'] : null, ]; } @@ -112,8 +112,8 @@ public function unverifiedTransactions($inputs) return ['Status' => 'success', 'Authorities' => $result['Authorities']]; } else { return [ - 'Status' => 'error', - 'error' => !empty($result['Status']) ? $result['Status'] : null, + 'Status' => 'error', + 'error' => !empty($result['Status']) ? $result['Status'] : null, 'errorInfo' => !empty($result['errors']) ? $result['errors'] : null, ]; }