for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Omnipay\IcepayPayments\Message;
/**
* Do note: refunds implementation has not been tested.
*/
class RefundResponse extends AbstractResponse
{
* {@inheritdoc}
public function isSuccessful(): bool
return $this->getTransactionStatus() === self::TRANSACTION_STATUS_COMPLETED;
}
public function isCancelled(): bool
return $this->getTransactionStatus() === self::TRANSACTION_STATUS_CANCELLED;
protected function getTransactionStatus(): ?string
return $this->data['refundStatusCode'] ?? null;