Skip to content

Commit 7c8a840

Browse files
authored
Merge pull request #25 from dranes/omnipay-v3
Add support to Omnipay v3
2 parents 88fb22e + e385fa3 commit 7c8a840

File tree

4 files changed

+9
-11
lines changed

4 files changed

+9
-11
lines changed

.travis.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
language: php
22

33
php:
4-
- 5.4
5-
- 5.5
64
- 5.6
75
- 7.0
86
- 7.1
7+
- 7.2
98

109
before_script:
1110
- composer install -n --dev --prefer-source

composer.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,11 @@
2626
"psr-4": { "Omnipay\\Payflow\\" : "src/" }
2727
},
2828
"require": {
29-
"omnipay/common": "~2.0"
29+
"league/omnipay": "^3.0",
30+
"squizlabs/php_codesniffer": "^3"
3031
},
3132
"require-dev": {
32-
"omnipay/tests": "~2.0"
33+
"omnipay/tests": "^3.0"
3334
},
3435
"extra": {
3536
"branch-alias": {

phpunit.xml.dist

-3
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@
1414
<directory>./tests/</directory>
1515
</testsuite>
1616
</testsuites>
17-
<listeners>
18-
<listener class="Mockery\Adapter\Phpunit\TestListener" file="vendor/mockery/mockery/library/Mockery/Adapter/Phpunit/TestListener.php" />
19-
</listeners>
2017
<filter>
2118
<whitelist>
2219
<directory>./src</directory>

src/Message/AuthorizeRequest.php

+5-4
Original file line numberDiff line numberDiff line change
@@ -282,13 +282,14 @@ public function getData()
282282

283283
public function sendData($data)
284284
{
285-
$httpResponse = $this->httpClient->post(
285+
$httpResponse = $this->httpClient->request(
286+
'POST',
286287
$this->getEndpoint(),
287-
null,
288+
[],
288289
$this->encodeData($data)
289-
)->send();
290+
);
290291

291-
return $this->response = new Response($this, $httpResponse->getBody());
292+
return $this->response = new Response($this, $httpResponse->getBody()->getContents());
292293
}
293294

294295
/**

0 commit comments

Comments
 (0)