There are a few ways to do it, but a fairly common approach would be:

You’d need wi-fi or at least a cell phone signal at the pump.
A microprocessor near the pump to handle communications.
Power...