diff --git a/src/app/Models/Transaction.php b/src/app/Models/Transaction.php index b68ed6d..8b81c5b 100644 --- a/src/app/Models/Transaction.php +++ b/src/app/Models/Transaction.php @@ -128,7 +128,7 @@ public function completePurchase() $omnipay::setDefaultMerchant($this->merchant_id); $response = $omnipay::completePurchase()->send(); - $this->transaction = $response->getTransactionId(); + $this->transaction = $response->getTransactionReference(); if ($response->isSuccessful()) { $this->status = Transaction::STATUS_PURCHASE_COMPLETE; @@ -200,7 +200,7 @@ public function completeAuthorize() $omnipay::setDefaultMerchant($this->merchant_id); $response = $omnipay::completeAuthorize()->send(); - $this->transaction = $response->getTransactionId(); + $this->transaction = $response->getTransactionReference(); if ($response->isSuccessful()) { $this->status = Transaction::STATUS_AUTHORIZE_COMPLETE; @@ -402,7 +402,7 @@ public function notify() $omnipay::setDefaultMerchant($this->merchant_id); $response = $omnipay::acceptNotification()->send(); - $this->transaction = $response->getTransactionId(); + $this->transaction = $response->getTransactionReference(); if ($response->isSuccessful()) { if ($this->status == Transaction::STATUS_PURCHASE) {