Skip to content

Commit 4458875

Browse files
committed
Merge branch 'master' into xml-api
2 parents a5c0a92 + 9b1a225 commit 4458875

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

src/Message/AIMRefundRequest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ public function getData()
3030
if ($card = $transactionRef->getCard()) {
3131
$data->transactionRequest->payment->creditCard->cardNumber = $card->number;
3232
$data->transactionRequest->payment->creditCard->expirationDate = $card->expiry;
33-
} elseif ($cardReference = $transactionRef->getCardReference()) {
34-
$data->transactionRequest->profile->customerProfileId = $cardReference->getCustomerProfileId();
35-
$data->transactionRequest->profile->paymentProfile->paymentProfileId = $cardReference->getPaymentProfileId();
33+
} elseif ($cardRef = $transactionRef->getCardReference()) {
34+
$data->transactionRequest->profile->customerProfileId = $cardRef->getCustomerProfileId();
35+
$data->transactionRequest->profile->paymentProfile->paymentProfileId = $cardRef->getPaymentProfileId();
3636
} else {
3737
// Transaction reference only contains the transaction ID, so a card is required
3838
$this->validate('card');

src/Model/CardReference.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,4 @@ public function setShippingProfileId($shippingProfileId)
7575
{
7676
$this->shippingProfileId = $shippingProfileId;
7777
}
78-
79-
80-
}
78+
}

src/Model/TransactionReference.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,4 @@ public function setCardReference($cardReference)
119119
{
120120
$this->cardReference = $cardReference;
121121
}
122-
123-
124-
}
122+
}

0 commit comments

Comments
 (0)