Skip to content

Commit

Permalink
Fix WeChatPay.get_payment_data bug
Browse files Browse the repository at this point in the history
Closes #593
  • Loading branch information
messense committed Jul 28, 2020
1 parent bf9e132 commit 9722d72
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions wechatpy/pay/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ def get_payment_data(cls, xml):
raise ValueError("invalid xml")
if not data or "xml" not in data:
raise ValueError("invalid xml")
data = data["xml"]
return {
"appid": data["appid"],
"mch_id": data["mch_id"],
Expand Down

0 comments on commit 9722d72

Please sign in to comment.