Php 未捕获的SoapFault异常:[客户端]SOAP-ERROR:编码:对象没有

Php 未捕获的SoapFault异常:[客户端]SOAP-ERROR:编码:对象没有,php,soap,soap-client,Php,Soap,Soap Client,这是一个错误 致命错误:未捕获的SoapFault异常:[客户端]SOAP错误: 编码:对象没有“pbsresponse”属性 当调用此函数时,它是给定的。在这个问题上帮助我我终于找到了问题的答案。我只是用r代替r $epay_params['merchantnumber'] = *******; $epay_params['transactionid'] = $id; $epay_params['amount'] = 0; $epay_params['pbsRespon

这是一个错误

致命错误:未捕获的SoapFault异常:[客户端]SOAP错误: 编码:对象没有“pbsresponse”属性


当调用此函数时,它是给定的。在这个问题上帮助我

我终于找到了问题的答案。我只是用r代替r

$epay_params['merchantnumber'] = *******;
    $epay_params['transactionid'] = $id;
    $epay_params['amount'] = 0;
    $epay_params['pbsResponse'] = -1;
    $epay_params['epayresponse'] = -1;

    $client = new SoapClient('https://ssl.ditonlinebetalingssystem.dk/remote/payment.asmx?WSDL');

    $result = $client->credit($epay_params);
    print_r($result)
updated code
$epay_params['merchantnumber'] = *******;
$epay_params['transactionid'] = $id;
$epay_params['amount'] = 0;
$epay_params['pbsresponse'] = -1;
$epay_params['epayresponse'] = -1;

$client = new SoapClient('https://ssl.ditonlinebetalingssystem.dk/remote/payment.asmx?WSDL');

$result = $client->credit($epay_params);
print_r($result)