paypal / ipn-code-samples

Other
562 stars 486 forks source link

POST verification IPN INVALID, in google firebase functions #120

Closed elile closed 6 years ago

elile commented 6 years ago

General information

Issue description

I'm trying to implement ipn listener in google firebase functions but always getting response INVALID, when I testing my code with the IPN test simultor(on sandbox environment) it was worked OK with NULL date. When I testing on the sandbox environment with paypal button it's work OK But on production I always getting response INVALID. My code is very similar to the googlecloudfunctions.js example Thanks

xiaoleih41 commented 6 years ago

Did you post your response to the correct URL? Please refer to this page and troubleshoot this error.

randstraw commented 6 years ago

The most common cause seems to be plus signs in dates and email addresses due to decoding issue which can cause these problems. This is a community member provided code sample which is harder for us to support; however, if you provide the value of formUrlEncodedBody we can take a look as well.

elile commented 6 years ago

Debug ID: ff97aa16be71a

randstraw commented 6 years ago

@elile Try changing your encoding to UTF-8 in your account profile IPN settings to see if that resolves the issue. If that toggle does not resolve your issue then reach out the PayPal Technical Support for assistance at https://www.paypal-techsupport.com/app/ask, due to the sensitive nature of production information.