There are multiple definitions - click on the translation that matches your context.

comprar

verbo

full

buy

verb

Definitions of buy

to get something by paying money for it

Don't buy on impulse.

to pay money to someone in a position of influence or authority to get them to do something dishonest

He tried to buy a judge.