diff --git a/.travis.yml b/.travis.yml
index 02453ae..f2f4624 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -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
diff --git a/composer.json b/composer.json
index c67c80f..df4bd47 100644
--- a/composer.json
+++ b/composer.json
@@ -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": {
diff --git a/phpunit.xml.dist b/phpunit.xml.dist
index a35b736..535809e 100644
--- a/phpunit.xml.dist
+++ b/phpunit.xml.dist
@@ -14,9 +14,6 @@
./tests/
-
-
-
./src
diff --git a/src/Message/AuthorizeRequest.php b/src/Message/AuthorizeRequest.php
index 127d3dc..688f7d1 100644
--- a/src/Message/AuthorizeRequest.php
+++ b/src/Message/AuthorizeRequest.php
@@ -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());
}
/**