LLMS_Controller_Orders
LLMS_Controller_Orders class
Description Description
Source Source
File: includes/controllers/class.llms.controller.orders.php
Changelog Changelog
Version | Description |
---|---|
5.0.0 | Build customer data using LLMS_Forms fields information. |
4.2.0 | Added logic to set the order status to 'cancelled' when an enrollment linked to an order is deleted. Also llms_unenroll_on_error_order fiter hook added. |
3.36.1 | In recurring_charge() , made sure to process only proper LLMS_Orders of existing users. |
3.34.5 | Fixed logic error in llms_order_can_be_confirmed conditional. |
3.34.4 | Added filter llms_order_can_be_confirmed . |
3.33.0 | Added logic to delete any enrollment records linked to an LLMS_Order on its permanent deletion. |
3.0.0 | Introduced. |
Methods Methods
- __construct — Constructor
- complete_order — Perform actions on a successful order completion
- confirm_pending_order — Confirm order form post User clicks confirm order or gateway determines the order is confirmed
- create_pending_order — Handle form submission of the checkout / payment form
- error_order — Called when an order's status changes to refunded, cancelled, expired, or failed.
- expire_access — Handle expiration & cancellation from a course / membership
- on_delete_order — Called when a post is permanently deleted
- on_user_enrollment_deleted — Called when an user enrollment is deleted
- pending_cancel_order — Unschedule recurring payments and schedule access expiration
- recurring_charge — Trigger a recurring payment
- switch_payment_source — Handle form submission of the "Update Payment Method" form on the student dashboard when viewing a single order
- transaction_failed — When a transaction fails, update the parent order's status
- transaction_refunded — When a transaction is refunded, update the parent order's status
- transaction_succeeded — When a transaction succeeds, update the parent order's status
- transition_status — Trigger actions when the status of LifterLMS Orders and LifterLMS Transactions change status
- validate_selected_gateway — Validate a gateway can be used to process the current action / transaction