LLMS_Payment_Gateway::complete_transaction( obj $order, string $deprecated = '' )

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


Description Description


Parameters Parameters

$order

(obj) (Required) Instance of an LLMS_Order object

$deprecated

(string) (Optional) (deprecated) optional message to display on the redirect screen

Default value: ''


Top ↑

Return Return

(void)


Top ↑

Source Source

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

	public function complete_transaction( $order, $deprecated = '' ) {

		$this->log( $this->get_admin_title() . ' `complete_transaction()` started', $order );

		$redirect = $this->get_complete_transaction_redirect_url( $order );

		// deprecated msg if supplied, will be removed in a future release
		if ( $deprecated ) {

			llms_deprecated_function( 'LLMS_Payment_Gateway::complete_transaction() with message', '3.8.0', 'LifterLMS enrollment notices' );
			llms_add_notice( apply_filters( 'lifterlms_completed_transaction_message', $deprecated, $order ), 'success' );

		}

		$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
		wp_redirect( $redirect );
		exit();

	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.30.0
3.0.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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





Permalink: