热门标签 | HotTags
当前位置:  开发笔记 > Android > 正文

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

右边红框处是我不知道要怎么传,这个是XML形式的这是我的代码:{代码...}$ezidebitRequest这里不知道对应的Ready!API这个工具用什么格式去传值?我这里$ezidebitRequest写法是错误的。

右边红框处是我不知道要怎么传,
这个是XML形式的

这是我的代码:

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);
}

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

回复内容:

右边红框处是我不知道要怎么传,
这个是XML形式的

这是我的代码:

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);
}

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


推荐阅读
author-avatar
书友80433968_667
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有