title: Custom paypal payment form
body: <p>What I want to do is to store payments via paypal in MySQL database using php. But there are always chances of fail. I mean if customer enters amount and press "pay now" it doesn't mean that customer successfully paid this amount. Customer may simply exit or fail.</p>
  
  <p>This code below is customizable and works like a charm, but there is a problem. The thing is, I can't set callback url with custom variables in following form to get success or fail and store this transaction in my own database. </p>
  
  <p>Any suggestions?</p>
  
  <pre><code>&lt;form name="_xclick" action="https://www.paypal.com/us/cgi-bin/webscr" method="post"&gt;
  &lt;input type="hidden" name="cmd" value="_xclick"&gt;
  &lt;input type="hidden" name="business" value="me@mybusiness.com"&gt;
  &lt;input type="hidden" name="currency_code" value="USD"&gt;
  &lt;input type="hidden" name="item_name" value="Teddy Bear"&gt;
  &lt;input type="hidden" name="amount" value="12.99"&gt;
  &lt;input type="image" src="http://www.paypalobjects.com/en_US/i/btn/btn_buynow_LG.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"&gt;
  &lt;/form&gt;
  </code></pre>