Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api_alipay_trade_query data return without sign #20

Closed
ghost opened this issue Aug 17, 2017 · 1 comment
Closed

api_alipay_trade_query data return without sign #20

ghost opened this issue Aug 17, 2017 · 1 comment

Comments

@ghost
Copy link

ghost commented Aug 17, 2017

当我调用api_alipay_trade_query去查询订单信息的时候

阿里返回的数据里面没有Sign
{u'alipay_trade_query_response':
{u'msg': u'Invalid Arguments',
u'sub_code': u'isv.invalid-app-id',
u'code': u'40002',
u'sub_msg': u'\u65e0\u6548\u7684AppID\u53c2\u6570'}
}

所以_verify_and_return_sync_response
方法里面的
sign = response["sign"]
会报报KeyError: 'sign'

求解答。

这个APPID是可以用来下单的。我测试了一下网页下单。可以到支付宝去支付。
但是为什么查询的时候会说APPID不可用????感觉也是很奇怪。。

@ghost
Copy link
Author

ghost commented Aug 17, 2017

哦。找到问题了。因为我把Alipay的debug设为了True

@fzlee fzlee closed this as completed Aug 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant