WC_Gateway_Paypal::get_transaction_url( WC_Order $order )

Get the transaction URL.


Description Description


Parameters Parameters

$order

(Required) Order object.


Top ↑

Return Return

(string)


Top ↑

Source Source

File: includes/gateways/paypal/class-wc-gateway-paypal.php

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


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.