I''m using the paypal-ruby plugin and I have it all working -- except the validation of the IPN. I get the post from payal, and it gets posted back to PayPal for verification by the plug code, and it all looks right to me, but PayPal returns INVALID. Has anyone else seen this or have any tips for what to look for? Thanks, Michael --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I''m using the paypal-ruby plugin and I have it all working -- except the validation of the IPN. I get the post from payal, and it gets posted back to PayPal for verification by the plug code, and it all looks right to me, but PayPal returns INVALID. Has anyone else seen this or have any tips for what to look for? Thanks, Michael --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I haven''t used the ruby paypal stuff but I tangled with that in java. I know that paypal says you have to post the params back to them *exactly* as you got them (watch out for charset issues)... that and you have to add the "cmd=_notify_validate" param... you''re doing that right? b Michael Slater wrote:> I''m using the paypal-ruby plugin and I have it all working -- except > the validation of the IPN. I get the post from payal, and it gets > posted back to PayPal for verification by the plug code, and it all > looks right to me, but PayPal returns INVALID. Has anyone else seen > this or have any tips for what to look for? > > Thanks, > > Michael > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Feb 20, 2007, at 18:49 , Michael Slater wrote:> I''m using the paypal-ruby plugin and I have it all working -- except > the validation of the IPN. I get the post from payal, and it gets > posted back to PayPal for verification by the plug code, and it all > looks right to me, but PayPal returns INVALID. Has anyone else seen > this or have any tips for what to look for?A common cause for this would be forgetting to remove :action and :controller from the params hash before posting them back to PayPal. -- Jakob Skjerning - http://mentalized.net --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hello Michael, 2007/2/20, Michael Slater <ms@mslater.com>:> I'm using the paypal-ruby plugin and I have it all working -- except > the validation of the IPN. I get the post from payal, and it gets > posted back to PayPal for verification by the plug code, and it all > looks right to me, but PayPal returns INVALID. Has anyone else seen > this or have any tips for what to look for?I had some problems too. Net::HTTP has a debug parameter you can use to see the exact requests/responses. I think it's called #set_debug_output or something. Hope that helps ! -- François Beausoleil http://blog.teksol.info/ http://piston.rubyforge.org/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Thanks everyone for your suggestions. I''m using the paypal-ruby plugin which takes care of making sure that the parameters are properly echoed back. I spent hours scrutinizing what it was doing and just couldn''t find any problem with the data posted back. It turns out that the data was in fact fine, and the problem was very simple: I was using the sandbox for initial transaction, but the verification post was going to the main paypal server, so of course it didn''t recognize it. How did I do such a foolish thing? In the paypal ruby plugin, the URL is set as a class variable. I overrode this in the environment file but didn''t take the setting out of the plugin code. But when the plugin code accesses the URL using uri = URI.parse(self.class.ipn_url) It picks up the version in the class definition, not my attempt to override it in the environment file. Michael On Feb 21, 4:04 pm, "François Beausoleil" <francois.beausol...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hello Michael, > > 2007/2/20, Michael Slater <m...-04BUtanlfE1BDgjK7y7TUQ@public.gmane.org>: > > > I''m using the paypal-ruby plugin and I have it all working -- except > > the validation of the IPN. I get the post from payal, and it gets > > posted back to PayPal for verification by the plug code, and it all > > looks right to me, but PayPal returns INVALID. Has anyone else seen > > this or have any tips for what to look for? > > I had some problems too. Net::HTTP has a debug parameter you can use > to see the exact requests/responses. I think it''s called > #set_debug_output or something. > > Hope that helps ! > -- > François Beausoleilhttp://blog.teksol.info/http://piston.rubyforge.org/--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---