Skip to content

Commit

Permalink
Fix return type for reverse and query session
Browse files Browse the repository at this point in the history
  • Loading branch information
Lloople committed Oct 26, 2023
1 parent 812cd40 commit 15f9716
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ public function createSession(
->object();
}

public function querySession(string $sessionId): PaymentResponse
public function querySession(string $sessionId): object
{
return Http::asJson()->post("{$this->settings->endpoint}/api/session/$sessionId", $this->getAuth())
->object();
}

public function reverse(string $reference): PaymentResponse
public function reverse(string $reference): object
{
return Http::asJson()->post("{$this->settings->endpoint}/api/reverse", [
...$this->getAuth(),
Expand Down

0 comments on commit 15f9716

Please sign in to comment.