(self, pay)
:type pay: wechat_django.models.WeChatPay
:type pay: wechat_django.models.WeChatPay
: type pay : wechat_django . models . WeChatPay
def __init__(self, pay):
        """:type pay: wechat_django.models.WeChatPay"""
        self.pay = pay
        kwargs = dict(
            appid=pay.appid,
            api_key=pay.api_key,
            mch_id=pay.mch_id,
            sub_mch_id=pay.sub_mch_id
        )
        if pay.mch_app_id:
            kwargs["sub_appid"] = pay.sub_appid

        super(WeChatPayClient, self).__init__(**kwargs)
def __init__ ( self , pay ) : self . pay = pay kwargs = dict ( appid = pay . appid , api_key = pay . api_key , mch_id = pay . mch_id , sub_mch_id = pay . sub_mch_id ) if pay . mch_app_id : kwargs [ "sub_appid" ] = pay . sub_appid super ( WeChatPayClient , self ) . __init__ ( * * kwargs )