Heim >Backend-Entwicklung >PHP-Tutorial >Ready! API 这个工具里面调用的接口,我在PHP用什么格式传参?

Ready! API 这个工具里面调用的接口,我在PHP用什么格式传参?

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-06 20:33:101214Durchsuche

Ready! API 这个工具里面调用的接口,我在PHP用什么格式传参?

右边红框处是我不知道要怎么传,
这个是XML形式的
Ready! API 这个工具里面调用的接口,我在PHP用什么格式传参?

这是我的代码:

<code>function CreditCardChargeAction(){
   $ezidebit_client = new \SoapClient("http://ws.cardcall.com.au:8092/CreditCardCharge.svc?WSDL");
   $ezidebitRequest = array("biz"=>array("BizID"=>"5","ClientIP"=>"101.178.140.96","HttpReferer"=>"https://www.hellophonecards.com.au/hpchome/recharge.aspx",
               "BMUserAdminID"=>"1","GMUserAdminID"=>"1","Reason"=>"TPC","CardName" => "1147725","CardNumber" => "4862700011382664","CVV"=>"111",
               "ExpiryYear" => "16","ExpiryMonth" => "10","Amount" => "10","Currency"=>"AUD", "SerialNo" => "CCAW0101171577","Bonus" => "0"));
   $soap_result = $ezidebit_client->DoCreditCardCharge($ezidebitRequest);
}
</code>

$ezidebitRequest这里不知道对应的Ready! API 这个工具用什么格式去传值?
我这里$ezidebitRequest写法是错误的。

回复内容:

Ready! API 这个工具里面调用的接口,我在PHP用什么格式传参?

右边红框处是我不知道要怎么传,
这个是XML形式的
Ready! API 这个工具里面调用的接口,我在PHP用什么格式传参?

这是我的代码:

<code>function CreditCardChargeAction(){
   $ezidebit_client = new \SoapClient("http://ws.cardcall.com.au:8092/CreditCardCharge.svc?WSDL");
   $ezidebitRequest = array("biz"=>array("BizID"=>"5","ClientIP"=>"101.178.140.96","HttpReferer"=>"https://www.hellophonecards.com.au/hpchome/recharge.aspx",
               "BMUserAdminID"=>"1","GMUserAdminID"=>"1","Reason"=>"TPC","CardName" => "1147725","CardNumber" => "4862700011382664","CVV"=>"111",
               "ExpiryYear" => "16","ExpiryMonth" => "10","Amount" => "10","Currency"=>"AUD", "SerialNo" => "CCAW0101171577","Bonus" => "0"));
   $soap_result = $ezidebit_client->DoCreditCardCharge($ezidebitRequest);
}
</code>

$ezidebitRequest这里不知道对应的Ready! API 这个工具用什么格式去传值?
我这里$ezidebitRequest写法是错误的。

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn