Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

LLMS_Frontend_Assets::get_checkout_urls()

Retrieves AJAX checkout URLs used for checkout and switching payment source on the student dashboard.


Return Return

(array)


Top ↑

Source Source

File: includes/class.llms.frontend.assets.php

	 * Retrieves AJAX checkout URLs used for checkout and switching payment source on the student dashboard.
	 *
	 * @since 7.0.0
	 *
	 * @return array
	 */
	private static function get_checkout_urls() {
		$urls       = array();
		$controller = LLMS_Controller_Checkout::instance();

		if ( is_llms_checkout() ) {
			$urls = array(
				'createPendingOrder'  => $controller->get_url( $controller::ACTION_CREATE_PENDING_ORDER ),
				'confirmPendingOrder' => $controller->get_url( $controller::ACTION_CONFIRM_PENDING_ORDER ),
			);
		} elseif ( is_llms_account_page() && 'orders' === LLMS_Student_Dashboard::get_current_tab( 'slug' ) && is_numeric( get_query_var( 'orders', false ) ) ) {
			$urls = array(
				'switchPaymentSource' => $controller->get_url( $controller::ACTION_SWITCH_PAYMENT_SOURCE ),


Top ↑

Changelog 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.