According to SCOTUS, you can pay the president $10 million for a pardon and the president cannot be prosecuted for corruption because its a core power of his office.
OR
You can get a pardon THEN pay the president $10 million and you can't prosecute because its not corruption.