title: PayPal Payment Callback
body: <p>I have searched for more than 4 hours now on how to do callback with PayPal after a payment have been proceeded.</p>
  
  <p>The thing is, I have a site the sells tickets to a LAN Party, and the only way to pay is with PayPal.<br>
  Here is my PayPal buy button code:</p>
  
  <pre><code>&lt;form target="paypal" action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post"&gt;
  &lt;input type="hidden" name="add" value="1"&gt;
  &lt;input type="hidden" name="cmd" value="_cart"&gt;
  &lt;input type="hidden" name="business" value="_MY_PAYPAL_EMAIL_"&gt;
  &lt;input type="hidden" name="item_number" value="&lt;?php echo mktime(); ?&gt;"&gt;
  &lt;input type="hidden" name="cn" value="&lt;?php echo $_SESSION['userid']; ?&gt;"&gt;
  &lt;input type="hidden" name="return" value="http://80.202.213.240/apps/tickets/buy/success/" /&gt;
  &lt;input type="hidden" name="cancel_return" value="http://80.202.213.240/apps/tickets/buy/cancelled/" /&gt;
  &lt;input type="hidden" name="notify_url" value="http://80.202.213.240/apps/tickets/buy/ipn/" /&gt;
  &lt;input type="hidden" name="lc" value="NO"&gt;
  &lt;input type="hidden" name="item_name" value="BitHack - Standard Ticket"&gt;
  &lt;input type="hidden" name="amount" value="100.00"&gt;
  &lt;input type="hidden" name="currency_code" value="NOK"&gt;
  &lt;input type="hidden" name="no_shipping" value="1"&gt;
  &lt;input type="hidden" name="button_subtype" value="Tickets"&gt;
  &lt;input type="hidden" name="add" value="1"&gt;
  &lt;input type="hidden" name="bn" value="PP-ShopCartBF:btn_cart_LG.gif:NonHostedGuest"&gt;
  &lt;input type="submit" value="Add to Cart" class="ticketShowButton submit" title="Payment via PayPal"&gt;
  </code></pre>
  
  <p>  </p>
  
  <p>The info should then be inserted into a database, that part I have finished.
  Just need the callback system to work.
  Anyone know any good callback script examples?</p>
  
  <p>BTW, is it possible do use custom inputs?</p>