In short
- A €100 deposit is only held on the guest's card. Of the 192 stays with a deposit that ended between 28 August and 30 November 2026, it was permanently charged in four.
- A card hold is valid only for a short time, usually 7 days for an online payment, so a script renews it from the saved card before it expires.
- Renewal is the weak point of the whole process, because only 7 of 17 attempts went through and the most common reason for a decline was insufficient funds.
- The daily operation is run by an ordinary script without AI. Claude Code was used to write and fix the code, and a human decides whether to charge the deposit.
A security deposit for a rental can be handled as a hold on a card, where the guest does not lose any money and the operator is covered in case of damage. In my system the guest confirms it right after online check-in, a script watches it every 15 minutes and cancels it on the third day after departure. The data comes from the server as of 4 December 2026.
Why a hold instead of a real payment
I have had a refundable deposit in Manordesk, my own system for managing short-term rentals, since August 2026. The first version handled it as a real payment: the guest paid €100 and was supposed to get it back after the stay. On 28 August I changed it to a hold.
With a hold, the bank reserves the amount on the guest's card, but the money is not transferred. The operator then either cancels it or charges it. Stripe, which processes the payments, gives the example of hotels that authorize a payment before the guest arrives and capture it only at departure (Place a hold on a payment method).
There is also a difference in fees. According to Stripe, cancelling a payment that has not been completed yet is free, while the original processing fees are not returned when you refund a payment already received (Refund and cancel payments).
| Aspect | Real payment and refund | Hold on a card |
|---|---|---|
| What happens to the guest's money | it is transferred and returned after the stay | it stays in the account, it just cannot be spent |
| When everything is fine | a refund has to be sent | the hold is cancelled |
| Time limit | the deposit does not lapse while you keep it | it is valid for a few days |
| Main risk | a forgotten or late refund | the hold expires before you need it |
How the deposit works from check-in to departure
The guest first fills in their details and uploads an ID document and a selfie. This part is described in the case study on online check-in and guest identity verification. Right after that they see a screen with the deposit and a button that takes them to the Stripe payment page. The card number is therefore entered there, not in my system.
Until the hold goes through, the accommodation instructions stay hidden. The text on the screen says three things: the amount is only held, it is released within three days after departure if the apartment is left undamaged, and for longer stays the hold is renewed automatically for the same amount. The guest sees it in one of nine languages.
For some reservations, the accommodation tax is paid at the same point. The tax is really charged, which is why it cannot be combined with the deposit into one payment. After the tax is paid, the system tries to place the deposit hold on the same card so that the guest does not have to enter it twice. Since 8 November this worked in 33 cases and failed in 11. All eleven guests then placed the hold on a separate payment page.
What the administrator sees

