LLMS_Payment_Gateway::complete_transaction_ajax( LLMS_Order $order, array $data = array() )

This should be called by AJAX-powered gateways after verifying that a transaction was completed successfully.

Parameters Parameters


(LLMS_Order) (Required) The order being processed.


(array) (Optional) Data to add to the default success return array.

Default value: array()

Top ↑

Return Return

(array) An array of return data. The actual return array may include additional data from the payment gateway.

  • 'redirect'
    (string) The complete transaction redirect URL.
  • 'status'
    (string) The status code, always 'SUCCESS'.

Top ↑

Source Source

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

	public function complete_transaction_ajax( $order, $data = array() ) {

		$data = wp_parse_args(
				'redirect' => $this->get_complete_transaction_redirect_url( $order ),
				'status'   => 'SUCCESS',

		// Ensure notification processors get dispatched since shutdown won't be called.
		do_action( 'llms_dispatch_notification_processors' );

		return $data;


Top ↑

Changelog Changelog

Version Description
7.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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