Typically a Buyer's Agent in our area will not get paid by the Buyer but will indeed be paid through their Broker. The Company, or Broker, that is listing the property For Sale will pay the Buyer Agent's Broker who will in turn pay the agent for assisting you in purchasing a home. There are always situations where that may differ such as if you were to pursue a home that is For Sale By Owner and the wanted your agents assistance but the Seller is unwilling to pay for your agents involvement. IN that case your agent may in fact ask you to pay for the help and expertise.
A couple things to rememeber: 1) if your agent is being paid by more than one party ina transaction they typically need to disclose that to you. 2) all agreements, especially those involving fees and compensation, need to be in writing and clearly understood by all parties involved.
In my 19 years it's been a very, very rare occasion when a Buyer has had to actively participate in my compensation in order to help them purchase a home. Typically the Seller, or Seller's Broker, has assumed that resposibility.
RE/MAX Realty Group