![]() |
Paypal_lib issue - Orders are always invalid - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Paypal_lib issue - Orders are always invalid (/showthread.php?tid=16493) |
Paypal_lib issue - Orders are always invalid - El Forum - 03-08-2009 [eluser]Andrew K[/eluser] I've been working on a website that will be used for online ordering. As such, I found the paypal_lib plugin for CI (http://codeigniter.com/wiki/PayPal_Lib/) which was very easy and great to work with... however, there's been an issue. Every order that I attempt (that is, using the Paypal Sandbox), will return "invalid". I checked the paypal IPN log and it seems that all of the variables are being passed properly, but I still receive an "INVALID" during the IPN response. I opened the log in VIM to view it and saw that the parameters didn't have any ^M in them (which signifies a \r). This leads me to possibly believe that perhaps CI is stripping the \r from the content, perhaps. I'll be testing a few more things, but does anyone happen to have any clues or ideas? Thanks for any help! Paypal_lib issue - Orders are always invalid - El Forum - 03-08-2009 [eluser]Tom Schlick[/eluser] there are paypal libs already in this forum. search the forum and check the wiki. Paypal_lib issue - Orders are always invalid - El Forum - 03-08-2009 [eluser]Andrew K[/eluser] Right, that's the library I've been using ![]() I am having an issue where it is always returning INVALID within the responses Paypal_lib issue - Orders are always invalid - El Forum - 03-08-2009 [eluser]TheFuzzy0ne[/eluser] Have you read about the fixes on the Wiki? http://codeigniter.com/wiki/PayPal_Lib/. Looks like it might fix your problem. Paypal_lib issue - Orders are always invalid - El Forum - 03-08-2009 [eluser]Andrew K[/eluser] Yup, did all of those fixes, except the last one. I didn't do the last fix/adjustment because I am not receiving a HTTP/1.1 307 Temporary Redirect, but I'll try that adjustment now to see if it somehow might be affecting my responses. Paypal_lib issue - Orders are always invalid - El Forum - 03-08-2009 [eluser]Andrew K[/eluser] Solved! Seems that it was my own folly by not following every step in the Wiki. It seems the last step is quite cruicial ![]() The URL you provide the paypal_lib is NOT used as the URL that it receives the IPN response from. I was expecting the URLs to be the same and that's where I was completely wrong! Thanks for everyone's help. Paypal_lib issue - Orders are always invalid - El Forum - 03-08-2009 [eluser]TheFuzzy0ne[/eluser] Glad you got it sorted. At least now I know to ensure I follow the whole Wiki article next week when I start using the library. ![]() Paypal_lib issue - Orders are always invalid - El Forum - 03-08-2009 [eluser]TheFuzzy0ne[/eluser] Ooh, one more thing... Please could you post/attach the modified library? It may save someone some copying and pasting. I know the changes are simple, but it saves anyone making mistakes. |