Skip to content

Commit

Permalink
Merge pull request #25 from dranes/omnipay-v3
Browse files Browse the repository at this point in the history
Add support to Omnipay v3
  • Loading branch information
barryvdh authored Jun 15, 2018
2 parents 88fb22e + e385fa3 commit 7c8a840
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
language: php

php:
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
- 7.2

before_script:
- composer install -n --dev --prefer-source
Expand Down
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@
"psr-4": { "Omnipay\\Payflow\\" : "src/" }
},
"require": {
"omnipay/common": "~2.0"
"league/omnipay": "^3.0",
"squizlabs/php_codesniffer": "^3"
},
"require-dev": {
"omnipay/tests": "~2.0"
"omnipay/tests": "^3.0"
},
"extra": {
"branch-alias": {
Expand Down
3 changes: 0 additions & 3 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@
<directory>./tests/</directory>
</testsuite>
</testsuites>
<listeners>
<listener class="Mockery\Adapter\Phpunit\TestListener" file="vendor/mockery/mockery/library/Mockery/Adapter/Phpunit/TestListener.php" />
</listeners>
<filter>
<whitelist>
<directory>./src</directory>
Expand Down
9 changes: 5 additions & 4 deletions src/Message/AuthorizeRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -282,13 +282,14 @@ public function getData()

public function sendData($data)
{
$httpResponse = $this->httpClient->post(
$httpResponse = $this->httpClient->request(
'POST',
$this->getEndpoint(),
null,
[],
$this->encodeData($data)
)->send();
);

return $this->response = new Response($this, $httpResponse->getBody());
return $this->response = new Response($this, $httpResponse->getBody()->getContents());
}

/**
Expand Down

0 comments on commit 7c8a840

Please sign in to comment.