Either find a good divorce attorney or come clean with your wife, and see if your wife is willing to go to counseling if you are both willing to salvage the marriage.

Otherwise, you don't buy a blackmailer's silence, you only rent it.