Skip to content
This repository was archived by the owner on Sep 4, 2021. It is now read-only.

Update PaymentRequest.php #28

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 21 additions & 2 deletions src/Response/Model/Payment/PaymentRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,25 @@
*/
class PaymentRequest implements ResponseInterface
{

/**
*
*/
const STATUS_UNPAID = 'Pending';

/**
*
*/
const STATUS_EXPIRED = 'Expired';

/**
* sent but not propagated
*/
const STATUS_UNKNOWN = 'Unknown';

/**
*
*/
const STATUS_PAID = 'Paid';

/**
Expand Down Expand Up @@ -65,6 +75,9 @@ class PaymentRequest implements ResponseInterface
* @var int
*/
private $confirmations = null;

private $status_str = '';


/**
* Factory method
Expand Down Expand Up @@ -108,7 +121,13 @@ public function getStatus()
{
return $this->status;
}

/**
* @return string
*/
public function getStatusTxt()
{
return $this->status_str;
}
/**
* @param string $status
*
Expand Down Expand Up @@ -261,4 +280,4 @@ public function setConfirmations($confirmations)
return $this;
}

}
}