Wallet works for customers and drivers both with a little different function.
The wallet can be filled using card payments from the payment gateways using the Add Money in Wallet page on the App.
This money in the wallet can be used along with other payments by the customer to pay for the ride/delivery.
For drivers there is use other than the income gets added to the wallet in case of card payments.
For cash payments, since the driver is keeping all the cash, only the app owner's commission gets deducted from the driver's wallet.
The driver can request a withdrawal of all the earnings in the wallet from the admin and it gets deducted from the wallet and is shown to Admin for a fund transfer required. Admin can then transfer the money like employee payments done.