Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
LLMS_Controller_Orders::validate_selected_gateway( string $gateway_id, LLMS_Access_Plan $plan )
Validate a gateway can be used to process the current action / transaction
Description Description
Parameters Parameters
- $gateway_id
-
(Required) Gateway's id.
- $plan
-
(Required) Instance of the LLMS_Access_Plan related to the action/transaction.
Return Return
(WP_Error|LLMS_Payment_Gateway) WP_Error or LLMS_Payment_Gateway subclass.
Source Source
File: includes/controllers/class.llms.controller.orders.php
Changelog Changelog
Version | Description |
---|---|
3.10.0 | Introduced. |