title: how to configure ipn listener url in Paytabs account
body: <p>in spring mvc controller i have created payPalIpnListener() method for fetching the transactions details while payment is accepted or rejected but facing problem in doing same ,since i have used IPN paytabs functionality to implement this .</p>
  
  <p>below ipn listener config and sample code to fetch transactions details:     </p>
  
  <p><a href="https://i.stack.imgur.com/BudFX.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BudFX.jpg" alt="enter image description here"></a> @RequestMapping(value = {"payPalIpnListener"}, method = RequestMethod.POST)</p>
  
  <pre><code>public String payPalIpnListener(ModelMap modelMap, HttpServletRequest httpServletRequest) throws Exception {
      try {
          Enumeration&lt;String&gt; parameterNames = httpServletRequest.getParameterNames();
  
          Long paymentRef = Long.parseLong(httpServletRequest.getParameter("payment_reference"));
          while (parameterNames.hasMoreElements()) {
  
              String paramName = parameterNames.nextElement();
              String[] paramValues = httpServletRequest.getParameterValues(paramName);
              for (String paramValue : paramValues) {
                  System.out.println("paramName : " + paramName + ",paramValue : " + paramValue);
              }
          }
  }
  </code></pre>
  
  <p>Could someone help to config IPN Listener in paytabs and how do i fetch transactions details in spring controller.</p>