Skip to content

Commit

Permalink
Issue #3 back-port for Omnipay 2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
judgej committed Aug 20, 2018
1 parent 02b11a6 commit 4a4f7e5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Traits/HasCompleteResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,16 @@ public function isSuccessful()
return $status === Gateway::STATUS_SUCCESS || $status === Gateway::STATUS_ACCEPTED;
}

/**
* @return bool
*/
public function isCancelled()
{
$status = $this->getStatus();

return $status === Gateway::STATUS_CANCEL;
}

/**
* CHECKME: is the virtualCardno the same thing, but for specific payment methods?
*
Expand Down

0 comments on commit 4a4f7e5

Please sign in to comment.