public WxPayData GetUnifiedTransferResult(string orderNo, string userName, string desc) { WxPayData data = new WxPayData(); data.SetValue("partner_trade_no", orderNo); data.SetValue("openid", openid); data.SetValue("re_user_name", userName); data.SetValue("amount", total_fee); data.SetValue("desc", desc); WxPayData result = WxPayApi.UnifiedTransfer(data); if (!result.IsSet("payment_no"))//(!result.IsSet("mch_appid") || !result.IsSet("mchid")) { Log.Error(this.GetType().ToString(), "UnifiedTransfer response error!"); throw new WxPayException("UnifiedTransfer response error!"); } unifiedOrderResult = result; return(result); //data.SetValue("mchid", WxPayConfig.MCHID); //data.SetValue() }