The baptism or the power of the Holy Spirit that is in us can not be bought, he Espiriyu Santo grants it as he wants and to the extent that he wishes it.
Simon the Magician wanted to buy it with money and Pedro strongly rebuked him, so that he would repent.