No Description

README 1.6KB

    <p>SDK 体验地址 <a href="http://paysdk.weixin.qq.com/" rel="nofollow">http://paysdk.weixin.qq.com/</a></p> <p>快速搭建指南 ①、安装配置nginx+phpfpm+php ②、建SDK解压到网站根目录 ③、修改lib/WxPay.Config.php为自己申请的商户号的信息(配置详见说明) ⑤、下载证书替换cert下的文件 ⑥、搭建完成</p> <p>SDK目录结构 |-- cert | |-- apiclient_cert.pem | <code>-- apiclient_key.pem |-- index.php |-- lib | |-- WxPay.Api.php | |-- WxPay.Config.php | |-- WxPay.Data.php | |-- WxPay.Exception.php |</code>-- WxPay.Notify.php |-- logs | |-- 2015-03-06.log | <code>-- 2015-03-11.log </code>-- example</p> <pre><code>|-- WxPay.JsApiPay.php |-- WxPay.MicroPay.php |-- WxPay.NativePay.php |-- download.php |-- micropay.php |-- native.php |-- native_notify.php |-- notify.php |-- orderquery.php |-- qrcode.php |-- refund.php |-- refundquery.php |-- jsapi.php |-- log.php `-- phpqrcode </code></pre> <p>目录功能简介 lib API接口封装代码 WxPay.Api.php 包括所有微信支付API接口的封装 WxPay.Config.php 商户配置 WxPay.Data.php 输入参数封装 WxPay.Exception.php 异常类 WxPay.Notify.php 回调通知基类</p> <p>cert 证书存放路径,证书可以登录商户平台<a href="https://pay.weixin.qq.com/index.php/account/api_cert%CF%C2%D4%D8" rel="nofollow">https://pay.weixin.qq.com/index.php/account/api_cert下载</a></p> <p>example 样例程序代码路径</p> <p>example/phpqrcode 开源二维码php代码</p> <p>logs 日志文件</p> <p>※配置指南 MCHID = &#39;1225312702&#39;; 这里填开户邮件中的商户号</p> <p>APPID = &#39;wx426b3015555a46be&#39;; 这里填开户邮件中的(公众账号APPID或者应用APPID)</p> <p>KEY = &#39;e10adc3949ba59abbe56e057f20f883e&#39; 这里请使用商户平台登录账户和密码登录<a href="http://pay.weixin.qq.com" rel="nofollow">http://pay.weixin.qq.com</a> 平台设置的“API密钥”,为了安全,请设置为32字符串。</p> <p>APPSECRET = &#39;01c6d59a3f9024db6336662ac95c8e74&#39; 改参数在JSAPI支付(open平台账户不能进行JSAPI支付)的时候需要用来获取用户openid,可使用APPID对应的公众平台登录<a href="http://mp.weixin.qq.com" rel="nofollow">http://mp.weixin.qq.com</a> 的开发者中心获取AppSecret。</p>