Update AuthorizeNetHandler.php

Removed some common code which is now a part of the public interface for payment gateways.
Added a namespace.
Added a function which defines required parameters.
Implemented an interface.