This is a great replacement part if you can’t get hold of the original.
The standard Micro USB pinouts for power are below.
Next to Ground is the ID pin followed by Data+, Data- then VCC.
Some (very few) devices require the ID pin to be connected, this can be bypassed with a 130k resistor connected to Ground. This is supposed to be used to tell the device if an OTG cable is connected, hence rarely used for charging.
(This socket will charge but not allow data if connected to a PC etc.)
Ideal for damaged solder pads and the legs can easily be cut to size.