Здравствуйте, товарищи!
Нужна помощь, пытаюсь настроить сей интерфейс, использую WMXI PHP, код следующий:
public function open_limit($forwmid,$purse,$amount,$ret_period,$ret_per,$ret_proc,$time_left) { $req = new SimpleXMLElement('<service.request/>'); function milliseconds() { $mt = explode(' ', microtime()); return ((int)$mt[1]) * 1000 + ((int)round($mt[0] * 1000)); } $amount = number_format($amount, 2, '.', ''); $ret_proc = number_format($ret_proc, 4, '.', ''); $ms = milliseconds(); $p = "****************************"; if ($this->classic) { $req->wmid = $this->wmid; } $group = 'creditline'; $req->$group->forwmid = $forwmid; $req->$group->purse = $purse; $req->$group->amount = $amount; $req->$group->period = $ret_period; $req->$group->proc = $ret_proc; $req->$group->periodicity = $ret_per; $req->$group->timelife = $time_left; $req->t = $ms; $req->sign = $this->_sign($this->wmid.$forwmid.$purse.$amount.$ret_period.$ret_per.$ret_proc.$time_left.$ms.$p); $url = $this->classic ? 'https://debt.wmtransfer.com/api/creditlinenew.aspx' : 'https://api4debt.wmtransfer.com/api/creditlinenew.aspx'; return $this->_request($url, $req->asXML(), __FUNCTION__); }
После отправки запроса получаю: array(2) { ["retval"]=> string(1) "5" ["retdesc"]=> string(92) "bad sign:3783****363:9********462:Z2629*****874:220.00:30:1:0.8000:0:1555345088602,step:13" }.
Смысл ошибки понятен, доступные варианты устранения для моего разума уже исчерпаны...