Ejemplo n.º 1
0
 /// <summary>
 /// 发起订单支付
 /// </summary>
 /// <param name="payRequest"></param>
 /// <returns></returns>
 public override ApiResultModel <string> SubmitPay(PayBaseRequest payRequest)
 {
     if (BrowserType == BrowserType.Alipay)
     {
         return(GetWapAlipayPram(payRequest.orderCode, payRequest.money, payRequest.PaytimeOut));
     }
     else
     {
         return(GetAppAliPayParam(payRequest.orderCode, payRequest.money, payRequest.PaytimeOut));
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 发起订单支付
 /// </summary>
 /// <param name="payRequest"></param>
 /// <returns></returns>
 public override ApiResultModel <string> SubmitPay(PayBaseRequest payRequest)
 {
     if (BrowserType == BrowserType.Wechat)
     {
         return(GetWeChatPayJavaScriptApiParam(payRequest.orderCode, payRequest.userId, payRequest.money, payRequest.clientIp, payRequest.PaytimeOut));
     }
     else if (BrowserType == BrowserType.Wap)
     {
         return(GetWapWeChatPayApiParam(payRequest.orderCode, payRequest.userId, payRequest.money, payRequest.clientIp, payRequest.PaytimeOut));
     }
     //else if (BrowserType == BrowserType.App || BrowserType == BrowserType.AppLife)
     //{
     //    return GetAppWeChatPayApiParam(payRequest.orderCode, payRequest.userId, payRequest.money, payRequest.clientIp, payRequest.PaytimeOut);
     //}
     else if (BrowserType == BrowserType.MiniApp || BrowserType == BrowserType.ScanMiniApp)
     {
         return(GetWeChatPayJavaScriptApiParam(payRequest.orderCode, payRequest.userId, payRequest.money, payRequest.clientIp, payRequest.PaytimeOut));
     }
     else
     {
         return(GetAppWeChatPayApiParam(payRequest.orderCode, payRequest.userId, payRequest.money, payRequest.clientIp, payRequest.PaytimeOut));
     }
 }
Ejemplo n.º 3
0
 /// <summary>
 /// 发起订单支付
 /// </summary>
 /// <returns></returns>
 public abstract ApiResultModel <string> SubmitPay(PayBaseRequest payRequest);