# Paypal Library - How to stop payments going to sandbox

**URL:** <https://www.ruby-forum.com/t/paypal-library-how-to-stop-payments-going-to-sandbox/119862>\
**Category:** Rails\
**Created:** [November 11, 2007, 1:51pm UTC](https://www.ruby-forum.com/t/paypal-library-how-to-stop-payments-going-to-sandbox/119862 "2007-11-11T13:51:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jspencer78](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/f14d63/32.png) [@jspencer78](https://www.ruby-forum.com/u/jspencer78)\
**Post date:** [November 11, 2007, 1:51pm UTC](https://www.ruby-forum.com/t/paypal-library-how-to-stop-payments-going-to-sandbox/119862/1 "2007-11-11T13:51:41Z")

</div>

I am using the Paypal Library for ruby  
([http://dist.leetsoft.com/api/paypal/](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](https://www.sandbox.paypal.com/cgi-bin/webscr)

How do I change the paypal URL?

---

<div class="post-metadata">

**Author:** ![jspencer78](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/f14d63/32.png) [@jspencer78](https://www.ruby-forum.com/u/jspencer78)\
**Post date:** [November 11, 2007, 5:50pm UTC](https://www.ruby-forum.com/t/paypal-library-how-to-stop-payments-going-to-sandbox/119862/2 "2007-11-11T17:50:21Z")

</div>

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](http://www.paypal.com/cgi-bin/webscr)  
#  
cattr\_accessor :ipn\_url  
@@ipn\_url = ‘[https://www.sandbox.paypal.com/cgi-bin/webscr](https://www.sandbox.paypal.com/cgi-bin/webscr)’

Tiago M.
