Skip to content

Commit 84f1a22

Browse files
authored
Merge pull request #158 from eileenmcnaughton/card
Do not treat an empty card as a provided card
2 parents 876d7a8 + 5dc3792 commit 84f1a22

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Message/SharedRepeatAuthorizeRequest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@ public function getData()
6969
$card = $this->getCard();
7070

7171
// If a card is provided, then assume all billing details are being updated.
72-
73-
if ($card) {
72+
if ($card && !empty($card->getParameters()) && !empty(array_filter($card->getParameters()))) {
7473
$data = $this->getBillingAddressData($data);
7574

7675
// If the customer is present, then the CV2 can be supplied again for extra security.

0 commit comments

Comments
 (0)