Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
JesperFiltenborg authored Mar 5, 2024
1 parent 7661a3d commit acf0788
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/Http/Controllers/OmnipayController.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,6 @@ public function completeAuthorize(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();
} elseif ($response->isCancelled()) {
Expand All @@ -233,7 +232,6 @@ public function completeAuthorize(Transaction $transaction)
return response()->json($response->getData());
}
if ($response->isSuccessful()) {
$transaction->transaction = $response->getTransactionReference();
$transaction->status = Transaction::STATUS_AUTHORIZE_COMPLETE;
$transaction->save();
return redirect($transaction->redirect_to);
Expand Down

0 comments on commit acf0788

Please sign in to comment.