James Sturrock
2007-Nov-11 12:51 UTC
Paypal Library - How to stop payments going to sandbox
I am using the Paypal Library for ruby (http://dist.leetsoft.com/api/paypal/) I have been testing it in development mode and the paypal sandbox site. Now I have moved my application into production mode but the paypal url still goes to the sandbox site: https://www.sandbox.paypal.com/cgi-bin/webscr How do I change the paypal URL? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Tiago Macedo
2007-Nov-11 16:49 UTC
Re: Paypal Library - How to stop payments going to sandbox
Hi, You have the information you need in the notification.rb file: class Notification attr_accessor :params attr_accessor :raw # Overwrite this url. It points to the Paypal sandbox by default. # Please note that the Paypal technical overview (doc directory) # speaks of a https:// address for production use. In my tests # this https address does not in fact work. # # Example: # Paypal::Notification.ipn_url = http://www.paypal.com/cgi-bin/webscr # cattr_accessor :ipn_url @@ipn_url = ''https://www.sandbox.paypal.com/cgi-bin/webscr'' Tiago Macedo James Sturrock wrote:> I am using the Paypal Library for ruby > (http://dist.leetsoft.com/api/paypal/) > > I have been testing it in development mode and the paypal sandbox site. > Now I have moved my application into production mode but the paypal url > still goes to the sandbox site: > > https://www.sandbox.paypal.com/cgi-bin/webscr > > How do I change the paypal URL? >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---