Relay or Transistor as low DC switch
Relays are still used and with good reason. In your case:


The relay separates your logic circuit from your high-current and higher voltage pump circuit. 
Any faults on your pump circuit will not affect your logic circuit.
A faulty relay can often be a plug-in replacement.


A transistor is cheaper but requires that the common line must be shared between both circuits.