Take the dog to a vet in the morning.
Also, never ever buy a puppy from someone that would sell to just anyone. Google Back Yard Breeders, Puppy Mills, etc. This very likely has something to do with the horrendous breeding practices of the person/people you bought the dog from.