Complete missions for the money, then spend it where the gear is sold: the blacksmith for weapons, the tailor for armour and dyes, and the armory for upgrades and additional capacity.
Doctors and artists also sell items worth picking up, so it pays to visit each shop type in a town rather than only one.