Skip to content

Commit

Permalink
Issue #5; up minimum version (~3.0-alpha); remove pre-7.1 travis tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
judgej committed Mar 27, 2018
1 parent cfc5dc3 commit 06cceff
Show file tree
Hide file tree
Showing 41 changed files with 63 additions and 67 deletions.
4 changes: 1 addition & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
language: php

php:
- 5.6
- 7.0
- 7.1

- 7.2

before_script:
- composer install -n --dev --prefer-source
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions src/Gateway.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Academe\GiroCheckout;
namespace Omnipay\GiroCheckout;

/**
* GiroCheckout Gateway
Expand All @@ -10,7 +10,7 @@

use Omnipay\Common\Exception\InvalidRequestException;
use Omnipay\Common\AbstractGateway;
use Academe\GiroCheckout\Helper;
use Omnipay\GiroCheckout\Helper;

class Gateway extends AbstractGateway
{
Expand Down
4 changes: 2 additions & 2 deletions src/Message/AbstractRequest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Academe\GiroCheckout\Message;
namespace Omnipay\GiroCheckout\Message;

/**
* GiroCheckout Gateway Abstract Request
Expand All @@ -11,7 +11,7 @@
use Omnipay\Common\Exception\InvalidRequestException;
use Omnipay\Common\Exception\InvalidResponseException;
use Omnipay\Common\Message\AbstractRequest as OmnipayAbstractRequest;
use Academe\GiroCheckout\Gateway;
use Omnipay\GiroCheckout\Gateway;

abstract class AbstractRequest extends OmnipayAbstractRequest
{
Expand Down
2 changes: 1 addition & 1 deletion src/Message/AbstractResponse.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Academe\GiroCheckout\Message;
namespace Omnipay\GiroCheckout\Message;

/**
* Response helper methods.
Expand Down
4 changes: 2 additions & 2 deletions src/Message/AuthorizeRequest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Academe\GiroCheckout\Message;
namespace Omnipay\GiroCheckout\Message;

/**
* GiroCheckout Gateway Authorization Request,
Expand All @@ -10,7 +10,7 @@

use Omnipay\Common\Exception\InvalidResponseException;
use Omnipay\Common\Exception\InvalidRequestException;
use Academe\GiroCheckout\Gateway;
use Omnipay\GiroCheckout\Gateway;
use Omnipay\Common\ItemBag;
use Money\Money;

Expand Down
4 changes: 2 additions & 2 deletions src/Message/CaptureRequest.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace Academe\GiroCheckout\Message;
namespace Omnipay\GiroCheckout\Message;

use Omnipay\Common\Exception\InvalidResponseException;
use Omnipay\Common\Exception\InvalidRequestException;
use Academe\GiroCheckout\Gateway;
use Omnipay\GiroCheckout\Gateway;

/**
* GiroCheckout Gateway Capture Request
Expand Down
4 changes: 2 additions & 2 deletions src/Message/CaptureResponse.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?php

namespace Academe\GiroCheckout\Message;
namespace Omnipay\GiroCheckout\Message;

/**
* Handles the Capture, Refund and Void responses.
* This could probably be merged into the generic Response class.
*/

use Academe\GiroCheckout\Gateway;
use Omnipay\GiroCheckout\Gateway;

