Skip to content

Commit b24ebe8

Browse files
committed
AIMRefund fix PHP < 5.5 bugs
1 parent 566cddd commit b24ebe8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Message/AIMRefundRequest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,12 @@ public function getData()
1717

1818
$data['x_trans_id'] = $this->getTransactionReference();
1919
$data['x_card_num'] = $this->getCard()->getNumber();
20-
if (!empty($this->getCard()->getExpiryMonth())) {
20+
21+
$expiryMonth = $this->getCard()->getExpiryMonth();
22+
if (!empty($expiryMonth)) {
2123
$data['x_exp_date'] = $this->getCard()->getExpiryDate('my');
2224
}
25+
2326
$data['x_amount'] = $this->getAmount();
2427

2528
return $data;

0 commit comments

Comments
 (0)