2016-04-02 13 views
1

Ich versuche PayPal IPN auf meiner Website zu ermöglichen. Ich stehe jetzt vor einigen Problemen mit der Testumgebung - PayPal Sandbox.PayPal sofortige Zahlung Benachrichtigung (IPN) Sandbox

Ich versuche, mit PHP zu integrieren, also verwende ich den Code der Datei paypal_ipn.php von https://github.com/paypal/ipn-code-samples.

Ich habe einen Test HTML-Seite, mit der ich die POST-Aktionen senden paypal_ipn.php:

<form target="_new" method="post" action="http://example.com/paypal_integration/paypal_ipn.php"> 

<input type="hidden" name="business" value="[email protected]_email.com"> 
<input type="hidden" name="item_name" value="product name"> 
<input type="hidden" name="amount" value="1" > 
<input type="hidden" name="item_number" value="1"> 
<input type="hidden" name="custom" value="[email protected]"> 
<input type="hidden" name="currency_code" value="USD"> 
<input type="hidden" name="quantity" value="1"> 
<input type="hidden" name="no_shipping" value="1"> 
<input type="hidden" name="return" value="http://example.com/paypal_integration/return.php"> 
<input type="hidden" name="cancel_return" value="http://example.com/paypal_integration/cancel_return.php"> 
<input type="hidden" name="cbt" value="description"> 
<input type="hidden" name="rm" value="2"> 
<input type="hidden" name="notify_url" value="http://example.com/paypal_integration/paypal_ipn.php"> 
    <input type="submit" value="submit!" /> 
</form> 

Das Ergebnis ist "ungültig". Wie gehe ich dieses Problem in der Sandbox-Umgebung und danach in Live-Umgebung durch? I.e. Wie bekomme ich "VERIFIED" -Aktionen in der Sandbox?

Antwort

1

Ich habe dieses Problem gelöst:

oder: