Skip to content

Commit 4a4f7e5

Browse files
committed
Issue #3 back-port for Omnipay 2.x
1 parent 02b11a6 commit 4a4f7e5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Traits/HasCompleteResponse.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,16 @@ public function isSuccessful()
107107
return $status === Gateway::STATUS_SUCCESS || $status === Gateway::STATUS_ACCEPTED;
108108
}
109109

110+
/**
111+
* @return bool
112+
*/
113+
public function isCancelled()
114+
{
115+
$status = $this->getStatus();
116+
117+
return $status === Gateway::STATUS_CANCEL;
118+
}
119+
110120
/**
111121
* CHECKME: is the virtualCardno the same thing, but for specific payment methods?
112122
*

0 commit comments

Comments
 (0)