From 06cceff6b8f7a270c38347a786200487d47f546d Mon Sep 17 00:00:00 2001 From: Jason Judge Date: Tue, 27 Mar 2018 11:23:00 +0100 Subject: [PATCH] Issue #5; up minimum version (~3.0-alpha); remove pre-7.1 travis tests. --- .travis.yml | 4 +--- README.md | 4 +++- composer.json | 4 ++-- src/Gateway.php | 4 ++-- src/Message/AbstractRequest.php | 4 ++-- src/Message/AbstractResponse.php | 2 +- src/Message/AuthorizeRequest.php | 4 ++-- src/Message/CaptureRequest.php | 4 ++-- src/Message/CaptureResponse.php | 4 ++-- src/Message/CompleteRequest.php | 4 ++-- src/Message/CompleteResponse.php | 4 ++-- src/Message/GetBankStatusRequest.php | 4 ++-- src/Message/GetBankStatusResponse.php | 4 ++-- src/Message/GetCardRequest.php | 4 ++-- src/Message/GetCardResponse.php | 4 ++-- src/Message/GetIssuersRequest.php | 6 +----- src/Message/GetIssuersResponse.php | 2 +- src/Message/GetProjectsRequest.php | 2 +- src/Message/GetProjectsResponse.php | 2 +- src/Message/GetSenderRequest.php | 4 ++-- src/Message/GetSenderResponse.php | 4 ++-- src/Message/GetTransactionRequest.php | 4 ++-- src/Message/Helper.php | 4 ++-- src/Message/NotificationRequest.php | 2 +- src/Message/NotificationResponse.php | 2 +- src/Message/PurchaseRequest.php | 4 ++-- src/Message/RefundRequest.php | 4 ++-- src/Message/Response.php | 4 ++-- src/Message/VoidRequest.php | 4 ++-- tests/GatewayTest.php | 2 +- tests/Message/AuthorizeRequestCreditCardTest.php | 2 +- tests/Message/AuthorizeRequestDirectDebitTest.php | 2 +- tests/Message/AuthorizeRequestPaydirektTest.php | 2 +- tests/Message/AuthorizeRequestPaymentPageTest.php | 2 +- tests/Message/CaptureResponseTest.php | 2 +- tests/Message/CompleteRequestCreditCardTest.php | 2 +- tests/Message/NotificationRequestTest.php | 2 +- tests/Message/PurchaseRequestCreditCardTest.php | 2 +- tests/Message/PurchaseRequestDirectDebitTest.php | 2 +- tests/Message/PurchaseRequestPaydirektTest.php | 2 +- tests/Message/ResponseTest.php | 2 +- 41 files changed, 63 insertions(+), 67 deletions(-) diff --git a/.travis.yml b/.travis.yml index 95de6e6..28f3131 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,10 +1,8 @@ language: php php: - - 5.6 - - 7.0 - 7.1 - + - 7.2 before_script: - composer install -n --dev --prefer-source diff --git a/README.md b/README.md index 7437bbe..e9922ba 100644 --- a/README.md +++ b/README.md @@ -80,12 +80,14 @@ required for all interaction: A gateway could be set up like this: ```php -use Academe\GiroCheckout\Gateway; +use Omnipay\GiroCheckout\Gateway; use Omnipay\Omnipay; // The backward slashes are needed to make the driver base class absolute. // An issue will be raised against Omnipay Common to fix this. $gateway = Omnipay::create('\\' . Gateway::class); +// or +$gateway = Omnipay::create('GiroCheckout/Gateway'; // The IDs can be given as integers in strings. $gateway->setMerchantID('3610000'); diff --git a/composer.json b/composer.json index 96fe45f..4111cd0 100644 --- a/composer.json +++ b/composer.json @@ -22,13 +22,13 @@ ], "autoload": { "psr-4": { - "Academe\\GiroCheckout\\" : "src/" + "Omnipay\\GiroCheckout\\" : "src/" } }, "minimum-stability": "dev", "require": { "php": ">=5.6", - "omnipay/common": "~3.0@dev" + "omnipay/common": "~3.0@alpha" }, "require-dev": { "omnipay/tests": "~3.0", diff --git a/src/Gateway.php b/src/Gateway.php index 58c954d..72387c2 100644 --- a/src/Gateway.php +++ b/src/Gateway.php @@ -1,6 +1,6 @@