Skip to content

Commit

Permalink
Merge pull request #7 from kolesa-team/new-operation-status
Browse files Browse the repository at this point in the history
новый статус успешного платежа 9 (pending)
  • Loading branch information
antonsergeyev authored Jan 25, 2022
2 parents ac44d27 + 99dbd3d commit 95de725
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/Objects/Response/GetOperationData.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down Expand Up @@ -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}
*
Expand Down

0 comments on commit 95de725

Please sign in to comment.