Tyre pump - battery operation not working (Oxford-Freegle CGA OX4)

The pump works when plugged in to a 12V car socket, but the battery does not charge so it does not work when not plugged in. The battery charges via a micro USB socket that has broken off - as per picture. Perhap it could be soldered back on? The end cap is in the box to cover up the inside.