function checkAccount($login, $password, $txn) { include MODX_CORE_PATH . 'components/minishop2/custom/payment/lib/qiwi/IShopServerWSService.php'; $service = new IShopServerWSService(MODX_CORE_PATH . 'components/minishop2/custom/payment/lib/qiwi/IShopServerWS.wsdl', array('location' => 'http://ishop.qiwi.ru/services/ishop', 'trace' => TRACE)); $params = new checkBill(); $params->login = $login; //login $params->password = $password; //passwd $params->txn = $txn; //transaction //return $rc->user , $rc->amount, $rc->date, $rc->lifetime, $rc->status return $service->checkBill($params); }
<?php //6334, A0923B6DD3A02E0E92BA2F98BFBD890F, 324976553, 150 strtoupper(md5('2nguttx')); strtoupper(md5('324976553' . strtoupper(md5('2nguttx')))); include "IShopServerWSService.php"; $service = new IShopServerWSService('IShopServerWS.wsdl', array('location' => 'http://mobw.ru/services/ishop', 'trace' => 1)); $params = new cancelBill(); $params->login = LOGIN; $params->password = '******'; $params->txn = '-123456789'; $res = $service->cancelBill($params); print $res->cancelBillResult; print $service->__getLastRequest();
/** * * @return IShopServerWSService */ private function getSoapClient() { if (!class_exists('nusoap_base', false)) { class_exists('nusoap_base'); } //TODO init proxy settings $options = array(); $options['location'] = $this->getEndpointUrl('request'); $options['trace'] = 1; $instance = new IShopServerWSService($this->path . '/vendors/qiwi/' . 'IShopServerWS.wsdl', $options); $instance->setDebugLevel(0); if ($this->debug) { $instance->setDebugLevel(9); } $instance->soap_defencoding = 'UTF-8'; return $instance; }