You should use $this->context->customer->id instead.