This is an example implementation (class based example) of how u could implement multiple payment gateways.