Skip to content

Commit

Permalink
Fixed a problem where the referense was not used correct.
Browse files Browse the repository at this point in the history
  • Loading branch information
addgod committed Jan 23, 2020
1 parent 4dda8bc commit c927f43
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/Models/Transaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit c927f43

Please sign in to comment.