Fix "Undefined variable: identity_token"
And make sure the identify token is passed to `WC_Gateway_Paypal_PDT_Handler`
This commit is contained in:
parent
74e44b55c7
commit
3702b77c74
|
@ -53,7 +53,7 @@ class WC_Gateway_Paypal extends WC_Payment_Gateway {
|
|||
|
||||
if ( $this->identity_token ) {
|
||||
include_once( 'includes/class-wc-gateway-paypal-pdt-handler.php' );
|
||||
$pdt_handler = new WC_Gateway_Paypal_PDT_Handler( $this->testmode, $identity_token );
|
||||
$pdt_handler = new WC_Gateway_Paypal_PDT_Handler( $this->testmode, $this->identity_token );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue