WeChatResult¶
-
class
WeChatResult
(resp)¶ -
-
success
¶ success is used to determine whether this request is successful
-
result
¶ result is a python dict which contains the response data that parsed from xml
-
error_msg
¶ error_msg contains the error message if anything went wrong
-
-
class
UnifiedorderResult
(WeChatResult)¶ -
trade_type
¶
-
prepay_id
¶ generate by WeChat for more operation (valid in 2 hours)
-
code_url
¶ Qr code url for payment
-
-
class
ErrorResult
(WeChatResult)¶ -
success
¶ in this case success is False
-
error_msg
¶ error message dict
-
-
class
OrderResult
(WeChatResult)¶ -
trade_state
¶ the state of this order
-
out_trade_no
¶ order id
-
total_fee
¶ amount of fee of this order
-
-
class
CloseOrderResult
(WeChatResult)¶ pass