You only fight the merchant if you don't give the item back, fail a persuasion check, or don't bribe the NPC.