I'm thinking of deliberately making my friend pay a dollar more because I don't like him
Why would you do that to your friend? Does not seem very fair.
Because he whined so much to me about the other day.
Even if your friend whined, it is expected for you to treat them fairly. It is not nice to take advantage of your friend.
He needs to pay for his whining.
Overcharging someone just because you don't like what they did is wrong. You should talk to your friend instead of making him pay more.