Example #1
0
 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();
 }
Example #2
0
 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'));
     }
 }
Example #3
0
 public function initialize()
 {
     $this->setProperties(array("paysystem_id" => $this->modx->getOption('robokassa.bill_serv_id')));
     return parent::initialize();
 }