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);
        }
Beispiel #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);
        }
Beispiel #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);
        }