Skip to content

Commit

Permalink
Merge pull request #26 from apoca/develop
Browse files Browse the repository at this point in the history
closed: #25 - Checkout status must be a GET not a POST
  • Loading branch information
apoca authored Apr 12, 2019
2 parents 015b0d8 + 9905087 commit a6423eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Brands/Transaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function status(): object
try {
$client = new Client($this->clientConfig);

$response = $client->post($this->endpoint . "checkouts/{$this->getCheckoutId()}/payment?entityId=" . config('sibs.authentication.entityId'),
$response = $client->get($this->endpoint . "checkouts/{$this->getCheckoutId()}/payment?entityId=" . config('sibs.authentication.entityId'),
[
'headers' => [
'Authorization' => config('sibs.authentication.token'),
Expand Down
2 changes: 1 addition & 1 deletion tests/Feature/SibsServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ public function verifyResponseStatusInvalidEntity(): void
$response2 = Sibs::status($response->response->id);

$this->assertSame($response->status, 200);
$this->assertSame($response2->status, 400);
$this->assertSame($response2->status, 200);
}
}

0 comments on commit a6423eb

Please sign in to comment.