2016-04-11 23 views
1
$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) 

を持っていない、それは与えるのです。この関数を呼び出すときキャッチされないにSoapFault例外:[クライアント] SOAP-ERROR:エンコーディング:オブジェクトが

Fatal error: Uncaught SoapFault exception: [Client] SOAP-ERROR: Encoding: object has no 'pbsresponse' property ...

のようなエラーを与えます。この問題で私を助けてください

答えて

1

最後に私は私の質問の解決策を得ました。私は 'r'を 'R'に置き換えます。

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) 
関連する問題