WordPress at Your Fingertips
function is not described

WC_Gateway_Paypal_Request::get_request_url() public WC 1.0

Get the PayPal request URL for an order.

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

No Hooks.

Return

String.

Usage

$WC_Gateway_Paypal_Request = new WC_Gateway_Paypal_Request();
$WC_Gateway_Paypal_Request->get_request_url( $order, $sandbox );
$order(WC_Order) (required)
Order object.
$sandbox(true|false)
Whether to use sandbox mode or not.
Default: false

Code of WC_Gateway_Paypal_Request::get_request_url() WC 5.7.0

public function get_request_url( $order, $sandbox = false ) {
	$this->endpoint    = $sandbox ? 'https://www.sandbox.paypal.com/cgi-bin/webscr?test_ipn=1&' : 'https://www.paypal.com/cgi-bin/webscr?';
	$paypal_args       = $this->get_paypal_args( $order );
	$paypal_args['bn'] = 'WooThemes_Cart'; // Append WooCommerce PayPal Partner Attribution ID. This should not be overridden for this gateway.

	// Mask (remove) PII from the logs.
	$mask = array(
		'first_name'    => '***',
		'last_name'     => '***',
		'address1'      => '***',
		'address2'      => '***',
		'city'          => '***',
		'state'         => '***',
		'zip'           => '***',
		'country'       => '***',
		'email'         => '***@***',
		'night_phone_a' => '***',
		'night_phone_b' => '***',
		'night_phone_c' => '***',
	);

	WC_Gateway_Paypal::log( 'PayPal Request Args for order ' . $order->get_order_number() . ': ' . wc_print_r( array_merge( $paypal_args, array_intersect_key( $mask, $paypal_args ) ), true ) );

	return $this->endpoint . http_build_query( $paypal_args, '', '&' );
}