diff --git a/src/Traits/HasCompleteResponse.php b/src/Traits/HasCompleteResponse.php index bbc8cf0..b479b7f 100644 --- a/src/Traits/HasCompleteResponse.php +++ b/src/Traits/HasCompleteResponse.php @@ -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? *