title: Paypal - Return url page and variables
body: <p>Is it possible for me to get paypal post variables in return url. I want to show a response message in return url page depending on whether the user's transaction was completed/pending/failed one. I am testing with paypal sandbox account.</p>
  
  <p>Here is my code,</p>
  
  <pre><code>&lt;input type="hidden" name="item_name" value="Credit Purchase"&gt;    
  &lt;input type="hidden" name="business" value="&lt;?php echo paypal_business_id;?&gt;"&gt;
  &lt;input type="hidden" name="rm" value="2"&gt;
  &lt;input type="hidden" name="cmd" value="_xclick"&gt;
  &lt;input type="hidden" name="currency_code" id="currency_code" value="GBP"&gt;
  &lt;input type="hidden" name="custom" id="custom" value="&lt;?php echo $user."@@@".$num_purchase;?&gt;"&gt;  
  &lt;input type="hidden" name="return" value="&lt;?php echo base_url(); ?&gt;buy/success"&gt;
  &lt;input type="hidden" name="cancel_return" value="&lt;?php echo base_url(); ?&gt;"&gt; 
   &lt;input type="hidden" name="notify_url" value="&lt;?php echo base_url(); ?&gt;buy/notify
  </code></pre>