Regarding the wallet and the delivery fee, it needs to change the way it works!
For Multi-Store Apps, and delivery agents are all pre-delivery agents!
So I think I should change the way it works as follows:
Pre-charge the delivery staff's account first! (Example deposit 100$)
If the admin sets the delivery fee to 10%, after receiving an order with a delivery fee of 10$, the deliveryman's account will automatically deduct 10% of the delivery fee of 1$. (of 10$ delivery fee)
Then the delivery staff's account will then have $ 99 remaining.
That way, it will be very easy to manage the costs of the delivery staff