# How to change paypal url from sandbox to papal original url. i am using paypal lib -- paypal (2.0.0

**URL:** <https://www.ruby-forum.com/t/how-to-change-paypal-url-from-sandbox-to-papal-original-url-i-am-using-paypal-lib-paypal-2-0-0/163339>\
**Category:** Rails\
**Created:** [March 19, 2009, 1:16pm UTC](https://www.ruby-forum.com/t/how-to-change-paypal-url-from-sandbox-to-papal-original-url-i-am-using-paypal-lib-paypal-2-0-0/163339 "2009-03-19T13:16:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![arunvoip](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/e8c25b/32.png) [@arunvoip](https://www.ruby-forum.com/u/arunvoip)\
**Post date:** [March 19, 2009, 1:16pm UTC](https://www.ruby-forum.com/t/how-to-change-paypal-url-from-sandbox-to-papal-original-url-i-am-using-paypal-lib-paypal-2-0-0/163339/1 "2009-03-19T13:16:08Z")

</div>

sub :How to change paypal url from sandbox to papal original url. i am  
using  
paypal lib – paypal (2.0.0)

Hi all,

I am test my application with local it working fine when i want to go  
for  
live. i need to change the pay pal form target to Paypal orginal site  
address.  
I don’t know how to chage the form target in paypal helper. i paste my  
code  
below… plz check it.

I use paypal lib --paypal (2.0.0)

```
 <% form_tag Paypal::Notification.ipn_url do %>
      <%= paypal_setup "Credit purchase", (amounts.collect {|a|

```

a.amount}.join(“.”) unless amounts.empty?), “removed\_email\_address@domain.invalid”,  
:notify\_url  
=\>url\_for(:only\_path =\> false, :action =\> ‘paypal\_ipn’ ),:return  
=\>url\_for(:only\_path =\> false, :action =\>  
‘paypal\_success’),:cancel\_return  
=\> url\_for(:only\_path =\> false, :action =\>  
‘paypal\_failure’),:currency\_code  
=\> ‘JPY’,:custom =\> request.remote\_ip, :on0 =\> user.id.to\_s, :on1 =\>  
“HJCART”%\>  
\<%= image\_submit\_tag(“/images/btn\_submit1.gif”) %\>  
\<%end%\>

Default the submit tag went to sandbox site (  
[https://www.sandbox.paypal.com/cgi-bin/webscr](https://www.sandbox.paypal.com/cgi-bin/webscr)) , how to change the form  
tag  
to pay ([https://www.paypal.com/cgi-bin/webscr](https://www.paypal.com/cgi-bin/webscr))
