for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Omnipay\IcepayPayments\Message;
/**
* The response after complete authorise and capture request.
* For this response, we explicitly check what the status is of the payment transaction at Icepay.
*
* @see http://docs2.icepay.com/payment-process/transaction-status-flow/transaction-statuses/
*/
class CompleteAuthoriseAndCaptureResponse extends AbstractResponse
{
* {@inheritdoc}
public function isSuccessful(): bool
return isset($this->data['status']) && in_array($this->data['status'], [
self::RESPONSE_STATUS_COMPLETED,
self::RESPONSE_STATUS_SETTLED,
]);
}
public function isCancelled(): bool
return isset($this->data['status']) && $this->data['status'] === self::RESPONSE_STATUS_CANCELLED;
public function getTransactionReference(): ?string
return $this->request->getTransactionReference();