PHP5のSoapClientの代わりにNUSOAPを使用しようとしているため、そこにPHP5を取得できません。
この PHP5 SoapClient コードを NUSOAP に変換するにはどうすればよいですか?
$epay_params = array();
$epay_params['merchantnumber'] = "ENTER YOUR MERCHANT NUMBER HERE";
$epay_params['subscriptionid'] = "ENTER THE SUBSCRIPTIONID RETURNED FROM EPAY HERE";
$epay_params['orderid'] = "1234";
$epay_params['amount'] = "9995";
$epay_params['currency'] = "208";
$epay_params['instantcapture'] = "0";
$epay_params['fraud'] = "0";
$epay_params['transactionid'] = "-1";
$epay_params['pbsresponse'] = "-1";
$epay_params['epayresponse'] = "-1";
$client = new SoapClient('https://ssl.ditonlinebetalingssystem.dk/remote/subscription.asmx?WSDL');
$result = $client->authorize($epay_params);
if($result->authorizeResult == true)
{
$transactionid = $result->transactionid;
}
else
{
//Error - see pbsresponse and epayresponse
}
このようなことを試しましたが、何もわかりません。
include("lib/nusoap.php");
$epay_params = array();
$epay_params['merchantnumber'] = $Payments->merchantnumber;
$epay_params['subscriptionid'] = $_POST['subscriptionname'];
$epay_params['orderid'] = $_POST['orderid'];
$epay_params['amount'] = $_POST['amount'];
$epay_params['currency'] = $_POST['currency'];
$epay_params['instantcapture'] = "0";
$epay_params['fraud'] = "0";
$epay_params['transactionid'] = "-1";
$epay_params['pbsresponse'] = "-1";
$epay_params['epayresponse'] = "-1";
$client = new nusoap_client('https://ssl.ditonlinebetalingssystem.dk/remote/subscription.asmx?WSDL','wsdl');
$client->call("transactionid", $epay_params);
echo $client->authorizeResult;