LLMS_Payment_Gateway::confirm_pending_order( LLMS_Order $order )
Confirms a Payment.
Description Description
Called by LLMS_Controller_Orders::confirm_pending_order on confirm form submission.
Some validation is performed before passing to this function, gateways should do further validation on their own.
This stub is not necessary to implement if the gateway doesn’t have a payment confirmation step.
For gateways which implement AJAX order processing, this function should return either a WP_Error or a success array from LLMS_Payment_Gateway::complete_transaction_ajax().
For gateways which implement synchronous order processing through form submission, this function should not return and should instead perform a redirect and / or output notices using llms_add_notice().
Parameters Parameters
- $order
-
(LLMS_Order) (Required) Instance of the order being processed.
Return Return
(void|WP_Error|array)
Source Source
File: includes/abstracts/abstract.llms.payment.gateway.php
public function confirm_pending_order( $order ) {}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |