qlg.tsgz.moe/extend/app_alipay/╦╡├ў.txt
2019-09-06 23:53:10 +08:00

12 lines
777 B
Plaintext
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

支付宝APP支付新版本
HBuilder客户端早已支持支付宝APP支付新版本与老版本相比差别就是订单的生成代码不一样客户端不需要做任何的修改。 此示例是基于支付宝官方PHP SDKaop、lotusphp_runtime、AopSdk.php的简单实现详见index.php代码。
使用说明
打开index.php文件配置以下变量值
$aop->appId = "app_id"; 应用APPID
$aop->rsaPrivateKey = '请填写开发者私钥去头去尾去回车,一行字符串'; 应用的RSA2密钥私钥
$aop->alipayrsaPublicKey = '请填写支付宝公钥,一行字符串'; 应用的支付宝公钥设置应用RSA2公钥后可查看
$notify_url = urlencode('商户外网可以访问的异步地址'); 支付回调URL地址
部署服务器后访问index.php获取订单需要提交total参数(单位为元),如: http://demo.dcloud.net.cn/payment/alipayrsa2/?total=1 这是使用DCloud账号生成的订单示例地址其中total值为要支付的金额。