public CustomJsonResult GetJsApiPayParams(string prepayId, string orderId, string orderSn, bool isBuy) { CustomJsonResult result = new CustomJsonResult(); JsApiPayParams parms = new JsApiPayParams(wxConfig.AppId, wxConfig.Key, prepayId, orderId, orderSn, isBuy); return(new CustomJsonResult(ResultType.Success, ResultCode.Success, "", parms)); }
public JsApiPayParams GetJsApiPayParams(WxAppInfoConfig config, string orderId, string orderSn, string prepayId) { JsApiPayParams parms = new JsApiPayParams(config.AppId, config.PayKey, prepayId, orderId, orderSn); return(parms); }