Skip to content

Commit af7e94d

Browse files
authored
Refactor HTTP GET request to use query string
1 parent cf90e18 commit af7e94d

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/API/Verification.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@ public function resolveAccount(ResolveAccountOptions|array $options): array
2323
$options = new ResolveAccountOptions($options);
2424
}
2525

26-
$response = $this->httpClient->get('/bank/resolve', [
27-
'query' => $options->all()
28-
]);
26+
$params = $options->all();
27+
$queryString = http_build_query($params);
28+
29+
$response = $this->httpClient->get("/bank/resolve?{$queryString}");
2930

3031
return ResponseMediator::getContent($response);
3132
}
@@ -59,4 +60,4 @@ public function resolveCardBin(string $bin): array
5960

6061
return ResponseMediator::getContent($response);
6162
}
62-
}
63+
}

0 commit comments

Comments
 (0)