for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Omnipay\IcepayPayments\Message;
/**
* The response after getting the transaction status at Icepay.
*/
class TransactionStatusResponse extends AbstractResponse
{
* {@inheritdoc}
public function isSuccessful(): bool
return isset($this->data['statusCode']) && $this->data['statusCode'] === 200;
}
public function isCancelled(): bool
return parent::isCancelled() || $this->data['statusCode'] === self::RESPONSE_STATUS_CANCELLED;
public function getTransactionReference(): ?string
return $this->request->getTransactionReference();