You can book a hotel room for someone else using your credit card as long as you list that person as the guest on the reservation. The person whose hotel room you book with your credit card will need to provide a photo ID when checking in, along with a credit card that has their name on it for incidentals.