diff --git a/src/Http/Controllers/OmnipayController.php b/src/Http/Controllers/OmnipayController.php index a67ea4d..014bf27 100644 --- a/src/Http/Controllers/OmnipayController.php +++ b/src/Http/Controllers/OmnipayController.php @@ -44,6 +44,7 @@ public function purchase(Transaction $transaction) // We assume this means API driven if ($response->isTransparentRedirect()) { if ($response->isSuccessful()) { + $transaction->transaction = $response->getTransactionReference(); $transaction->status = Transaction::STATUS_PURCHASE_COMPLETE; $transaction->save(); } @@ -163,6 +164,7 @@ public function authorize(Transaction $transaction) // We assume this means API driven if ($response->isTransparentRedirect()) { if ($response->isSuccessful()) { + $transaction->transaction = $response->getTransactionReference(); $transaction->status = Transaction::STATUS_AUTHORIZE_COMPLETE; $transaction->save(); } @@ -304,6 +306,7 @@ public function capture(Transaction $transaction) ]); if ($response->isSuccessful()) { + $transaction->transaction = $response->getTransactionReference(); $transaction->status = Transaction::STATUS_CAPTURE; $transaction->save(); } else {