WordPress at Your Fingertips
function is not described

WC_Gateway_Paypal::get_transaction_url() public WC 1.0

Get the transaction URL.

{} It's a method of the class: WC_Gateway_Paypal{}

No Hooks.

Return

String.

Usage

$WC_Gateway_Paypal = new WC_Gateway_Paypal();
$WC_Gateway_Paypal->get_transaction_url( $order );
$order(WC_Order) (required)
Order object.

Code of WC_Gateway_Paypal::get_transaction_url() WC 5.6.0

public function get_transaction_url( $order ) {
	if ( $this->testmode ) {
		$this->view_transaction_url = 'https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_view-a-trans&id=%s';
	} else {
		$this->view_transaction_url = 'https://www.paypal.com/cgi-bin/webscr?cmd=_view-a-trans&id=%s';
	}
	return parent::get_transaction_url( $order );
}