Beispiel #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();
 }
Beispiel #2
0
 public function initialize()
 {
     if (!($params = (array) $this->getProperty('params'))) {
         $error = 'Invalid request';
         $this->modx->log(xPDO::LOG_LEVEL_ERROR, "[- " . __CLASS__ . " -] params is empty");
         return $this->getResponseError($error);
     }
     $this->setProperties($params);
     if (!($shp_uid = (int) $this->getProperty('uid'))) {
         $shp_uid = null;
     }
     // else
     $this->setProperties(array("paysystem_id" => $this->modx->getOption('unitpay.bill_serv_id'), "order_id" => (int) $params['account'] ? (int) $params['account'] : null, "owner" => $shp_uid, "paysys_invoice_id" => $this->getProperty('unitpayId')));
     return parent::initialize();
 }
Beispiel #3
0
 public function initialize()
 {
     $this->setProperties(array("paysystem_id" => $this->modx->getOption('robokassa.bill_serv_id')));
     return parent::initialize();
 }