Fix "Undefined variable: identity_token"

And make sure the identify token is passed to `WC_Gateway_Paypal_PDT_Handler`
This commit is contained in:
Brent Shepherd 2015-01-28 10:59:48 -08:00
parent 74e44b55c7
commit 3702b77c74
1 changed files with 1 additions and 1 deletions

View File

@ -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 );
}
}
}