微信JSApi支付~集成到MVC环境后的最后一个坑(网上没有这种解决方案)

返回目录

大叔第一人

之前写了关于微信的坑《微信JSApi支付~坑和如何填坑》,今天将微信的jsapi支付封装到了MVC环境里,当然也出现了一些新的坑,如支付参数应该是Json对象而不是Json字符串,这样也会应付引起“get_brand_wcpay_request:fail_invalid appid”这个大家都知道的异常,呵呵,解决方案网上说是“授权目录“,事实上,还有一种原因,那就是你的WeixinJSBridge.invoke方法里的参数应该是Json对象而不是字符串,这才是最重要的。

代码我们需要写成下面的格式

    //调用微信JS api 支付
function jsApiCall() {
var price = 1.0;
var no = '@Request.QueryString["orderNumber"]';
var action = '@Url.Action("Get")';
var openID = '@openID';
$.get(action, { price: price, orderNumber: no, openID: openID }, function (data) {
WeixinJSBridge.invoke('getBrandWCPayRequest', JSON.parse(data), function (res) {
WeixinJSBridge.log(res.err_msg);
alert(res.err_code + res.err_desc + res.err_msg);
});
});
}

对于我们封装成MVC后,由于MVC的路由将扩展名去除了,所以我们的授权目录也发生了变化,如Order/Pay这个页面,在收取时应该是http://域名/Order/Pay/,而之前的http://域名/Order/这个级别就不被认可了,这点也要注意一下。

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAA4IAAAETCAIAAADszi/5AAAgAElEQVR4nO2dTYwc133gc9XBB5JQvLS4MDWjSYXTZFMqSuzm1LBZgDI8LC+6GQvEvuiwFDHwLTZ81UInYrBjIDcm2JZlW9QXJapI2wvsh7UbtBRbDJaLZYImFlIsJfRu1JI8EhVHpMjZQ329r6qunno9XVX9++EPe6a7+tXr1y3+f/N/71X9wcqKp8TxTsevA0sP7Xsgg4OPPPL1h5Z8//i+B/YdPrz0wAMPHHjkiO/7vr9yYO/Xj8ctHD+8lNVCSPyq6OB9Dy2FPx955MDS4eNh+8f9eWdlxZt1Fyamjn22CyNQHMYKAGBK/EHdNPT4PlUQVw7s/drSYckGjzxyIPTIpcOH9z2w75H4V5F9Dy2JZun7/vHDS4p3hr+GhykHhyw9tE98yXxSxyRdxz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hqnsBu3/9r6erqB4IT1Kckbuwk9+Y7NzSVPoBUaGrpWXUy+FfNCSAKr98pN6ixLnO+mVHPpYrcr9965cu+dt3bfvXLvnV8d/fa7f333q6PfijVX7r1j3OvO8wGP1D56ekAy0z88fXl259M/nAUDDoH4irUbm2JGCGNJdjOtnGQ3MmUk3FpOAIU1wpJPtte3m827x8eHazGx2wS7JZ4UY2OR7XabG8pklKOwE5AOL05rN9Is61RVvMxdOXodE7ttN5v8oKT8SJHbqcdM46skSp6c4QZoX2OxY+J5Yzf+Syw60YyFcVYoIB4i9e2a3Q+tJP/GgCebwbSSmcRuqdfPktnqgC98dpv3+PeMMe/x799ImO8mZrdF/uKZKQ/WuPL++/ngmyAtjWK9Qua7sUyzeWPCND1nibNb7G8Y5ImmQXf7RjivLZyTEY2ZsikyUyNRDcVlT/zFlRFs021utHbv03hTaNc4343JAaP2W4UgAqVOpxNo6TwS0dsl8sqNZpefuMiOZzffTSJN7BZnTGWcB7+iz8U87MYz0J8f/uLh84OfH/5CrDEupDftbSKsS3k27w0ewd15PuDVDiVYQOzGSfFLrODiIYlbmmvDaLdohtqEY4mY6EgeHJRDLSkCShm7KRIUNZF3D85XUXA4jCv63QMJKrEb6dvSB4hFsePW+vaR9nuGbnObD2WuymM4YZlSgVwfoWFnErulXU+Jm0sogzuP52MeduPLO7s/+o8/N97Z/dH8DjHvZXLT4Vf0YN7AbrmYhxR4/9p79372X4d/eO/ez8SapVsSWw92A3MFdstF4QYp85LYerAbmCuwWy4KN0iZl8TWg93AXIHdclG4Qcq8JLYe7AbmCuyWi8INUuYlsfVgNzBXYLdcFG6QMi+JrQe7gbkCu+Xix39+r3CJlHP59//5cWLrwW5grsBuuRj88wSCM6pt8M/kH72PRmMsWOa3wG4AgGoCuwEAqgnsBgCoJv8PoOLzcyjAAAkAAAAASUVORK5CYII=" alt="" width="415" height="161" />

