Couldn't request interface_x9
ebrahimsalahi opened this issue · comments
ebrahimsalahi commented
require_once(DIR . '/vendor/autoload.php'); // Require autoload file generated by composer
use baibaratsky\WebMoney;
use baibaratsky\WebMoney\Signer;
$webMoney = new WebMoney\WebMoney(new WebMoney\Request\Requester\CurlRequester);
$request = new WebMoney\Api\X\X9\Request;
$request->setSignerWmid('522-----7401');
$request->setRequestedWmid('522*****7401');
$request->sign(new Signer('522-----7401',DIR . '522-----7401.kwm', '*******'));
if ($request->validate()) {
$response = $webMoney->request($request);
if ($response->getReturnCode() === 0) {
echo $response->getPurseByName('Z64-----30013')->getAmount();
} else {
echo 'Error: ' . $response->getReturnDescription();
}
}
result :
string(163) "<?xml version="1.0"?>
<w3s.response>
<reqn>160546003307119</reqn>
<retval>110</retval>
<retdesc>Server Error step=13</retdesc>
<ser>Srv10</ser>
</w3s.response>"
Error: Server Error step=13
ebrahimsalahi commented
@baibaratsky please help
Andrei Baibaratsky commented
Can’t help, sorry. Try to ask WebMoney support.