for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Omnipay\Sofort\Message;
use Omnipay\Common\Message\RedirectResponseInterface;
class CompleteAuthorizeResponse extends AbstractResponse implements RedirectResponseInterface
{
/**
* Is the response successful?
*
* @return boolean
*/
public function isSuccessful()
return isset($this->data->transaction_details) &&
false === in_array($this->data->transaction_details->status, array('pending', 'loss', 'refunded'));
}
* Is the payment pending?
public function isPending()
$this->data->transaction_details->status == 'pending';
* Gateway Reference
* @return null|string A reference provided by the gateway to represent this transaction
public function getTransactionReference()
return $this->getRequest()->getTransactionReference();