I've heard a lot about the Dubrovnik card and I searched for it online and found this website you could buy it from and then pick it up once you get there. http://www.dubrovnikcard.com
It looks like it's a better deal to buy it online ahead of time for a savings of 10%. The website looks legit, but just wondering if anyone else had bought it online?