The Simpay\Model\Response\PaymentServiceTransactionStatus
class represents an object that contains a payment service transaction status.
The Simpay\Model\Response\PaymentServiceTransactionStatus
class defines the following constants:
NEW
- The transaction is newCONFIRMED
- The transaction has been confirmedGENERATED
- The transaction has been generatedPAID
- The transaction has been paidFAILED
- The transaction has failedEXPIRED
- The transaction has expiredCANCELED
- The transaction has been canceled
Name | Type | Description |
---|---|---|
$value |
string | The value of the transaction status |
public function __construct(string $value)
This method is the constructor of the Simpay\Model\Response\PaymentServiceTransactionStatus
class. It takes in one parameter: $value
, which is a string representing the value of the transaction status. It sets the $value
property to the parameter value.
$status = new PaymentServiceTransactionStatus(PaymentServiceTransactionStatus::PAID);
echo $status->value; // transaction_paid