@RequestMapping(value = "/integration/merchant_callback", method = RequestMethod.POST) public void process(final HttpServletRequest request, final HttpServletResponse response) { initializeSiteFromRequest(request); try { acceleratorPaymentService.handleCreateSubscriptionCallback(getParameterMap(request)); } finally { // Kill this session at the end of the request processing in order to reduce the server // overhead, otherwise // this session will hang around until it's timed out. final HttpSession session = request.getSession(false); if (session != null) { session.invalidate(); } } response.setStatus(HttpServletResponse.SC_OK); }
@RequestMapping(value = "/integration/order_review_callback", method = RequestMethod.POST) public void process( @RequestBody final MultiValueMap<String, String> bodyParameterMap, final HttpServletRequest request, final HttpServletResponse response) throws Exception { initializeSiteFromRequest(request); try { acceleratorPaymentService.handleFraudUpdate(bodyParameterMap.toSingleValueMap()); } finally { // Kill this session at the end of the request processing in order to reduce the server // overhead, otherwise // this session will hang around until it's timed out. final HttpSession session = request.getSession(false); if (session != null) { session.invalidate(); } } response.setStatus(HttpServletResponse.SC_OK); }