All day 12+ hr layover in Taipei

Hi everyone! I have a 6 am - 6 pm layover on Sunday. Hope it won't rain too much! I plan to get into town and do a couple of walking tours and also just explore. What's the best and fastest way to get into town? Can I buy a subway pass with a credit card? Any other tips and recommendations? Thanks!