I'm writing a module that creates a new checkout pane. I'm using hook_checkout_pane to do this.
Inside the new pane, I'm calling a drupal_get_form() to create a form with a form id "foo".
My problem is that Ubercart ignores my foo_validate() and foo_submit() functions, and moves on directly to the "review" stage/page.
I want my form from inside the checkout pane to be processed, so it can affect the products in the order. If I can get the foo_submit() to work, I will use hook_checkout_pane_alter() to make alterations to the order based upon the form input.
Then I want to display the checkout screen again, and only move on to review when the user clicks on "REVIEW ORDER" button on the bottom right of the screen.
Is this possible? I'm currently planning on interfering with the process of validation between checkout 'view' and checkout 'review', and bounce back and forth with session variables indicating if the customer wants to experiment or is happy with the order created by their inputs. There will be a 'make this final' checkbox within my custom form to make the redirects stop... but this is a very crude solution - I hope there is an easier method.
Help, please? Thank you for reading.

