Skip to content

Commit 2e39772

Browse files
committed
Merge pull request #2 from rushi/master
Fix refunds for authorize.net
2 parents 881d9d4 + c121250 commit 2e39772

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/Message/AIMRefundRequest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ public function getData()
1717

1818
/** @var CreditCard $card */
1919
$card = $this->getCard();
20-
$card->validate();
2120

2221
$data = $this->getBaseData();
2322
$data->transactionRequest->amount = $this->getParameter('amount');

tests/Message/AIMRefundRequestTest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@ public function testGetData()
4343
array(
4444
'transactionReference' => 'authnet-transaction-reference',
4545
'amount' => 12.12,
46-
'card' => $this->getValidCard()
46+
'card' => array(
47+
'number' => 1111, // Refunds require only the last 4 digits of the credit card
48+
'expiryMonth' => 5,
49+
'expiryYear' => 2020
50+
)
4751
)
4852
);
4953

0 commit comments

Comments
 (0)