for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace ByTIC\Payments\Mobilpay\Message;
use ByTIC\Omnipay\Mobilpay\Message\CompletePurchaseResponse as AbstractCompletePurchaseResponse;
use ByTIC\Payments\Gateways\Providers\AbstractGateway\Message\Traits\CompletePurchaseResponseTrait;
/**
* Class CompletePurchaseResponse
* @package ByTIC\Payments\Mobilpay\Message
*/
class CompletePurchaseResponse extends AbstractCompletePurchaseResponse
{
use CompletePurchaseResponseTrait;
* @inheritDoc
public function isPending()
$model = $this->getModel();
if ($model) {
$status = $model->status;
status
ByTIC\Common\Payments\Mo...IsPurchasableModelTrait
status_notes
if (empty($status) or $status == 'pending') {
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()
return false;