From cc021fa489fcab07d0f4404806e02836dfa979b6 Mon Sep 17 00:00:00 2001 From: oasin <31675779+oasin@users.noreply.github.com> Date: Tue, 25 May 2021 15:54:12 +0100 Subject: [PATCH] Update PaymentRequest.php --- src/Response/Model/Payment/PaymentRequest.php | 23 +++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/src/Response/Model/Payment/PaymentRequest.php b/src/Response/Model/Payment/PaymentRequest.php index acaa378..3a3d56a 100644 --- a/src/Response/Model/Payment/PaymentRequest.php +++ b/src/Response/Model/Payment/PaymentRequest.php @@ -10,8 +10,15 @@ */ class PaymentRequest implements ResponseInterface { + + /** + * + */ const STATUS_UNPAID = 'Pending'; + /** + * + */ const STATUS_EXPIRED = 'Expired'; /** @@ -19,6 +26,9 @@ class PaymentRequest implements ResponseInterface */ const STATUS_UNKNOWN = 'Unknown'; + /** + * + */ const STATUS_PAID = 'Paid'; /** @@ -65,6 +75,9 @@ class PaymentRequest implements ResponseInterface * @var int */ private $confirmations = null; + + private $status_str = ''; + /** * Factory method @@ -108,7 +121,13 @@ public function getStatus() { return $this->status; } - + /** + * @return string + */ + public function getStatusTxt() + { + return $this->status_str; + } /** * @param string $status * @@ -261,4 +280,4 @@ public function setConfirmations($confirmations) return $this; } -} \ No newline at end of file +}