开始制作
  • 做app就上应用公园
  • 首页> 行业资讯> APP运营> 资讯详情

    生活类app关键业务,芜湖app开发

    2021-11-12 20:15:00 来自于应用公园

    芜湖App开发之如何app内支付

    类名称和接口名称对应,当前调用接口名称:支付宝。trade.app.pay

    $ request=new lipaytradeapppayrequest;

    //SDK已经封装掉了公共参数,这里只需要传入业务参数

    $bizcontent=json_encode(数组(

    out _ trade _ no '=$ order[' order _ sn '],

    total _ amount '=$ order[' order _ price '],

    timeout_express'='30m ',

    product _ code '=' QUICK _ MSECURITY _ PAY ',

    主题"="订单测试'

    ));

    //$ biz content=' { \ ' body ' : \ '我是测试数据\','

    //.\ '主题' : '应用程序支付测试\','

    //.\ ' out _ trade _ no ' : ' 20210125 test 01 \ ','

    //.\ ' timeout _ express \ ' : \ ' 30m \ ','

    //.\ ' total _ amount \ ' : \ ' 0.01 \ ','

    //.\ '产品代码:“QUICK _ MSecurity _ PAY \”

    //.'}';

    $ request-setNotifyUrl(' API。净199。com/public/index。PHP/API/5b 75304 b 765 af’);

    $ request-SetBizContent($ BizContent);

    //这里和普通的接口调用不同,使用的是sdkExecute

    $ response=$ AOP-SDKexecute($ request);

    //specialchars是为了输出到页面时防止被浏览器将关键参数转义,实际打印到日志以及传输不会有这个问题还原

    echo specialchars(回应);//就是orderString可以直接给客户端请求,无需再做处理。

粤公网安备 44030602002171号      粤ICP备15056436号-2

在线咨询

立即咨询

售前咨询热线

0755-27805158

[关闭]
应用公园微信

官方微信自助客服

[关闭]