diff --git a/src/Message/ProcessPaymentRequest.php b/src/Message/ProcessPaymentRequest.php index 431eb63..ee1cd2b 100644 --- a/src/Message/ProcessPaymentRequest.php +++ b/src/Message/ProcessPaymentRequest.php @@ -3,6 +3,7 @@ namespace Omnipay\Csob\Message; use Guzzle\Http\Message\RequestInterface; +use GuzzleHttp\RequestOptions; class ProcessPaymentRequest extends AbstractRequest { @@ -46,9 +47,13 @@ public function getData() */ public function sendData($data) { - $httpRequest = $this->httpClient->createRequest( - RequestInterface::GET, - $this->createUri() + $url = $this->createUri(); + $httpRequest = $this->httpClient->get( + $url, + null, + array( + RequestOptions::ALLOW_REDIRECTS => false, + ) ); $httpResponse = $httpRequest->send();