From cf15f3e3321e3de95c54e33fbff92ba07e3880c4 Mon Sep 17 00:00:00 2001 From: Adrian Macneil Date: Wed, 22 Jan 2014 07:08:34 +1100 Subject: [PATCH] Use identical parent getData() function --- .../Message/AIMPurchaseRequest.php | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/Omnipay/AuthorizeNet/Message/AIMPurchaseRequest.php b/src/Omnipay/AuthorizeNet/Message/AIMPurchaseRequest.php index d663c37f..bfe27572 100644 --- a/src/Omnipay/AuthorizeNet/Message/AIMPurchaseRequest.php +++ b/src/Omnipay/AuthorizeNet/Message/AIMPurchaseRequest.php @@ -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()); - } }