Following the acquisition of PS Bank by the Metrobank Group, he joined Metrobank as General Counsel and also worked as a member of its Board of Directors, Senior Vice President, Corporate Governance Officer, and Assistant Corporate Secretary.

Atty. Viray also worked as Chairman and Secretary of the Technical Committees of both the Savings Bankers Association of the Philippines and the Chamber of Thrift Banks. He was elected President of the Bank Administration Institute, now Bankers Institute of the Philippines (BAIPhil) and was also the first President of the Association of Bank Lawyers. He has worked closely on numerous legal issues for the Bankers Association of the Philippines (BAP).

Thanks to his extensive experience in legal banking, he penned four books that have become valuable texts for practitioners in the field: Handbook on Bank Deposits, Casebook on Banking, Checks, and Legal Essays on Banking.