Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
        public JsApiPayParams GetJsApiPayParams(WxAppInfoConfig config, string orderId, string orderSn, string prepayId)
        {
            JsApiPayParams parms = new JsApiPayParams(config.AppId, config.PayKey, prepayId, orderId, orderSn);

            return(parms);
        }