| | |
| | | return ResultUtil.success(response.getBody()); |
| | | } catch (AlipayApiException e) { |
| | | e.printStackTrace(); |
| | | return ResultUtil.error("调起支付异常", ""); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | |
| | |
| | | if("SUCCESS".equals(result_code)){ |
| | | Map<String, String> map1 = new HashedMap(); |
| | | map1.put("nonce_str", map.get("nonce_str")); |
| | | map1.put("out_trade_no", map.get("out_trade_no").split("_")[1]);//存储的订单code |
| | | map1.put("attach", map.get("attach"));//存储订单id |
| | | map1.put("out_trade_no", map.get("out_trade_no")); |
| | | map1.put("attach", map.get("attach")); |
| | | map1.put("total_fee", map.get("total_fee")); |
| | | map1.put("transaction_id", map.get("transaction_id"));//微信支付订单号 |
| | | String result = "<xml><return_code><![CDATA[SUCCESS]]></return_code><return_msg><![CDATA[OK]]></return_msg></xml>"; |