Hi,
I have a form below which submits fine to paypal with the encrypted
parameters,
<%= form_tag APP_CONFIG[:paypal_url] do %>
<%= hidden_field_tag :cmd, “_s-xclick” %>
<%= hidden_field_tag :encrypted, @order.paypal_encrypted %>
<%= submit_tag "Checkout with Paypal" %>
<% end %>If I try to send the form direct from the controller it doesnt work,
ive tried various combinations, see below:
redirect_to(“https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_s-
xclick&encrypted=” + @order.paypal_encrypted)
and
redirect_to URI.encode(“https://www.sandbox.paypal.com/cgi-bin/webscr?
cmd=_s-xclick&encrypted=” + @order.paypal_encrypted)
Is this even possible and anyone know whats the best way to do it?
JB