for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace ByTIC\Payments\Gateways\Providers\Paylike\Message;
use ByTIC\Omnipay\Paylike\Message\CompletePurchaseResponse as AbstractCompletePurchaseResponse;
use ByTIC\Payments\Gateways\Providers\AbstractGateway\Message\Traits\CompletePurchaseResponseTrait;
/**
* Class CompletePurchaseResponse
* @package ByTIC\Payments\Gateways\Providers\Paylike\Message
*/
class CompletePurchaseResponse extends AbstractCompletePurchaseResponse
{
use CompletePurchaseResponseTrait;
* @inheritDoc
public function isPending()
$model = $this->getModel();
if ($model) {
if (empty($model->status) or $model->status === 'pending') {
status
ByTIC\Common\Payments\Mo...IsPurchasableModelTrait
status_notes
return true;
}
return parent::isPending();
public function isCancelled()
if ($model->status === 'canceled') {
return parent::isCancelled();
public function isSuccessful()
if ($model->status === 'active') {
return parent::isSuccessful();
/** @noinspection PhpMissingParentCallCommonInspection
* @return bool
protected function canProcessModel()