Hi,
I am trying to do something similar to a thread,
http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/ad6cfd2d9b5e7e1
but a little different.
Using Paypal (website payments standard), I''m trying to do the
following in my checkout action:
-transfer session data (the shoppers cart) into the database
-redirect the user to the paypal site.
My problem is the standard paypal example for this uses a form post:
<form action="https://www.sandbox.paypal.com/cgi-bin/webscr"
method="post">
<%= hidden_field_tag "cmd", "_cart" %>
....
<%= submit_tag "Buy with PayPal", :class => "submit"
%>
<% end_form_tag %>
Is there a way I can redirect a user along with a post? (I''ve looked
at the Net::HTTP stuff, but it appears that just sends the post
request and doesn''t forward the user with it)
I''m kinda a noob, so is there a better design that I''m
missing? Any
help would be great appreciated.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---