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

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

WBOY
WBOYOriginal
2016-06-06 20:33:101199browse

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写法是错误的。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn