https://www.chess.com/learn-how-to-play-chess#special-rules-chess
If a pawn moves in a way that you can make this capture, simply drag or place the pawn(s) that can do the capture onto the square the enemy pawn moved through.