public function initialize() { $this->setProperties(array("paysystem_id" => $this->modx->getOption('edinayakassa.bill_serv_id'))); if (!(int) $this->getProperty('order_id')) { return 'Не был получен ID заказа'; } return parent::initialize(); }
public function __process() { $method = $this->getProperty('method'); switch ($this->getProperty('method')) { case 'check': return $this->check(); break; case 'pay': return parent::__process(); break; default: return $this->failure($this->getResponseError($method . ' not supported')); } }
public function initialize() { $this->setProperties(array("paysystem_id" => $this->modx->getOption('robokassa.bill_serv_id'))); return parent::initialize(); }