fzlee / alipay

Python Alipay(支付宝) SDK with SHA1/SHA256 support
Other
1.28k stars 378 forks source link

api_alipay_trade_create can't use notify_url #122

Closed xiaowuyongzhi closed 3 years ago

xiaowuyongzhi commented 3 years ago

if method in ( "alipay.trade.app.pay", "alipay.trade.wap.pay", "alipay.trade.page.pay", "alipay.trade.pay", "alipay.trade.precreate" ) and (notify_url or self._app_notify_url): data["notify_url"] = notify_url or self._app_notify_url

xiaowuyongzhi commented 3 years ago

急急急 @fzlee

fzlee commented 3 years ago

试试新版的server_api函数?

xiaowuyongzhi commented 3 years ago

我看你把magre合并了 能不能打一个新版的包

xiaowuyongzhi commented 3 years ago

我现在是通过类继承在代码中解决这个问题

fzlee commented 3 years ago

On Fri, 5 Feb 2021 at 15:14, xiaowuyongzhi notifications@github.com wrote:

我看你把magre合并了 能不能打一个新版的包

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/fzlee/alipay/issues/122#issuecomment-773844268, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOYLNKRR75U2333VBJDXVDS5OLHFANCNFSM4XEB6M6Q .

已经提交新的包了,你需要用国外的源,国内同步没这么快-- 顺颂时祺

Fazheng Li

xiaowuyongzhi commented 3 years ago

我看了下 server_api 也是使用build_body 所以这个alipay.trade.create 也不能实现notify_url

fzlee commented 3 years ago

可以写在server_api 的kwargs里面, kwargs会被添加到biz_content同级的地方