Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> PayPal – powiadomienie o płatności - problem
piotreklew
post
Post #1





Grupa: Zarejestrowani
Postów: 2
Pomógł: 0
Dołączył: 31.08.2011

Ostrzeżenie: (0%)
-----


Witam,
mam problem z otrzymywaniem z PayPala powiadomienia o płatności. Płatność wykonuje się poprawnie ale nie przychodzi odpowiedz z PayPala na wskazany plik.
Kod przycisku:
CODE
<form action='https://www.paypal.com/cgi-bin/webscr' method='post'>
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="..@...">
<input type="hidden" name="amount" id="amount" value="">
<input type="hidden" name="item_number" id="item_number" value="">
<INPUT TYPE="hidden" NAME="item_name" id="item_name" VALUE="">
<input type="hidden" name="return" value="http://www.adres_strony.pl/platnosc/ok/">
<input type="hidden" name="notify_url" value="http://www.adres_strony.pl/sklep/ipn.php">
<input type="hidden" name="cancel_return" value="http://www.adres_strony.pl/platnosc/anulowana/">
<INPUT TYPE="hidden" NAME="currency_code" VALUE="GBP">
<input type="image" src="http://www.adres_strony.pl/images/koszyk/pay_now.gif" name="submit" alt="PayPal" OnClick='return form_zam(this.form);' style='width:308px; height:57px; border:0px;'>
</form>


W panelu PayPal w historii IPN widać tą transakcję i posiada status Sent i HTTP response code: 200 a mimo wszystko plik ipn.php nie wykonał się. Jeżeli wpiszę w przeglądarce adres url pliku ipn to wykonuje się. Testowałem plik ipn również za pomocą developer.paypal.com i też plik ipn wykonał się. Zmieniłem prawa dostępu CHMOD do pliku ipn.php na 777 i też to nie pomogło. Czy macie jakiś pomysł, co może być nie tak?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
zbig
post
Post #2





Grupa: Zarejestrowani
Postów: 144
Pomógł: 30
Dołączył: 5.05.2007
Skąd: Mannheim

Ostrzeżenie: (0%)
-----


Witam!

Spojrz kolego tutaj https://cms.paypal.com/cms_content/US/en_US...er/IPNGuide.pdf.

Tam masz dokladny opis jak IPN funkcjonuje w PayPal.
Zobacz rozdzial "Setting Up IPN Notifications on PayPal"

Pozdrawiam

EDIT:
Cytat
You can specify an IPN listener for a specific payment; this is the only way to receive IPNs associated with Adaptive Payments. In this case, PayPal sends the IPN message to the listener specified in the notification URL for a specific button or API operation instead of the listener specified in your Profile.

NOTE:
The IPN message will always be sent to your notification URL unless receiving IPNs have been disabled. Even though you have not enabled receiving IPN messages in your Profile or you have reset your preference by turning off IPN messages, PayPal still sends IPN messages to the notification URL you specify for a specific payment.
IPN messages not sent because you disabled the preference in your Profile will appear in the IPN history when you enable receiving IPNs. After they appear in the history, you can choose whether or not to resend them.


Ten post edytował zbig 31.08.2011, 15:16:10
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 4.10.2025 - 14:01