Comments (10)
out_trade_no是整数而不是字符串?
from alipay.
都试过,你注意看一下debug
from alipay.
开启debug报错的原因是你传的支付宝公钥错了,应该用沙盒的支付宝公钥。
from alipay.
你编辑一下这个包的源代码,在api_alipay_trade_precreate函数的448行左右 print(data),看看你传了什么参数给支付宝吧。
from alipay.
没太明白,支付宝公钥是从蚂蚁金服网站我创建的应用下边上传应用私钥获取到的,为什么不用这个而使用沙盒的支付宝公钥呢?(沙盒没用过)
from alipay.
那我明天调试一下你说的448行,非常感谢你的SDK奉献!
from alipay.
debug=True之后,请求会被发送到支付宝的沙盒环境,沙盒环境的公钥和生产环境的公钥是不一样的。
如果想在线上调试,想你这样设置支付额度为1分钱就可以了,不需要传入debug
from alipay.
@fzlee 如果在SDK中把需要为字符串的参数都str()一下,debug=True时打印warning提示要使用沙箱公钥是不是会好一点。。。
from alipay.
发现错误了,我的subject后面加了个逗号让它变成元组了。。
from alipay.
转换用户参数这件事情, 我应该不太会去做。关于参数的类型,用户应该去仔细看看支付宝文档了。
debug=True的提示我会在下一个版本加入。
from alipay.
Related Issues (20)
- api_alipay_trade_create can't use notify_url HOT 7
- 请问在使用alipay.trade.page.pay接口时报错TypeError: quote_from_bytes() expected bytes怎么解决 HOT 2
- 能否跟官方SDK同时使用? HOT 1
- 我得验签出现问题 试了很多方法 想问问大佬 HOT 28
- 公钥证书模式下总是签名错误 HOT 13
- return_url, notify_url 应当允许不设置 HOT 3
- OpenSSL.crypto.Error: [('PEM routines', 'get_name', 'no start line')] HOT 1
- 3.0接口验证不通过 HOT 2
- OpenSSL.crypto.Error: [('asn1 encoding routines', 'asn1_check_tlen', 'wrong tag'), ('asn1 encoding routines', 'asn1_d2i_ex_primitive', 'nested asn1 error'), ('asn1 encoding routines', 'asn1_template_noexp_d2i', 'nested asn1 error'), ('asn1 encoding routines', 'asn1_template_noexp_d2i', 'nested asn1 error'), ('PEM routines', 'PEM_ASN1_read_bio', 'ASN1 lib')] HOT 5
- RSA key format is not supported HOT 8
- 支付宝公钥已经采用证书的形式,没有提供公钥这种形式,需要自己转换?请问有没有好的解放方案么?谢谢 HOT 3
- 添加支持 alipay.fund.account.query(支付宝资金账户资产查询接口) HOT 2
- alipay.api_alipay_trade_query(out_trade_no=order_id) HOT 4
- uwsgi 无法正常返回 HOT 6
- 验证回调通知错误 HOT 4
- 没有公网ip,怎么样验证支付是否成功 HOT 2
- 能否增加aes支持 HOT 2
- ImportError: cannot import name 'Alipay' from 'alipay'
- 使用支付宝公钥 初始化AliPay时报错 binascii.Error: Incorrect padding HOT 8
- ssl依赖该升级了 HOT 3
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 alipay.