When you place the Buy-Order Order with the Broker, The broker takes into account the average price in the market request you to pay the total amount of your order immediately he will. In return, they will give you a receipt.
Or you can deposit the money in a bank account you can get a receipt.
(Stocks are delivered the day after purchase. you can get it.)