WC_Gateway_Paypal::get_transaction_url()publicWC 1.0

Get the transaction URL.

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.

WC_Gateway_Paypal::get_transaction_url() code WC 8.6.1

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