payment, commission,percentage

what are the commissions paid by the hotel? what percentage is deducted? who pays who? how to be sure that the customer has paid and has not canceled his reservation before arriving at the reception. what are the terms of genius? which deducts from its price: booking.com or us?