还有一点要注册,如果你添加了测试授权目录,那必须要添加测试用的白名单,否则你的微信也测试不了。

大叔封装的MVC版的微信JSAPI支付

    /// <summary>
/// 构建支付处理类
/// </summary>
public class JsApiImplement
{
public static string wxJsApiParam { get; set; } //H5调起JS API参数 /// <summary>
/// 返回当前微信客户端的OpenId,每个客户端在每个公众号里的OpenId是唯一的
/// </summary>
/// <returns></returns>
public static string GetOpenId()
{
JsApiPay jsApiPay = new JsApiPay(System.Web.HttpContext.Current);
jsApiPay.GetOpenidAndAccessToken();
Log.Debug("GetOpenId", "openid : " + jsApiPay.openid);
return jsApiPay.openid;
} /// <summary>
/// JsApi返回微信支付的连接参数,这个方法需要前台UI页面调用,通常可以使用AJAX进行调用它
/// </summary>
/// <param name="total_fee">订单金额</param>
/// <param name="orderId">业务的订单编号</param>
/// <returns></returns>
public static string Send(int total_fee, string orderId, string openId)
{
try
{
//调用【网页授权获取用户信息】接口获取用户的openid和access_token
//jsApiPay.GetOpenidAndAccessToken();
JsApiPay jsApiPay = new JsApiPay(System.Web.HttpContext.Current);
jsApiPay.openid = openId;
Log.Debug("Send", "openid : " + jsApiPay.openid);
//若传递了相关参数,则调统一下单接口,获得后续相关接口的入口参数,微信的价格是分
jsApiPay.total_fee = total_fee;
WxPayData unifiedOrderResult = jsApiPay.GetUnifiedOrderResult(orderId);
wxJsApiParam = jsApiPay.GetJsApiParameters();//获取H5调起JS API参数
Log.Debug("Send", "wxJsApiParam : " + wxJsApiParam);
}
catch (Exception ex)
{
Log.Error("Error", ex.Message);
}
return wxJsApiParam;
} /// <summary>
/// JsApi微信回调
/// </summary>
public static void Notify(Action<NotifyModel> action)
{
var context = System.Web.HttpContext.Current;
ResultNotify resultNotify = new ResultNotify(context);
resultNotify.ProcessNotify(action);
}
}

对于使用者来说,也很简单,在页面上拿OpenId,之后把OpenId传到后台方法,拿到微信支付的参数对象(JSON对象),之后完成支付

<script type="text/javascript">

    //调用微信JS api 支付
function jsApiCall() {
$.get("/weixin/get", new { money: 1, order: '001', openId: 'test' }, function (data) {
WeixinJSBridge.invoke('getBrandWCPayRequest', JSON.parse(data), function (res) {
WeixinJSBridge.log(res.err_msg);
alert(res.err_code + res.err_desc + res.err_msg);
});
});
} function callpay() {
if (typeof (WeixinJSBridge) == "undefined") {
if (document.addEventListener) {
document.addEventListener('WeixinJSBridgeReady', jsApiCall, false);
}
else if (document.attachEvent) {
document.attachEvent('WeixinJSBridgeReady', jsApiCall);
document.attachEvent('onWeixinJSBridgeReady', jsApiCall);
}
}
else {
jsApiCall();
}
} </script> <body>
<a href="javascript:void(0)" onclick="callpay();return false;">立即支付</a>
</body>

希望大家一起来找各种坑,然后把坑填上,分享给大家!

微信JSApi支付~坑和如何填坑

返回目录

上一篇:C++堆栈与函数调用


下一篇:Lambda入门