for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace ByTIC\Payments\Controllers\Traits;
use ByTIC\Payments\Controllers\Traits\PurchaseController\PurchaseConfirmActionsTrait;
use ByTIC\Payments\Controllers\Traits\PurchaseController\PurchaseIpnActionsTrait;
use ByTIC\Payments\Controllers\Traits\PurchaseController\PurchaseRedirectActionsTrait;
use ByTIC\Payments\Gateways\Manager as GatewaysManager;
use ByTIC\Payments\Models\Purchase\Traits\IsPurchasableModelTrait;
use Nip\Records\AbstractModels\Record;
use Nip\Records\RecordManager;
use Symfony\Component\HttpFoundation\Request;
/**
* Class PurchaseControllerTrait
* @package ByTIC\Payments\Payments\Controllers\Traits
*
* @method IsPurchasableModelTrait checkItem
*/
trait PurchaseControllerTrait
{
use PurchaseRedirectActionsTrait;
use PurchaseConfirmActionsTrait;
use PurchaseIpnActionsTrait;
* @return GatewaysManager
protected function getGatewaysManager()
return GatewaysManager::instance();
}
* @param bool|array $key
* @return Record|IsPurchasableModelTrait
abstract protected function getModelFromRequest($key = false);
* @return RecordManager
abstract protected function getModelManager();
* @return Request
abstract protected function getRequest();
abstract protected function dispatchAccessDeniedResponse();