The image shows the one of the connections of the capacitor is still good, so, we will only have to work on just one soldering pad
Steps
Note: Make sure that you have a small enough soldering tip that can get to the soldering pad
1. Apply generous solder to the pad #1
2. Should look something similar to this (notice how it forms a bead)
3. Flip (flap?) over the capacitor to its original position
4. You should notice a little silver tab sticking out from the capacitor. Make sure that it aligns with the soldering pad #1
5. Apply the constant heat while pushing slightly down on the capacitor until you feel that it starts to fuse (3-5secs). (You will feel the capacitor sinks toward the pad)
6. If all goes well, it should The capacitor should look like this