Exemple #1
0
 /// <summary>
 /// 生成 JSAPI 支付调起参数
 /// </summary>
 public JsapiPayRequest CreateJsapiRequest(UnifiedOrder.Incoming incoming, bool isSubApp = false)
 {
     return(JsapiPayRequest.Create(
                isSubApp
             ? incoming.sub_appid
             : incoming.appid,
                incoming.prepay_id)
            .PouplateSign(_requester));
 }
Exemple #2
0
 /// <summary>
 /// 生成 JSAPI 支付调起参数
 /// </summary>
 public JsapiPayRequest CreateJsapiRequest(string appId, string prepayId)
 {
     return(JsapiPayRequest.Create(appId, prepayId).PouplateSign(_requester));
 }