What Credit Cards Does Costco Accept? A Detailed Overview

I’ve been shopping at Costco recently, but I’m a bit confused about which credit cards they actually accept. Does anyone have a clear list of what types of cards work at Costco, especially for in-store versus online purchases? I’ve heard they only accept Visa in-store, but is that still the case? Any insights would be appreciated!