diff --git a/src/Message/PurchaseRequest.php b/src/Message/PurchaseRequest.php index 3283048..4d07139 100644 --- a/src/Message/PurchaseRequest.php +++ b/src/Message/PurchaseRequest.php @@ -72,7 +72,8 @@ class PurchaseRequest extends AuthorizeRequest public function getData() { - if ($this->parameters->get('transactionReference')) { + $realCardExists = ($this->getCard() || $this->getCardReference()); + if ($this->parameters->get('transactionReference') && !$realCardExists) { return $this->getReferenceSaleData(); }