Skip to content

Commit

Permalink
Use identical parent getData() function
Browse files Browse the repository at this point in the history
  • Loading branch information
amacneil committed Jan 21, 2014
1 parent 3fdc479 commit cf15f3e
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/Omnipay/AuthorizeNet/Message/AIMPurchaseRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,4 @@
class AIMPurchaseRequest extends AIMAuthorizeRequest
{
protected $action = 'AUTH_CAPTURE';

public function getData()
{
$this->validate('amount', 'card');
$this->getCard()->validate();

$data = $this->getBaseData();
$data['x_customer_ip'] = $this->getClientIp();
$data['x_card_num'] = $this->getCard()->getNumber();
$data['x_exp_date'] = $this->getCard()->getExpiryDate('my');
$data['x_card_code'] = $this->getCard()->getCvv();

if ($this->getTestMode()) {
$data['x_test_request'] = 'TRUE';
}

return array_merge($data, $this->getBillingData());
}
}

0 comments on commit cf15f3e

Please sign in to comment.