title: Paypal payment using Spring MVC
body: <p>I was working with SpringMVC + Paypal payment and found out what a stupid code i've written (although it is working fine). I'm using a paypal form that submits data like amount, item name, success url, cancel url etc. to paypal for the payment. It contains hidden fields to send the data and as we all know that hidden fields are not hidden any more :)</p>
  
  <p>Anybody can right click on the form and use inspect element and can change the value of the amount. Also, when i've done the payment, i have to click the "Return back to ...." link to get back to my page where i cannot read any data returned by paypal about the transaction.</p>
  
  <p>So I would like to ask if there is another workaround like before I move to paypal page, I get some token using my API key and after the payment is done, paypal auto redirects back to my url ( don't have to click "Return ..." ) and I can validate the transaction there after</p>
  
  <p>I tried and was able to find some code using google but all of them are paying with their own account.</p>
  
  <p>In my application, client has to enter their paypal account information when they reach the paypal page</p>
  
  <p>Waiting eagerly for a reply, thanks &amp; regards</p>
  
  <p><strong>If you require code, i will post my form code too but I know it is not good technique using form &amp; session for payment</strong></p>