Home >php教程 >php手册 >决解小型实体店微信收款系统

决解小型实体店微信收款系统

WBOY
WBOYOriginal
2016-06-07 11:36:131297browse

决解小型实体店微信收款系统,无须扫码枪也可以
应用于小网吧,小商店,等等,某些个人申请不到微信支付的老板,

决解小型实体店微信收款系统,无须扫码枪也可以
应用于小网吧,小商店,等等,某些个人申请不到微信支付的老板,
收款流程(在收银台放置固定付款二维码->客户微信扫一扫->输入金额->确定付款->收银台后台收到支付信息->交易完成)


系统刚开发,以后支持功能有,多员工(有分店或多个收银员),到账语言提示,后台查单,用户积分,openid导出(用于红包活动)等等更多功能

项目联系QQ839024615

下面发起交易代码    public function index(){<br>         $this->display();<br>     }<br>     public function weixin_pay(){<br>         include_once 'Class/weixin/lib/WxPay.JsApiPay.php';<br>         //为什么要存 session 因为默认微信是没有取到openId 会立马重置连接,导致get post 数据直接丢失<br>         if(!session('fee')){<br>             $fee=I('post.fee');<br>             $fee=$fee*100;<br>             $fee_qt=I('post.fee_qt');<br>             if($fee_qt){<br>                 $fee= $fee_qt*100;<br>             }<br>             session('fee',$fee);<br>             $body=I('post.body');<br>             <br>             session('body',$body);<br>         }else{<br>             $fee=session('fee');<br>             $body=session('body');<br>         }<br>         //①、获取用户openid<br>         $tools = new JsApiPay();<br>         $openId = $tools->GetOpenid(); <br>         if($body==''){<br>             $body=$openId;<br>         }<br>         //②、统一下单<br>         $SetOut_trade_no = WxPayConfig::MCHID.date("YmdHis");<br>         $input = new WxPayUnifiedOrder();<br>         $input->SetBody($body);<br>         $input->SetAttach($body);<br>         $input->SetOut_trade_no($SetOut_trade_no);<br>         $input->SetTotal_fee($fee);<br>         $input->SetTime_start(date("YmdHis"));<br>         $input->SetTime_expire(date("YmdHis", time() + 600));<br>         $input->SetGoods_tag("test");<br>         $input->SetNotify_url("http://paysdk.weixin.qq.com/example/notify.php");<br>         $input->SetTrade_type("JSAPI");<br>         $input->SetOpenid($openId);<br>         $order = WxPayApi::unifiedOrder($input);<br>         $jsApiParameters = $tools->GetJsApiParameters($order);<br>         //获取共享收货地址js函数参数<br>         $editAddress = $tools->GetEditAddressParameters();<br>         $this->assign('jsApiParameters',$jsApiParameters);<br>         $this->assign('editAddress',$editAddress);<br>         $this->assign('order',$order);<br>         $this->assign('fee',$fee/100);<br>         $this->assign('SetOut_trade_no',$SetOut_trade_no);<br>         $this->assign('body',$body);<br>         $this->display();<br>         session('fee',null);<br>         session('body',null);<br>     }决解小型实体店微信收款系统决解小型实体店微信收款系统决解小型实体店微信收款系统

AD:真正免费,域名+虚机+企业邮箱=0元

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