\RepayForm
Form for displaying on the {@link CheckoutPage} with all the necessary details for a visitor to complete their order and pass off to the {@link Payment} gateway class.
Synopsis
class RepayForm
extends Form
{
- // methods
- public void __construct()
- public void setupFormErrors()
- public void createFields()
- public void createActions()
- public void createValidator()
- public void getPaymentFields()
- public Order Cart()
- public void validate()
- public void process()
- public void populateFields()
Hierarchy
Extends
- Form
Members
protected
- $customer
- $order
Methods
public
- __construct() — Construct the form, get the grouped fields and set the fields for this form appropriately, the fields are passed in an associative array so that the fields can be grouped into sets making it easier for the template to grab certain fields for different parts of the form.
- Cart() — Helper function to return the current {@link Order}, used in the template for this form
- createActions()
- createFields()
- createValidator()
- getPaymentFields()
- populateFields()
- process()
- setupFormErrors() — Set up current form errors in session to the current form if appropriate.
- validate() — Overloaded so that form error messages are displayed.