title: How do I receive callback from Paypal buy now button using PHP
body: <p>I am currently testing the buy now button on a PHP website. The transaction is working but I am getting now call back from Paypal to update my database.</p>
  
  <p>Here is the code I have (I have changed urls) :</p>
  
  <pre><code>&lt;form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top"&gt;
  &lt;input type="hidden" name="cmd" value="_s-xclick"&gt;
  &lt;input type="hidden" name="encrypted" value="........"
  &lt;input type="image" src="https://www.paypalobjects.com/fr_CA/i/btn/btn_buynowCC_LG.gif"   border="0" name="submit" alt="PayPal - la solution de paiement en ligne la plus simple et  la plus sécurisée !"&gt;
  &lt;img alt="" border="0" src="https://www.paypalobjects.com/fr_CA/i/scr/pixel.gif" width="1" height="1"&gt;
  
  
  &lt;input name="notify_url" value="mypage.php" type="hidden"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>For the call back I saw on another website I should receive a $_POST['payment_status']; and a $_POST['invoice'];</p>
  
  <p>Is it true?</p>