This action will force synchronization from 大林/Weixin-Payment, which will overwrite any changes that you have made since you forked the repository, and can not be recovered!!!
Synchronous operation will process in the background and will refresh the page when finishing processing. Please be patient.
基于微信服务商多商户交易系统,后台可以配置多个服务商,每个服务商下可配置多个子商户,交易支持微信原生jsapi支付,扫码、刷卡支付,同时支持微信桥支付。
每一笔支付都能随机指定到某一个商户,防止微信端支付被投诉导致商户号被封
后台可以开设子账号,分配接口给用户,并进行单独商户对账,最高权限账号统一管理账务
支持支付宝等交易(支付宝还没开发,demo可以用)
交易商户对账、不同管理员对账管理
商户权限检测
支持扫码手动输入金额付款
graph LR
用户-->接口调用
接口调用-->商户系统
商户系统-->微信支付API
微信支付API-->接口调用
接口调用-->用户
/extend/Payment/Pay/weixinconfig.php
修改 app_id、mch_id(服务商商户id)、md5_key(支付key)、notify_url(回调地址)等参数
微信支付接口地址
/extend/Payment/Pay/Wx/AppCharge.php/
https://****.com/v1/pay
如图: 请求成功后,接口会同步返回一个支付链接地址,地址生成了一个唯一的支付token,用户识别订单,用户只需要点击该链接地址就会自动跳转至微信jsapi支付。
如图
unset($data['sign']); //去除签名
$order = self::getOrderInfo($data['out_trade_no']);
$userinfo = Db::name('admin')->where('app_key',$order['user_id'])->find();
if(empty($userinfo)){
return false;
}
$data['sign'] = $this->_getOrderMd5($data,$userinfo['appsecret']); //得到完整的签名后的数据
Log::info('开始回调客户'.json_encode($data));
$result = json_decode($this->httpRequest($userinfo['callback'],json_encode($data)),true);
Log::info('回调客户返回结果'.json_encode($result));
if($result['code'] == 200){ //正确返回
$back['callback_status'] = 1;
$back['returndata'] = json_encode($result);
Db::name('order')->where('order_sn',$data['out_trade_no'])->update($back);
return true;
}else{
$back['callback_status'] = 2;
$back['returndata'] = json_encode($result);
Db::name('order')->where('order_sn',$data['out_trade_no'])->update($back);
return false;
}
如下图所示: 支付概况
权限角色管理
订单管理
子商户管理
支付汇总
商户交易汇总
交流QQ群号:645233951
遵循Apache2开源协议发布,并提供免费使用。
更多细节参阅 LICENSE.txt
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。