WordPress at Your Fingertips
function is not described

WC_Payment_Gateway::get_return_url() public WC 1.0

Get the return url (thank you page).

{} It's a 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.

Code of WC_Payment_Gateway::get_return_url() WC 5.5.2

<?php
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 );
}