Forum: Ruby on Rails How to change paypal url from sandbox to papal original url. i am using paypal lib -- paypal (2.0.0

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
375d7ac426d619ce9c2add272a51d5bf?d=identicon&s=25 Arun Kumar (jakthegr8)
on 2009-03-19 13:16
(Received via mailing list)
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?), "bussiness@xxx.com",
: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) , how to change the form
tag
to pay (https://www.paypal.com/cgi-bin/webscr)
This topic is locked and can not be replied to.