0

I am not sure if this is possible in Rails, but I have an order form where I would like to allow updates to certain fields based on the status of the order. I can manage this with the form_for and the appropriate logic in the controller and such.

However on the same form I would like to have a button which allows the user to pay (via stripe checkout) if the order is complete.

Essentially this "Pay" button should post to a different route (Payments) than the Order

Is there a way to define the 2nd submit button so it posts to a different route?

0 Answers0