Buying shares in an IPO is a complicated task. This is the common procedure for buying shares in an IPO:
Choose the right IPO
You must have a Demat account/trading account and PAN card with a broker that offers IPO access
Arrangement of Funds
Bidding of Shares
Get an allotment of shares