Default iPhone charger

Buy in store charger for my iphone 5s, but this charger works really bad, it's shows that it's not original apple charger, so don't want to charge my iphone, when it on, when I turn off it's charge normaly.
What I can do? Just buy new charger from apple store?