From 99dbd3daf0954a74c40a3e41d95d42701c2abd09 Mon Sep 17 00:00:00 2001 From: anton Date: Tue, 25 Jan 2022 13:07:12 +0600 Subject: [PATCH] =?UTF-8?q?=D0=BD=D0=BE=D0=B2=D1=8B=D0=B9=20=D1=81=D1=82?= =?UTF-8?q?=D0=B0=D1=82=D1=83=D1=81=20=D1=83=D1=81=D0=BF=D0=B5=D1=88=D0=BD?= =?UTF-8?q?=D0=BE=D0=B3=D0=BE=20=D0=BF=D0=BB=D0=B0=D1=82=D0=B5=D0=B6=D0=B0?= =?UTF-8?q?=209=20(pending)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Objects/Response/GetOperationData.php | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/Objects/Response/GetOperationData.php b/src/Objects/Response/GetOperationData.php index 621f97e..49ade1c 100644 --- a/src/Objects/Response/GetOperationData.php +++ b/src/Objects/Response/GetOperationData.php @@ -43,6 +43,11 @@ class GetOperationData extends Base */ const STATUS_CANCELING = 6; + /** + * Payment pending (will soon change to DONE). + */ + const STATUS_PENDING = 9; + /** * Operation id. * @@ -369,10 +374,20 @@ public function getToFullName() public function setToFullName($toFullName) { $this->toFullName = $toFullName; - + return $this; } + /** + * Returns true if the payment is complete + * + * @return bool + */ + public function isOk() + { + return $this->status === self::STATUS_DONE || $this->status === self::STATUS_PENDING; + } + /** * {@inhertidoc} *