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().


Top ↑

Parameters Parameters

$order

(LLMS_Order) (Required) Instance of the order being processed.


Top ↑

Return Return

(void|WP_Error|array)


Top ↑

Source Source

File: includes/abstracts/abstract.llms.payment.gateway.php

	public function confirm_pending_order( $order ) {}

Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.