Home > php教程 > PHP源码 > body text

微信支付接口开发新手常见问题解决

WBOY
Release: 2016-07-06 13:34:25
Original
1498 people have browsed it

微信支付接口开发新手常见问题其实就是下载的实际下来一些常用的小问题了,下面我们来看看小编整理的一篇相关文章。

今天,我下载了官方文档,直接用官方demo(php版本)做了个简单支付页面。遇到了下面问题。
1、配置文件修改

找到配置文件WxPay.Config.php,只需要配置下面四项

微信支付接口开发遇到的小问题

2、redirect_uri参数错误

登陆公众管理后台-点击开发者中心-找到网页帐号点击修改,写自己域名,保存生效。

3、页面URL未注册

登陆公众微信后台-微信支付-开发配置,支付授权目录路径一直到最后一个斜杠

我设置的测试授权目录是:http://www.xxx.com.cn/m/test/wxpay/example/
我的JsApi支付页面是:http://www.xxx.com.cn/m/test/wxpay/example/money.php

4、样例页面

jsapi.php jsApi支付

micropay.php 刷卡支付
native.php 扫码支付
orderquery.php 订单查询
refund.php 订单退款
refundquery.php 退款查询
download.php 下载订单
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!