php - Paypal IPN - Getting + then losing data? -
i using following library:
https://github.com/paypal/adaptiveaccounts-sdk-php/tree/master/samples/ipn
and paypal ipn seems working fine... can checkout , of post data paypal logged server, problem - how check against when user on site?
i have return url set same ipn url (look in github code) , after of valid data, user gets returned ipn page , says invalid.
not quite sure, thoughts?
ipn should not used return url.
- return url brings buyer site. page @ return url should display either generic thank page, or page indicating status of buyer's order. 1 of above choose, depends on paypal product select, integration , purchasing flow.
- the script url of ipn listener used automate order handling process. ipn listener gets ipn messages, processes order in own defined way.
ipn listener should post specific data paypal ipn endpoint http status 200. if outputs page, makes things complicated. need differentiate between buyer visit , paypal ipn message, , need corresponding display or ipn verification. make things simple, separating 2 things 2 pages / scripts better , more logical.
i think reason why buyer gets "invalid": ipn listener gets request data when buyer returns listener, , uses data verify ipn paypal. paypal returns "invalid" data not valid ipn messages , cannot verified.
Comments
Post a Comment