title: Setting PayPal return URL to localhost
body: <p>I'm trying to integrate Paypal and I'm using sandbox in the process. I follow the step of the accepted answer in the below question. <a href="https://stackoverflow.com/questions/7642895/setting-paypal-return-url-and-making-it-auto-return">Setting PayPal return URL and making it auto return?</a></p>
  
  <p>But when I try to enter the URL, Paypal return the below error.</p>
  
  <pre><code>We were unable to validate the URL you have entered. Please check your entry and try again.
  </code></pre>
  
  <p>URL I'm trying to set is <code>http://localhost:8888/paypal/success.php</code>.</p>
  
  <p><strong><em>Also</em></strong> I tried sending the return url with the form as below. </p>
  
  <pre><code>&lt;input type="hidden" name="return" value="http://localhost:8888/paypal/success.php"&gt;
  </code></pre>
  
  <p>Both methods does not work for me.</p>
  
  <p>Full Form</p>
  
  <pre><code>&lt;form method="post" action="https://www.sandbox.paypal.com/cgi-bin/webscr"&gt;
  &lt;!-- Identify your business so that you can collect the payments. --&gt;
  &lt;input type="hidden" value="dasun_1358759028_biz@archmage.lk" name="business"&gt;
  &lt;!-- Specify a Buy Now button. --&gt;
  &lt;input type="hidden" value="_xclick" name="cmd"&gt;
  &lt;!-- Specify details about the item that buyers will purchase. --&gt;
  &lt;input type="hidden" value="AM Test Item" name="item_name"&gt;
  &lt;input type="hidden" value="22.16" name="amount"&gt;
  &lt;input type="hidden" name="currency_code" value="USD"&gt;
  &lt;input type="hidden" value="item_number" name="item_number"&gt;
  &lt;input type="hidden" name="return" value="http://localhost:8888/paypal/success.php"&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="PayPal - The safer, easier way to pay online"&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 test this on my development pc ?</p>