You call the number on your credit card statement, they get your side of the story, they talk to the vendor, and eventually they issue a credit. With something like this, where there is no signature and no face-to-face, they will always reverse it, they would likely reverse both.
Just make sure you pay the balance in full, then get the credit later, if you short pay before they issue the credit, it can get messy.