Skip to content

Commit

Permalink
Fixed formatting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
architech99 committed Jan 19, 2015
1 parent b3cf6c2 commit de0ea4a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 34 deletions.
29 changes: 8 additions & 21 deletions src/AIMGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@

namespace Omnipay\AuthorizeNet;

use Omnipay\AuthorizeNet\Message\AIMAuthorizeRequest;
use Omnipay\AuthorizeNet\Message\AIMPurchaseRequest;
use Omnipay\AuthorizeNet\Message\CaptureRequest;
use Omnipay\Common\AbstractGateway;

/**
Expand All @@ -20,10 +17,10 @@ public function getName()
public function getDefaultParameters()
{
return array(
'apiLoginId' => '',
'apiLoginId' => '',
'transactionKey' => '',
'testMode' => false,
'developerMode' => false,
'testMode' => false,
'developerMode' => false,
);
}

Expand Down Expand Up @@ -59,36 +56,26 @@ public function setDeveloperMode($value)

public function authorize(array $parameters = array())
{
return $this->createRequest(
'\Omnipay\AuthorizeNet\Message\AIMAuthorizeRequest', $parameters
);
return $this->createRequest('\Omnipay\AuthorizeNet\Message\AIMAuthorizeRequest', $parameters);
}

public function capture(array $parameters = array())
{
return $this->createRequest(
'\Omnipay\AuthorizeNet\Message\CaptureRequest', $parameters
);
return $this->createRequest('\Omnipay\AuthorizeNet\Message\CaptureRequest', $parameters);
}

public function purchase(array $parameters = array())
{
return $this->createRequest(
'\Omnipay\AuthorizeNet\Message\AIMPurchaseRequest', $parameters
);
return $this->createRequest('\Omnipay\AuthorizeNet\Message\AIMPurchaseRequest', $parameters);
}

public function void(array $parameters = array())
{
return $this->createRequest(
'\Omnipay\AuthorizeNet\Message\AIMVoidRequest', $parameters
);
return $this->createRequest('\Omnipay\AuthorizeNet\Message\AIMVoidRequest', $parameters);
}

public function refund(array $parameters = array())
{
return $this->createRequest(
'\Omnipay\AuthorizeNet\Message\AIMRefundRequest', $parameters
);
return $this->createRequest('\Omnipay\AuthorizeNet\Message\AIMRefundRequest', $parameters);
}
}
16 changes: 3 additions & 13 deletions src/SIMGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@

namespace Omnipay\AuthorizeNet;

use Omnipay\AuthorizeNet\Message\SIMAuthorizeRequest;
use Omnipay\AuthorizeNet\Message\SIMCompleteAuthorizeRequest;

/**
* Authorize.Net SIM Class
*/
Expand Down Expand Up @@ -35,24 +32,17 @@ public function setHashSecret($value)

public function authorize(array $parameters = array())
{
return $this->createRequest(
'\Omnipay\AuthorizeNet\Message\SIMAuthorizeRequest', $parameters
);
return $this->createRequest('\Omnipay\AuthorizeNet\Message\SIMAuthorizeRequest', $parameters);
}

public function completeAuthorize(array $parameters = array())
{
return $this->createRequest(
'\Omnipay\AuthorizeNet\Message\SIMCompleteAuthorizeRequest',
$parameters
);
return $this->createRequest('\Omnipay\AuthorizeNet\Message\SIMCompleteAuthorizeRequest', $parameters);
}

public function purchase(array $parameters = array())
{
return $this->createRequest(
'\Omnipay\AuthorizeNet\Message\SIMAuthorizeRequest', $parameters
);
return $this->createRequest('\Omnipay\AuthorizeNet\Message\SIMAuthorizeRequest', $parameters);
}

public function completePurchase(array $parameters = array())
Expand Down

0 comments on commit de0ea4a

Please sign in to comment.