When you check in, the front desk will collect the deposit. You can pay in cash or use a credit card. If you use a credit card as a deposit, the front desk will only pre-authorize, that is, freeze some funds in your credit card as a deposit, but the money has not been taken away. When you check out, the front desk will extract your actual consumption amount from the amount frozen in your pre-authorization, and the remaining amount will be automatically unfrozen in your credit card.