Skip to content

Commit

Permalink
Merge pull request #19 from barryvdh/iscancelled
Browse files Browse the repository at this point in the history
Add isCancelled to ResponseInterface
  • Loading branch information
greydnls committed Dec 4, 2014
2 parents 66a1999 + 81cd6f6 commit 07c41e2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Omnipay/Common/Message/AbstractResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ public function isTransparentRedirect()
return false;
}

public function isCancelled()
{
return false;
}

public function getData()
{
return $this->data;
Expand Down
7 changes: 7 additions & 0 deletions src/Omnipay/Common/Message/ResponseInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ public function isSuccessful();
*/
public function isRedirect();

/**
* Is the transaction cancelled by the user?
*
* @return boolean
*/
public function isCancelled();

/**
* Response Message
*
Expand Down

0 comments on commit 07c41e2

Please sign in to comment.