|
if (!navigator.alipay) {
return;
}
var notifyUrl = 'http://balanceapitest.fensishenghuo.com/api/balance/callback';
var tradeNo = tradeNo;
var alipay = navigator.alipay;
alipay.pay({
"seller" : "fensishenghuo@qq.com", // 卖家支付宝账号或对应的支付宝唯一用户号
"subject" : "杭州云助理有限公司", // 商品名称
"body" : "粉丝生活余额充值", // 商品详情
"price" : moneyInput, // 金额,单位为RMB
"tradeNo" : tradeNo, // 唯一订单号
"timeout" : "30m", // 超时设置
"notifyUrl" : notifyUrl
// 服务器通知路径
}, function(message) {
var responseCode = parseInt(message);
if (responseCode === 9000) {
//调审核接口
justep.Util.hint("支付成功");
me.getBalanceMoney(); //获取余额
}else if(responseCode === 6001) {
justep.Util.hint("您已取消支付!");
}
}, function(message) {
alert(message);
alert("支付失败");
});
现在弹出支付支付失败,message返回:Attempt to invoke virtual method'int java.lang.String.lengtho' on a null object reference
请大神帮忙 |
|