WC_Payment_Gateway::get_return_url( WC_Order|null $order = null )
Get the return url (thank you page).
Description Description
Parameters Parameters
- $order
-
(Optional) Order object.
Default value: null
Return Return
(string)
Source Source
File: includes/abstracts/abstract-wc-payment-gateway.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 ); }