Your lawyer will provide you with a statement prior to the date for settlement setting out the amount required from you to complete the purchase. That will include any legal costs and expenses payable.

These are normally payable at the time that you pay the balance of your cash contribution to the purchase which is on, or just prior to, the day of settlement.