class CaptureResponse extends Response
{
Expand Down
4 changes: 2 additions & 2 deletions src/Message/CompleteRequest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Academe\GiroCheckout\Message;
namespace Omnipay\GiroCheckout\Message;

/**
* At the moment this just handles the CC complete request.
Expand All @@ -12,7 +12,7 @@

use Omnipay\Common\Exception\InvalidRequestException;
use Omnipay\Common\Message\NotificationInterface;
use Academe\GiroCheckout\Gateway;
use Omnipay\GiroCheckout\Gateway;

class CompleteRequest extends AbstractRequest implements NotificationInterface
{
Expand Down
4 changes: 2 additions & 2 deletions src/Message/CompleteResponse.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?php

namespace Academe\GiroCheckout\Message;
namespace Omnipay\GiroCheckout\Message;

/**
*
*/

use Omnipay\Common\Message\NotificationInterface;
use Academe\GiroCheckout\Gateway;
use Omnipay\GiroCheckout\Gateway;

class CompleteResponse extends AbstractResponse implements NotificationInterface
{
Expand Down
4 changes: 2 additions & 2 deletions src/Message/GetBankStatusRequest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Academe\GiroCheckout\Message;
namespace Omnipay\GiroCheckout\Message;

/**
* Get the Giropay support details for a bank.
Expand All @@ -10,7 +10,7 @@

use Omnipay\Common\Exception\InvalidResponseException;
use Omnipay\Common\Exception\InvalidRequestException;
use Academe\GiroCheckout\Gateway;
use Omnipay\GiroCheckout\Gateway;

class GetBankStatusRequest extends AbstractRequest
{
Expand Down
4 changes: 2 additions & 2 deletions src/Message/GetBankStatusResponse.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Academe\GiroCheckout\Message;
namespace Omnipay\GiroCheckout\Message;

/**
* At the moment this just handles the CC initialisation response.
Expand All @@ -9,7 +9,7 @@
*/

use Omnipay\Common\Message\RedirectResponseInterface;
use Academe\GiroCheckout\Gateway;
use Omnipay\GiroCheckout\Gateway;

class GetBankStatusResponse extends Response
{
Expand Down
4 changes: 2 additions & 2 deletions src/Message/GetCardRequest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Academe\GiroCheckout\Message;
namespace Omnipay\GiroCheckout\Message;

/**
* GiroCheckout Gateway "query pseudo card information" Request,
Expand All @@ -13,7 +13,7 @@

use Omnipay\Common\Exception\InvalidResponseException;
use Omnipay\Common\Exception\InvalidRequestException;
use Academe\GiroCheckout\Gateway;
use Omnipay\GiroCheckout\Gateway;

class GetCardRequest extends AbstractRequest
{
Expand Down
4 changes: 2 additions & 2 deletions src/Message/GetCardResponse.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php

namespace Academe\GiroCheckout\Message;
namespace Omnipay\GiroCheckout\Message;

/**
* Handles the GetCard response.
*/

use Academe\GiroCheckout\Gateway;
use Omnipay\GiroCheckout\Gateway;

class GetCardResponse extends Response
{
Expand Down
6 changes: 1 addition & 5 deletions src/Message/GetIssuersRequest.php
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
<?php

namespace Academe\GiroCheckout\Message;
namespace Omnipay\GiroCheckout\Message;

/**
* Get a list of all Giropay supporting banks.
*
* @link http://api.girocheckout.de/en:girocheckout:giropay:start#giropay_issuer_bank_request
*/

//use Omnipay\Common\Exception\InvalidResponseException;
//use Omnipay\Common\Exception\InvalidRequestException;
//use Academe\GiroCheckout\Gateway;

class GetIssuersRequest extends GetBankStatusRequest
{
/**
Expand Down
2 changes: 1 addition & 1 deletion src/Message/GetIssuersResponse.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Academe\GiroCheckout\Message;
namespace Omnipay\GiroCheckout\Message;

/**
*
Expand Down
2 changes: 1 addition & 1 deletion src/Message/GetProjectsRequest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Academe\GiroCheckout\Message;
namespace Omnipay\GiroCheckout\Message;

/**
* Get a list of all PaymentPage supporting projects.
Expand Down
2 changes: 1 addition & 1 deletion src/Message/GetProjectsResponse.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Academe\GiroCheckout\Message;
namespace Omnipay\GiroCheckout\Message;

/**
*
Expand Down
4 changes: 2 additions & 2 deletions src/Message/GetSenderRequest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Academe\GiroCheckout\Message;
namespace Omnipay\GiroCheckout\Message;

/**
* Get the Giropay customer details for a transaction.
Expand All @@ -10,7 +10,7 @@

use Omnipay\Common\Exception\InvalidResponseException;
use Omnipay\Common\Exception\InvalidRequestException;
use Academe\GiroCheckout\Gateway;
use Omnipay\GiroCheckout\Gateway;

class GetSenderRequest extends AbstractRequest
{
Expand Down
4 changes: 2 additions & 2 deletions src/Message/GetSenderResponse.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?php

namespace Academe\GiroCheckout\Message;
namespace Omnipay\GiroCheckout\Message;

/**
*
*/

use Omnipay\Common\Message\RedirectResponseInterface;
use Academe\GiroCheckout\Gateway;
use Omnipay\GiroCheckout\Gateway;

class GetSenderResponse extends Response
{
Expand Down
4 changes: 2 additions & 2 deletions src/Message/GetTransactionRequest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Academe\GiroCheckout\Message;
namespace Omnipay\GiroCheckout\Message;

/**
* GiroCheckout Gateway "get transaction information" Request.
Expand All @@ -10,7 +10,7 @@

use Omnipay\Common\Exception\InvalidResponseException;
use Omnipay\Common\Exception\InvalidRequestException;
use Academe\GiroCheckout\Gateway;
use Omnipay\GiroCheckout\Gateway;

class GetTransactionRequest extends AbstractRequest
{
Expand Down
4 changes: 2 additions & 2 deletions src/Message/Helper.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?php

namespace Academe\GiroCheckout\Message;
namespace Omnipay\GiroCheckout\Message;

/**
*
*/

use Omnipay\Common\Message\NotificationInterface;
use Academe\GiroCheckout\Gateway;
use Omnipay\GiroCheckout\Gateway;
use ReflectionClass;

class Helper
Expand Down
2 changes: 1 addition & 1 deletion src/Message/NotificationRequest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Academe\GiroCheckout\Message;
namespace Omnipay\GiroCheckout\Message;

/**
* Everything the notification request needs is already handled
Expand Down
2 changes: 1 addition & 1 deletion src/Message/NotificationResponse.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Academe\GiroCheckout\Message;
namespace Omnipay\GiroCheckout\Message;

/**
* Everything the notification response needs is already handled
Expand Down
4 changes: 2 additions & 2 deletions src/Message/PurchaseRequest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Academe\GiroCheckout\Message;
namespace Omnipay\GiroCheckout\Message;

/**
* GiroCheckout Gateway Purchase Request
Expand All @@ -9,7 +9,7 @@
*/

use Omnipay\Common\Exception\InvalidRequestException;
use Academe\GiroCheckout\Gateway;
use Omnipay\GiroCheckout\Gateway;

class PurchaseRequest extends AuthorizeRequest
{
Expand Down
4 changes: 2 additions & 2 deletions src/Message/RefundRequest.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace Academe\GiroCheckout\Message;
namespace Omnipay\GiroCheckout\Message;

use Omnipay\Common\Exception\InvalidResponseException;
use Omnipay\Common\Exception\InvalidRequestException;
use Academe\GiroCheckout\Gateway;
use Omnipay\GiroCheckout\Gateway;

/**
* GiroCheckout Gateway Refund Request
Expand Down
Loading

0 comments on commit 06cceff

Please sign in to comment.