public static CodeDownload_Result PayQuery(MinShunPayOrderInfo order) { MinShunPayApi api = new MinShunPayApi(serverUrl, signkey); CodeDownload_Params param = new CodeDownload_Params(); param.partnerId = partnerId; param.tranCod = "0700"; param.mercid = mercid; param.tranType = order.TranType;//微信:180000 ,支付宝:280000 param.txnamt = ((int)(order.Price * 100)).ToString(); param.orderId = order.OrderId; param.termid = order.TermId; param.spbill_ip = order.SpbillIp; param.notify_url = notify_url; param.remark = order.Remark; param.orderDate = order.SubmitTime.ToString("yyyyMMdd"); param.orderTime = order.SubmitTime.ToString("HHmmdd"); CodeDownload_Request rquest = new CodeDownload_Request(param); var b = api.DoPost(rquest); return(b); }
public CodeDownload_Request(CodeDownload_Params param) { _urlParameters.Add("partnerId", param.partnerId); _urlParameters.Add("tranCod", param.tranCod); _urlParameters.Add("tranType", param.tranType); _urlParameters.Add("txnamt", param.txnamt); _urlParameters.Add("orderId", param.orderId); _urlParameters.Add("mercid", param.mercid); _urlParameters.Add("termid", param.termid); _urlParameters.Add("spbill_ip", param.spbill_ip); _urlParameters.Add("notify_url", param.notify_url); _urlParameters.Add("remark", param.remark); _urlParameters.Add("orderDate", param.orderDate); _urlParameters.Add("orderTime", param.orderTime); //_urlParameters.Add //this.PostData = postdata; }