title: Paypal button return url to WordPress and display payment informations
body: <p>I have this paypal button:</p>
  
  <pre><code> &lt;form action="https://www.paypal.com/cgi-bin/webscr" method="post"&gt;
  
          &lt;!-- Identify your business so that you can collect the payments. --&gt;
          &lt;input type="hidden" name="business" value="myPayPalAccount@gmail.com"&gt;
  
          &lt;!-- Specify a Buy Now button. --&gt;
          &lt;input type="hidden" name="cmd" value="_xclick"&gt;
  
          &lt;!-- Specify details about the item that buyers will purchase. --&gt;
          &lt;input type="hidden" name="item_name" value="item-to-buy"&gt;
          &lt;input type="hidden" name="amount" value="5"&gt;
          &lt;input type="hidden" name="currency_code" value="GBP"&gt;
  
          &lt;input type="hidden" name="return" value="mywordpressblog.com/return-url/"&gt;
  
  
          &lt;!-- Display the payment button. --&gt;
          &lt;input type="image" name="submit" border="0" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynow_LG.gif" alt="Pay Now"&gt;
          &lt;img alt="" border="0" width="1" height="1" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" &gt;
  
      &lt;/form&gt;
  </code></pre>
  
  <p>How can I get all the payment details in my return url (mywordpressblog.com/return-url/) which is a custom WordPress page?</p>
  
  <p>I need at least to know if payment was successful or not and display a consequent message and make an update on the database.</p>
  
  <p>Thanks in advance for your suggestions.</p>