LLMS_Payment_Gateway::complete_transaction( LLMS_Order $order, null $deprecated = null )

This should be called by the gateway after verifying the transaction was completed successfully


Parameters Parameters

$order

(LLMS_Order) (Required) Instance of an LLMS_Order object.

$deprecated

(null) (Optional) Deprecated.

Default value: null


Top ↑

Return Return

(void)


Top ↑

Source Source

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

180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
public function complete_transaction( $order, $deprecated = null ) {
 
    $this->log( $this->get_admin_title() . ' `complete_transaction()` started', $order );
 
    $redirect = $this->get_complete_transaction_redirect_url( $order );
 
    $this->log( $this->get_admin_title() . ' `complete_transaction()` finished', $redirect, $order );
 
    // Ensure notification processors get dispatched since shutdown wont be called.
    do_action( 'llms_dispatch_notification_processors' );
 
    // Execute a redirect.
    llms_redirect_and_exit(
        $redirect,
        array(
            'safe' => false,
        )
    );
 
}


Top ↑

Changelog Changelog

Changelog
Version Description
3.37.18 Allow redirection to external domains by disabling "safe" redirects.
3.34.3 Use llms_redirect_and_exit() instead of wp_redirect() and exit().
3.30.0 Added access plan and query string checkout redirect settings.
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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