Ejemplo n.º 1
0
 public function register($sum, $orderId, $accountId, $description = '')
 {
     $uri = API_AlphaBank::getAPIUri() . "register.do";
     $post = array('userName' => $this->userName, 'password' => $this->password, 'amount' => $sum * 100, 'returnUrl' => API_AlphaBank::getReturnURL(), 'orderNumber' => $orderId, 'clientId' => $accountId, 'description' => iconv('Windows-1251', 'UTF-8', $description));
     $resp = $this->request($uri, $post);
     return $this->getBodyArray($resp);
 }