Einstellung PayPal return URL auf localhost

Ich versuche zu integrieren Paypal und ich bin mit der sandbox in den Prozess. Ich Folge den Schritt akzeptierte Antwort auf die folgende Frage. Einstellung PayPal return URL-und macht es automatisch zurück?

Aber wenn ich versuche, geben Sie die URL, Paypal zurück die folgende Fehlermeldung.

We were unable to validate the URL you have entered. Please check your entry and try again.

URL die ich versuche zu setzen ist http://localhost:8888/paypal/success.php.

Auch ich habe versucht, das senden der url zurück mit dem Formular unten.

<input type="hidden" name="return" value="http://localhost:8888/paypal/success.php">

Beide Methoden bei mir nicht funktioniert.

Volle Form

<form method="post" action="https://www.sandbox.paypal.com/cgi-bin/webscr">
<!-- Identify your business so that you can collect the payments. -->
<input type="hidden" value="[email protected]" name="business">
<!-- Specify a Buy Now button. -->
<input type="hidden" value="_xclick" name="cmd">
<!-- Specify details about the item that buyers will purchase. -->
<input type="hidden" value="AM Test Item" name="item_name">
<input type="hidden" value="22.16" name="amount">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" value="item_number" name="item_number">
<input type="hidden" name="return" value="http://localhost:8888/paypal/success.php">
<!-- Display the payment button. -->
<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">
<img alt="" border="0" width="1" height="1" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" >
</form> 

Wie kann ich testen, diese auf meinem Entwicklungs-pc ?

InformationsquelleAutor Techie | 2013-01-21
Schreibe einen Kommentar