From 54cb2114685b6ad2645dd84ab37fd6d03bb9b2a5 Mon Sep 17 00:00:00 2001 From: TomekTraczyk <86965379+TomekTraczyk@users.noreply.github.com> Date: Thu, 10 Nov 2022 13:35:39 +0100 Subject: [PATCH] Refunds request method fix (#35) --- src/Message/RefundsRequest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Message/RefundsRequest.php b/src/Message/RefundsRequest.php index e76e478..1410195 100644 --- a/src/Message/RefundsRequest.php +++ b/src/Message/RefundsRequest.php @@ -72,7 +72,7 @@ public function getData(): array */ public function sendData($data): ResponseInterface { - $httpResponse = $this->sendRequest('GET', 'transaction/refund', $data); + $httpResponse = $this->sendRequest('POST', 'transaction/refund', $data); $responseData = json_decode($httpResponse->getBody()->getContents(), true);