Esempio n. 1
0
        public WeJsApiRequest(WePaymentResponse payResponse)
        {
            TkDebug.AssertArgumentNull(payResponse, "payResponse", null);

            AppId = WeixinSettings.Current.AppId;
            NonceStr = WeUtil.CreateNonceStr();
            SignType = "MD5";
            Package = "prepay_id=" + payResponse.PrepayId;
            TimeStamp = DateTime.Now;
            PaySign = WePayUtil.CreateSign(this);
        }
Esempio n. 2
0
        public WeJsApiRequest(WePaymentResponse payResponse)
        {
            TkDebug.AssertArgumentNull(payResponse, "payResponse", null);

            AppId     = WeixinSettings.Current.AppId;
            NonceStr  = WeUtil.CreateNonceStr();
            SignType  = "MD5";
            Package   = "prepay_id=" + payResponse.PrepayId;
            TimeStamp = DateTime.Now;
            PaySign   = WePayUtil.CreateSign(this);
        }
        public WeNativeResponse(WePaymentResponse payResponse)
        {
            TkDebug.AssertArgumentNull(payResponse, "payResponse", null);

            AppId = payResponse.AppId;
            MchId = payResponse.MchId;
            NonceStr = payResponse.NonceStr;
            ReturnCode = payResponse.ReturnCode;
            ReturnMsg = payResponse.ReturnMsg;
            ResultCode = payResponse.ResultCode;
            ErrCodeDes = payResponse.ErrCodeDes;
            ErrCode = payResponse.ErrCode;
            PrepayId = payResponse.PrepayId;

            Sign = WePayUtil.CreateSign(this);
        }
Esempio n. 4
0
        public WeNativeResponse(WePaymentResponse payResponse)
        {
            TkDebug.AssertArgumentNull(payResponse, "payResponse", null);

            AppId      = payResponse.AppId;
            MchId      = payResponse.MchId;
            NonceStr   = payResponse.NonceStr;
            ReturnCode = payResponse.ReturnCode;
            ReturnMsg  = payResponse.ReturnMsg;
            ResultCode = payResponse.ResultCode;
            ErrCodeDes = payResponse.ErrCodeDes;
            ErrCode    = payResponse.ErrCode;
            PrepayId   = payResponse.PrepayId;

            Sign = WePayUtil.CreateSign(this);
        }