支付宝notify_url不执行,谁知道是什么原因。我调试了很久,找不到解决的办法,请各位大神棒棒忙
4条回答 默认 最新
是星星总会发光 2016-01-09 08:44关注//支付类型
String payment_type = "1";
ActiveOrder activeOrder = (ActiveOrder)request.getAttribute("activeOrder");String projectUrl = (String)request.getAttribute("projectUrl"); //必填,不能修改 //服务器异步通知页面路径 String notify_url =projectUrl+"/pc/alipay/notify2"; //request.getSession().setAttribute("yorderId", activeOrder.getOrderId()); //需http://格式的完整路径,不能加?id=123这类自定义参数 //页面跳转同步通知页面路径 //String return_url = projectUrl+"/pc/pv/order/detail?orderId="+order.getOrderId(); String return_url =projectUrl+"/pc/pv/myWinningCode"; //需http://格式的完整路径,不能加?id=123这类自定义参数,不能写成http://localhost/ //商户订单号 String out_trade_no = new String(activeOrder.getOrderCode().getBytes("ISO-8859-1"),"UTF-8"); //商户网站订单系统中唯一订单号,必填解决 无用评论 打赏 举报