En passant enabling????
You don't have to enable it. The move can be the made anytime the condition appears. You just move the pawn to the square it would go to if you were playing on a physical board.
https://support.chess.com/article/683-what-is-en-passant