WeChatResult

class WeChatResult(resp)
resp

resp is the instance of Response class from requests

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

(JSAPI,NATIVE,APP)

prepay_id

generate by WeChat for more operation (valid in 2 hours)

code_url

Qr code url for payment

class NotifyResult(WeChatResult)

Every key in result dict refer to a attribute of this class API

class ErrorResult(WeChatResult)
success

in this case success is False

error_msg

error message dict

class SendBoxKey(WeChatResult)
key

send box secret key

class OrderResult(WeChatResult)
trade_state

the state of this order

out_trade_no

order id

total_fee

amount of fee of this order

class DownLoadBillResult(WeChatResult)
text

unicode of the bill content

content

bill content

class CloseOrderResult(WeChatResult)

pass

class ShortUrlResult(WeChatResult)
short_url

short url

class RefundResult(WeChatResult)

Every key in result dict refer to a attribute of this class

API

class RefundQueryResult(WeChatResult)

API

Because there are some field need to access by index, so use the result dict to fetch the data you need