Skip to content

Commit

Permalink
Update ApiRequest.php
Browse files Browse the repository at this point in the history
 . $api added
  • Loading branch information
yourpayments authored Oct 4, 2023
1 parent 569da74 commit 988164d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ApiRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ private function sendGetRequest(string $api): array
$requestHttpVerb = 'GET';

if ($this->localModeIsOn) {
$urlToPostTo = self::LOCAL_HOST;
$urlToPostTo = self::LOCAL_HOST . $api;
} else {
$urlToPostTo = ($this->getSandboxMode() ? self::SANDBOX_HOST : self::HOST) . $api;
}
Expand Down

0 comments on commit 988164d

Please sign in to comment.