When a customer pay for booking will it automatically assign the customer to a driver?

No, you have to assign it from admin.