I have a new payment gateway that requires the site to load the payment page within phpfox. I have already created a module that loads the form. How do I link the module to the pay button so that the module loads first before loading the payment gateway. The module basically gives users various payment options, it should then load the gateway. I'm having trouble with the logic and steps required to do this.
The platform is phpfox 3.2