Turn off the power to the pump.
Turn the pump lid counterclockwise to loosen it. Remove the lid from the pump housing.
Peel the O-ring away from its location inside the lid. Take care not to further damage the O-ring when removing it.
Place the O-ring on a flat work surface. Dry it thoroughly with a lint-free cloth.
Pick up the O-ring and thread it through your hands, pulling the rubber apart gently as you move around the ring until you find the damaged area. There may be more than one damaged area on your O-ring.
Dip the tip of a cotton swab in the PVC glue. Dab the PVC glue onto the damaged areas. Wipe away excess glue immediately with a damp paper towel. The glue should fill any holes or cracks in the O-ring without dripping over the sides.
Place the O-ring in a cool, dry place for several hours. This gives the glue time to harden.
Smear the O-ring with a water-based mechanical lubricant. Then re-install the O-ring in the pump cap.