llms_confirm_payment_url( $order_key = null )

Get url for redirect when user confirms payment


Description Description


Return Return

(string)


Top ↑

Source Source

File: includes/functions/llms.functions.page.php

function llms_confirm_payment_url( $order_key = null ) {

	$args = array();

	if ( $order_key ) {
		$args['order'] = $order_key;
	}

	$redirect = urldecode( llms_filter_input( INPUT_GET, 'redirect', FILTER_VALIDATE_URL ) );
	if ( $redirect ) {
		$args['redirect'] = rawurlencode( $redirect );
	}

	$url = llms_get_endpoint_url( 'confirm-payment', '', get_permalink( llms_get_page_id( 'checkout' ) ) );
	if ( $args ) {
		$url = add_query_arg( $args, $url );
	}

	/**
	 * Filter the checkout confirmation URL
	 *
	 * @since 1.0.0
	 *
	 * @param string $url URL to the payment confirmation screen.
	 */
	return apply_filters( 'lifterlms_checkout_confirm_payment_url', $url );

}

Top ↑

Changelog Changelog

Changelog
Version Description
3.38.0 Added redirect query string parameter.
1.0.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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