WC_Gateway_Paypal_PDT_Handler::__construct( bool $sandbox = false, string $identity_token = '' )
Constructor.
Description Description
Parameters Parameters
- $sandbox
-
(Optional) Whether to use sandbox mode or not.
Default value: false
- $identity_token
-
(Optional) Identity token for PDT support.
Default value: ''
Source Source
File: includes/gateways/paypal/includes/class-wc-gateway-paypal-pdt-handler.php
public function __construct( $sandbox = false, $identity_token = '' ) { add_action( 'woocommerce_thankyou_paypal', array( $this, 'check_response' ) ); $this->identity_token = $identity_token; $this->sandbox = $sandbox; }