I am trying to use an encrypted request to PayPal using my own submit button link I googled a little but, but could not find a clear & neat solution, so I ended writing this :
== Rails 2.3.8 script code ==== ... <% form_tag APP_CONFIG[:paypal_url], {:id => 'form_paypal'} do %> <%= hidden_field_tag :cmd, "_s-xclick" %> <%= hidden_field_tag :encrypted, @cart.paypal_encrypted(root_url, payment_notifications_url(:secret => APP_CONFIG[:paypal_secret])) %> <p><%= link_to_function "OK", "$('form_paypal').submit()" , :class => 'buy' %></p> <% end %> ...