Without an existing shareholding, the payment is not automatically shareholder compensation.
First map the transfer, previous gifts, will, forced-heirship position and any proposed waiver. Record which assets each child receives and who is intended to owe the balancing payment. A suitable payment structure can only be designed after this step.