Comments (16)
微信页面调用起来了么
from payandroid.
没有登录的时候出现了登录页面。登录了之后然后直接就弹出支付失败没有出现页面
from payandroid.
你少一个参数 “ mch_id”
from payandroid.
加上了还是出现支付失败。
from payandroid.
你的timestamp单位错了。自己再检查下所有的参数。https://pay.weixin.qq.com/wiki/doc/api/app/app.php?chapter=9_12
from payandroid.
我已经把timestamp换成秒了,十位数。其他数据都是后台返回的
现在param改成了:{"appid":"wxc092bce380c0038c","noncestr":"1uT0PHHQwYwRmJPZ0NBGr8NuZQQ2R9Hi","package":"Sign=WXPay","partnerid":"1429654602","sign":"58E8313401E052505CC0B509F1CD2788","timestamp":"1484646070","prepayid":"wx20170117174110c14259b59e0856844978"}
但是依然是支付失败
我是直接将上面这个字符串传入了dopay
from payandroid.
- 检查下客户端调用api时的wxappid
- 检查下包名(applicationid和packageid)和签名
- 如果还是调用失败 返回的错误码是什么?ERROR_PAY_PARAM?
from payandroid.
from payandroid.
这是param:
{
"sign": "58E8313401E052505CC0B509F1CD2788",
"partnerId": "wx20170117174110c14259b59e0856844978",
"packageValue": "Sign=WXPay",
"nonceStr": "1uT0PHHQwYwRmJPZ0NBGr8NuZQQ2R9Hi",
"appId": "wxc092bce380c0038c",
"timeStamp": "1484646070",
"prepayId": "wx20170117174110c14259b59e0856844978"
}
开放平台的包名的确是项目的包名。签名是打包后获取到的。
APPID已经更改成自己项目的APPID。
返回的是ERROR_PAY=3 支付失败。
from payandroid.
我是将您的这个项目依赖到自己项目里使用
from payandroid.
from payandroid.
打断点的结果是:
baseResp.errCode = -1;
baseResp.errStr = null;
from payandroid.
微信应该已经成功调用起来,回调也是对的。只是回调数据是错的。说明包名 签名都没问题。
建议检查下支付参数中的签名、prepayid的生成这些东西。
from payandroid.
但是IOS端调用成功并且成功支付了。
from payandroid.
你把完整的传到doPay的参数再发上来
from payandroid.
支付成功了。服务器端重新给我返回了一套参数。谢谢你~
from payandroid.
Related Issues (17)
- 实时
- 返回NULL? 支付失败 HOT 21
- pay_param 到底传什么,说的太含糊了 HOT 3
- 银联支付也搞进去啊 大兄弟
- [bug]未安装支付宝客户端,支付宝H5pay未打开
- 我自己导入了 支付宝sdk 在引用这个会冲突嘛
- 这个还在维护么 HOT 1
- 能把支付宝微信的库升级一下么? 支付宝发邮件警告了
- 有个困惑? HOT 9
- 11月发布的新版支付宝SDK中:“支付服务生成的支付参数”,是由服务端生成吗? HOT 7
- 微信连支付页面都唤不起来 HOT 1
- 注册Acitivty的时候有误,作者应该更新下! HOT 1
- 请问是在回调方法里将支付结果发送给后台吗?
- 请问appkey,privatekey如何配置 HOT 4
- 您好请问调起支付 这个方法需要的String 类型参数 是怎样得到的 , 我现在拿到 包括appid 在内的七个参数 HOT 1
- 请问微信支付的应用签名是要正式签名的apk吗? HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from payandroid.