Skip to content

Commit

Permalink
Merge pull request #2 from bileto/payment-process-fix
Browse files Browse the repository at this point in the history
Don't follow redirect
  • Loading branch information
Michal Kočárek committed Dec 17, 2015
2 parents e9d25b2 + b175068 commit 02bda88
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/Message/ProcessPaymentRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Omnipay\Csob\Message;

use Guzzle\Http\Message\RequestInterface;
use GuzzleHttp\RequestOptions;

class ProcessPaymentRequest extends AbstractRequest
{
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 02bda88

Please sign in to comment.