The distinction comes down to whether you make what you sell. Merchant guilds bought goods and resold them — their business was trade and distribution. Craft guilds sold things they produced themselves, and membership was tied to practising a particular trade.
That difference shaped their politics too. Craft guilds controlled who could work in a trade and how apprenticeships ran, while merchant guilds were more concerned with market access, tariffs, and the terms of exchange.