标签:
1.检查发起支付的参数,全部设置为小写;
WxPayData jsApiParam = new WxPayData(); jsApiParam.SetValue("appid", WxPayConfig.APPID); jsApiParam.SetValue("partnerid", WxPayConfig.MCHID); jsApiParam.SetValue("prepayid", result.GetValue("prepay_id")); jsApiParam.SetValue("package", "Sign=WXPay"); jsApiParam.SetValue("noncestr", Guid.NewGuid().ToString().Replace("-", "")); jsApiParam.SetValue("timestamp", Convert.ToInt64(WxPayApi.GenerateTimeStamp())); jsApiParam.SetValue("sign", jsApiParam.MakeSign()); string parameters = jsApiParam.ToJson(); return parameters;
2.如果微信SDK是V3或以上版本,应该升级Android 平台 HTML5+ SDK到最新版本;
http://ask.dcloud.net.cn/docs/#http://ask.dcloud.net.cn/article/103
标签:
原文地址:http://www.cnblogs.com/mawenzhu/p/4520792.html