WC_Gateway_Paypal_Request::__construct
Constructor.
Method of the class: WC_Gateway_Paypal_Request{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WC_Gateway_Paypal_Request = new WC_Gateway_Paypal_Request(); $WC_Gateway_Paypal_Request->__construct( $gateway );
- $gateway(WC_Gateway_Paypal) (required)
- Paypal gateway object.
WC_Gateway_Paypal_Request::__construct() WC Gateway Paypal Request:: construct code WC 10.7.0
public function __construct( $gateway ) {
$this->gateway = $gateway;
$this->notify_url = WC()->api_request_url( 'WC_Gateway_Paypal' );
$this->request = new PayPalRequest( $gateway );
}