WordPress at Your Fingertips
function is not described

WC_Gateway_Paypal_PDT_Handler::__construct() public WC 1.0

Constructor.

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

No Hooks.

Return

null. Nothing.

Usage

$WC_Gateway_Paypal_PDT_Handler = new WC_Gateway_Paypal_PDT_Handler();
$WC_Gateway_Paypal_PDT_Handler->__construct( $sandbox, $identity_token );
$sandbox(true|false)
Whether to use sandbox mode or not.
Default: false
$identity_token(string)
Identity token for PDT support.
Default: ''

Code of WC_Gateway_Paypal_PDT_Handler::__construct() WC 5.7.0

public function __construct( $sandbox = false, $identity_token = '' ) {
	add_action( 'woocommerce_thankyou_paypal', array( $this, 'check_response' ) );

	$this->identity_token = $identity_token;
	$this->sandbox        = $sandbox;
}