Joseph Bonaparte
Joseph Bonaparte, then king of Spain, compensated him with the position of his Minister of Finance.