WC_Payment_Gateway::get_return_url()publicWC 1.0

Get the return url (thank you page).

Method of the class: WC_Payment_Gateway{}

Hooks from the method

Return

String.

Usage

$WC_Payment_Gateway = new WC_Payment_Gateway();
$WC_Payment_Gateway->get_return_url( $order );
$order(WC_Order|null)
Order object.
Default: null

WC_Payment_Gateway::get_return_url() code WC 8.7.0

public function get_return_url( $order = null ) {
	if ( $order ) {
		$return_url = $order->get_checkout_order_received_url();
	} else {
		$return_url = wc_get_endpoint_url( 'order-received', '', wc_get_checkout_url() );
	}

	return apply_filters( 'woocommerce_get_return_url', $return_url, $order );
}