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?
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 M.