The deposit status is in the reservation detail below the price, city tax and commission. With an active hold, the administrator has two actions. Releasing it takes two clicks within 6 seconds so that it is not triggered by mistake. Charging it asks for confirmation, and the reservation records who did it. A regular team member cannot trigger either of these actions, they are for the administrator only.
Why one hold is not enough for the whole stay
For online card payments, Stripe states that a hold is valid for 7 days. For a Visa card it is less if the merchant initiates the payment without the customer taking part: in that case it is 4 days and 18 hours. After it expires, the money is released to the guest and can no longer be charged (Authorization validity windows).
I need to keep the deposit from check-in until the third day after departure, since damage may only be discovered during cleaning. If a guest registers one day in advance and stays six nights, seven days are not enough.
For cards, the script therefore reads the exact expiry time from Stripe on every run. When less than 24 hours remain and the release day is later, it creates a new hold from the card that Stripe saved with the first one. It cancels the old one only when the new one is valid. If the renewal fails, an alert with the reason appears in the Manordesk Inbox so that someone can decide what to do next.
What the numbers showed after three months
Of the 192 stays, the deposit was released or the hold expired by itself in 186 cases, it was charged four times, and twice it was still a real payment from the first version, which the system refunded. Charging is therefore an exception, roughly two cases in a hundred.
The renewals look less flattering. Between 17 October and 2 December the script attempted 17 of them and only 7 went through. Seven times the payment was declined for insufficient funds, once the Link payment method was not allowed and twice the card could not be used for this payment.
One possible explanation lies in the procedure itself. The new hold is created before the old one is cancelled, so for a moment the guest needs another €100 available on the card. Whether that was the reason for the specific cards, I cannot tell from the data.
What matters is when the holds expired. In the nine cases where an expiry alert followed a failed renewal, it was once on the day of departure and eight times one or two days after it. In these cases the deposit was therefore valid during the nights of the stay and was missing only at the end of the inspection period. The practical consequence is simple: the apartment needs to be inspected on the day of departure, without relying on the third day.
What failed and which safeguards were added
| Date | What came up | Safeguard |
|---|---|---|
| 28. 8. 2026 | the deposit was a real payment that had to be refunded | changed to a hold, released by a script after departure |
| 4. 9. 2026 | a single accidental click could release the deposit | the first click prepares it, the second one within 6 seconds sends it |
| 11. 10. 2026 | during a longer stay the hold expired before the stay ended | the card is saved and the hold is renewed, release only on the 3rd day after departure |
| 11. 10. 2026 | in a test check-in 23 days in advance the instructions appeared without a deposit, because it was requested at most 6 days before arrival | the deposit is requested right after check-in and the instructions come only after it |
| 24. 10. 2026 | a guest confirmed the hold, closed the window and the system did not know about it, so they did not see the instructions | both the script and the guest page check the status directly in Stripe |
| 15. 11. 2026 | a deposit charged by the administrator was still shown as held in the system | recorded right after charging and regularly compared with Stripe |
Most of the errors have a common denominator. My own system remembered what was supposed to happen, while the truth about the money was in Stripe. Since the status is read from there regularly, neither a closed browser window nor an action taken directly in Stripe can leave the record wrong permanently.
The second lesson concerns testing. The seventh day of a hold or a window closed after payment will not show up in an ordinary test, so they have to be written into the brief as separate situations.
What Claude Code does and what stays with a human
I modified the deposit code with Claude Code, a tool that reads and changes project files based on instructions in plain language. Every change is stored in the change history, so I can look up when and why a rule changed.
In daily operation, AI does not decide about money. Comparing the departure date with today's date and cancelling a hold can be done by a script that always behaves the same way with the same data. A language model has nothing to add there. Messages are different: the routine described in the case study on AI replies to guests has a rule that before every mention of the deposit it must check the status of the specific reservation with a script.
Three decisions stay with a human:
- Charging. The script never charges the deposit by itself, the administrator has to do it.
- Waiving. The administrator can waive it for a specific reservation, which happened for 6 stays in the period covered.
- A failed renewal. The system reports it, but the next step with the specific guest is up to the administrator.
How another company can use this
The same procedure fits wherever a customer takes your property into their hands: tool rental, car rental or renting out premises. I would proceed like this:
- Count how many days you really need the deposit, from handover to inspection. If less than a week is enough for you, you may not have to deal with renewals at all.
- Check whether and how the portal you sell through allows a deposit, and where it must be stated.
- Tell the customer in advance the amount, the release day and that the hold may be renewed. When a card is saved for later payments, Stripe requires the customer's explicit consent and a record of it (Save a customer's payment method).
- Decide who is allowed to charge the deposit, and have the name and time recorded.
- Test everything in the test mode of the payment gateway, including a declined card, a closed window and an expired hold.
If you have your own system or website, you can start with this prompt:
I want to add a refundable deposit to our booking system
as a hold on a card through Stripe, not as a payment.
Rules:
- the deposit amount is a setting for each item, 0 = off
- the customer confirms it on the Stripe payment page, the card
number never gets into our system
- the hold must be valid until [number] days after the return
- read the expiry time from Stripe, do not estimate it
- less than 24 hours before expiry, create a new hold
from the saved card, cancel the old one only once it succeeds
- report a failed renewal to a human, including the reason
- never charge the deposit automatically, only with an admin
button with confirmation and a record of who did it and when
- regularly compare the status in our system with Stripe
First show me a draft of the deposit statuses and a list of
situations you will test: declined card, window closed after
payment, expired hold, double click, refund directly in Stripe.
Work only in test mode. Write code only after my approval.
If you are looking for help with a similar process, start with the AI process automation page. More general guides are in the AI in business section (in Slovak).
Frequently asked questions
Will the deposit be charged to the guest?
Not with a hold. The amount is reserved on the card and the guest can use it again once the hold is cancelled. It is charged only when the administrator explicitly does so because of a problem, which in my operation happened in 4 of 192 stays.
How long does a hold on a card last?
For online card payments, Stripe usually states 7 days. For a Visa card and a payment without the customer taking part, it is 4 days and 18 hours. The exact expiry time is available for each payment, so the system should read it from there instead of estimating it.
Why can a guest see two holds at once?
During a renewal, the new hold is created before the old one is cancelled, so that the deposit is never missing. The guest can therefore briefly see both, although neither has been charged. It helps when they know about a possible renewal in advance from the text at check-in.
What if the hold cannot be renewed?
The original hold stays valid until it expires and the administrator gets an alert with the reason. If it expires during the stay, the guest does not lose the accommodation instructions. If it expires before arrival, the system asks the guest for the deposit again.
Do you need artificial intelligence to manage deposits?
Not for the daily operation, a script with clear rules is enough. Claude Code helped with writing and fixing the code, where many edge cases have to be thought through. I would not entrust AI with the decision to charge the money.