WC_Gateway_Paypal_PDT_Handler::__construct()
Constructor.
Method of the class: WC_Gateway_Paypal_PDT_Handler{}
No Hooks.
Return
null
. Nothing (null).
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: ''
WC_Gateway_Paypal_PDT_Handler::__construct() WC Gateway Paypal PDT Handler:: construct code WC 9.3.1
public function __construct( $sandbox = false, $identity_token = '' ) { add_action( 'woocommerce_thankyou_paypal', array( $this, 'check_response_for_order' ) ); $this->identity_token = $identity_token; $this->sandbox = $sandbox; }