Skip to content

Commit 07c41e2

Browse files
committed
Merge pull request #19 from barryvdh/iscancelled
Add isCancelled to ResponseInterface
2 parents 66a1999 + 81cd6f6 commit 07c41e2

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/Omnipay/Common/Message/AbstractResponse.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ public function isTransparentRedirect()
3535
return false;
3636
}
3737

38+
public function isCancelled()
39+
{
40+
return false;
41+
}
42+
3843
public function getData()
3944
{
4045
return $this->data;

src/Omnipay/Common/Message/ResponseInterface.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@ public function isSuccessful();
2828
*/
2929
public function isRedirect();
3030

31+
/**
32+
* Is the transaction cancelled by the user?
33+
*
34+
* @return boolean
35+
*/
36+
public function isCancelled();
37+
3138
/**
3239
* Response Message
3340
*

0 commit comments

Comments
 (0)