Register new user even if vat id wrong

Hello.

I’m working on a fully functional site which requires a valid vat id to register an account. It is checked against http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl

I need to allow the registration to be completed if the above service is not responding but add a warning to the confirmation email.

My condition is checked in _checkOnline() and more specifically by the _isServiceAvailable() method in
http://docu.oxid-esales.com/CE/sourcecodedocumentation/4.9.1/oxonlinevatidcheck_8php_source.html#l00165

I’m gonna overload the _checkOnline() method.
Line 238 will be return true, but my question is:

How can I add some parameter before the return by which I can later determine if the warning needs to be added to the email?

Thanks, Greg.

you can store anything you want in php session

Thank you, I tried to access the session before with different methods but now oxRegistry::getSession finally worked.