WC_Gateway_Paypal_Request::__constructpublicWC 1.0

Constructor.

Метод класса: WC_Gateway_Paypal_Request{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$WC_Gateway_Paypal_Request = new WC_Gateway_Paypal_Request();
$WC_Gateway_Paypal_Request->__construct( $gateway );
$gateway(WC_Gateway_Paypal) (обязательный)
Paypal gateway object.

Код WC_Gateway_Paypal_Request::__construct() WC 10.5.0

public function __construct( $gateway ) {
	$this->gateway    = $gateway;
	$this->notify_url = WC()->api_request_url( 'WC_Gateway_Paypal' );
	$this->request    = new PayPalRequest( $gateway );
}