Comments (4)
-
验证同步接口的返回, 建议参看源代码里面的 这个函数
_verify_and_return_sync_response
,里面有一个比较笨的验证同步接口的函数。 -
交易预创建返回的是一个字符串,一般直接传给网页前端, 网页前端调用相应的库将字符串渲染成二维码。
from alipay.
alipay = AliPay(appid="", ...)
create an order
alipay.api_alipay_trade_precreate (
subject="test subject",
out_trade_no="out_trade_no",
total_amount=100
)
例程是这样的
您的意思是可以
rq_url=alipay.api_alipay_trade_precreate (
subject="test subject",
out_trade_no="out_trade_no",
total_amount=100
)
这样就得到了生成二维码的url么?
from alipay.
from alipay.
这个我知道哈,我之前没有用SDK已经自己实现了的,只是看到例程里面没有这样写,觉得有些奇怪,不然不生成二维码这个接口无意义
from alipay.
Related Issues (20)
- 请问在使用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
- 您好,请问支持分账吗? HOT 11
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.