title: How to capture response from PayPal payment using PHP script?
body: <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="hosted_button_id" value="Y43MR9C35KS88"&gt;
          &lt;input class="btn btn-success btn-block" type="submit" value="Recharge via PayPal or Credit Card"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>The above code was generated from a PayPal business account. This takes a buyer to PayPal website where he can go through the payment process. The payment amount was fixed to $20 during generating the code. I need to capture the payment amount and confirmation of payment so that I can update a local database table to record the payment.</p>
  
  <p>How can I do this?</p>