Django-paypal: IPN requests with invalid postback

I am building an e-commerce site using django-paypal to accept Paypal payments.

95% of the time, everything works flawlessly, users can pay, sandbox or not, and get what they bought.

The remaining 5% of the time, however, instead of " VERIFIED " or " INVALID " as the response code, I get: Invalid postback. (<html> <body> Fatal Failure <br> </body> </html> ) Invalid postback. (<html> <body> Fatal Failure <br> </body> </html> )

This does not allow our program to find out what to do, and therefore the payment will be confirmed on our side. EVEN THOUGHTS that the payment is marked as β€œfull” in IPN and on the Paypal side.

+6
source share
1 answer

You must reflect (cancel) all parameters that Paypal sent to you intact. No corruption of the encoding. Even if odd characters sometimes appear in the data, for example, \ backslash. Accidental data corruption will cause you to notice "Invalid reverse ... Fatal failure."

For troubleshooting details, see the PP_MTS_Chad excellent tip in notify_url to never call when a customer pays a subscription

0
source

All Articles