for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace ByTIC\Payments\Gateways\Providers\PlatiOnline;
use ByTIC\Omnipay\PlatiOnline\Gateway as AbstractGateway;
use ByTIC\Payments\Gateways\Providers\AbstractGateway\Traits\GatewayTrait;
use ByTIC\Payments\Gateways\Providers\AbstractGateway\Traits\OverwriteServerCompletePurchaseTrait;
/**
* Class Gateway
* @package ByTIC\Payments\Gateways\Providers\Mobilpay
*/
class Gateway extends AbstractGateway
{
use GatewayTrait;
use OverwriteServerCompletePurchaseTrait;
* @inheritDoc
public function setSandbox($value)
return $this->setTestMode($value == 'yes');
}
public function getSandbox()
return $this->getTestMode() === true ? 'yes' : 'no';
* @return bool
public function isActive()
if (strlen($this->getPublicKey()) >= 5 && strlen($this->getPrivateKey()) > 10) {
return true;
return false;