Will returning item bought on a credit card affect your credit history?

No. The merchant may drop you from his preferred customer list if he notices a lot of returns, but the credit card company doesn't care.