LLMS_Controller_Orders::create_pending_order()
Handle form submission of the checkout / payment form
Description Description
-
Logs in or Registers a user
- Validates all fields
- Handles coupon pricing adjustments
-
Creates a PENDING llms_order
If errors, returns error on screen to user If success, passes to the selected gateways "process_payment" method the process_payment method should complete by returning an error or triggering the "lifterlms_process_payment_redirect" // Todo check this last statement.
Return Return
(void)
Source Source
File: includes/controllers/class.llms.controller.orders.php
Changelog Changelog
Version | Description |
---|---|
5.0.1 | Delegate sanitization of user information fields of the $_POST to LLMS_Form_Handler::submit(). |
5.0.0 | Build customer data using LLMS_Forms fields information. |
3.35.0 | Sanitize $_POST data. |
3.27.0 | Unknown. |
3.0.0 | Introduced. |