Conditional URL in form post?


#1

Hello there,

I am trying to send a form post to different URLs based on the data
submitted in the form (if the user selects credit card payment I need
to send a form POST to a payment gateway, and if the user selects
invoice payment type then I will process the form data within the
Rails app). I have tried using Net::HTTP from the controller, which
works well in sending a POST request with the needed parameters,
however I am not directed to the URL I am posting to (which needs to
happen to complete the credit card transaction).

Any help/ideas would be very much appreciated.

Thx,
-Fredrik Bach