If your business runs on appointments and no-shows cost you money, ask for the card at booking but don’t charge anything: save it with a Stripe SetupIntent and charge it only if the customer doesn’t turn up. It takes three pieces (a form, a function that saves the payment method and another that charges it), and none of them needs AI.
The problem
A wellness centre, a clinic or a hair salon holds a slot that nobody else will fill if the customer doesn’t come. The usual fixes hurt someone: charging everything up front scares off people who only wanted to book, and charging nothing leaves your calendar at the mercy of “just in case” bookings.
The middle ground is what hotels and car rental companies do: save the payment method at booking and charge later, only if needed. Stripe lists that exact case for this API: a car rental company “that collects payment method details before the customer rents the car and charges the card after the rental period ends”.
What a SetupIntent is
The Setup Intents API prepares a payment method for future charges. In Stripe’s words, “it’s similar to a payment, but no charge is created”: the card is checked with the bank and, if needed, the customer authenticates (3D Secure, the approval in their banking app), but nothing is charged.
Two terms worth getting straight:
- On-session: the charge happens while the customer is in your site or app and can authenticate.
- Off-session: you charge later, without the customer present. That is the no-show case.
The usage parameter tells Stripe which one you expect. It defaults to off_session, which is what you want here: the card is authenticated for charges without the customer present. In Europe that matters, because Strong Customer Authentication (SCA) requires two-factor checks on many online payments. If the card was saved properly, Stripe flags the later charge as a merchant-initiated transaction, which can be exempt from that check.
How to build it
1. Write the terms before the code. Charging off-session needs the customer’s permission. Stripe asks that your terms cover, at a minimum, that the customer allows you to initiate the charge, whether it’s one charge or several, and how the amount is set. Something like this next to the booking button: “We save your card. If you don’t show up or cancel at least 24 hours ahead, we’ll charge a one-off €20 fee.” The amount and the window are examples; set your own. And make the customer accept them explicitly.
2. Create the customer and the SetupIntent on your backend. With setup_credential_usage=unscheduled you declare that the future charge is a one-off outside any schedule, which is exactly what a no-show fee is:
curl https://api.stripe.com/v1/setup_intents \
-u "$STRIPE_SECRET_KEY:" \
-d "customer=cus_123" \
-d "automatic_payment_methods[enabled]=true" \
-d "payment_method_options[card][setup_credential_usage]=unscheduled"
3. Collect the card in the booking form with Stripe’s Payment Element and confirm the SetupIntent from the browser. When it succeeds, the SetupIntent has a payment_method: store that ID with the booking. That’s all you need; card details never touch your server.
4. Charge only if they don’t come. After the appointment, if the booking still isn’t marked as attended, create a PaymentIntent with off_session=true and confirm it in the same call:
curl https://api.stripe.com/v1/payment_intents \
-u "$STRIPE_SECRET_KEY:" \
-d amount=2000 \
-d currency=eur \
-d "customer=cus_123" \
-d "payment_method=pm_123" \
-d off_session=true \
-d "payment_method_options[card][stored_credential_usage]=unscheduled" \
-d confirm=true
amount is in cents: 2000 is €20.
5. Plan for the bank saying no. A properly saved card doesn’t guarantee the charge. If the bank requires authentication, Stripe returns authentication_required, and its docs are clear: “notify your customer to return to your application and complete the payment”. Have an email or a WhatsApp message ready with a payment link. The same goes for expired cards or insufficient funds.
How it fits a serverless backend
On AWS I would build it from small pieces:
- A Lambda behind API Gateway that creates the SetupIntent when the booking starts.
- When the booking is confirmed, store the
payment_methodID with the appointment in DynamoDB. - A scheduled task (for example, with EventBridge Scheduler) that calls another Lambda once the appointment time has passed. That Lambda checks whether the booking was marked as attended and, if not, charges the fee.
The charging Lambda has to be idempotent. If it runs twice, it must not charge two fees. Use the booking ID as the idempotency key on the Stripe call and store the charge status on the booking. I covered this in more detail in the post on payment webhooks without double charges.
My take
I would set this up before any AI-powered reminder. A reminder cuts down on forgetting; a saved card changes the behaviour of people who book with no real intention of coming. And it’s boring technology: hotels and rental companies have run it in production for years, and it’s well documented.
What I wouldn’t do is charge automatically without a check. Reception needs a way to mark “came” or “called to cancel” before the charge goes out, because an unfair fee costs you a customer and sometimes a dispute with the bank. I’d rather have a charge go out an hour late than go out wrong.
Two things I don’t know, and you should measure for your own business: how many bookings you lose by asking for a card, and how many no-shows you avoid. The balance depends on your customers, so try it for a month on a single service before rolling it out across the calendar.
Sources
- Stripe: The Setup Intents API
- Stripe: Save a customer’s payment method without making a payment
- Stripe: Save a card and charge it later
- Stripe: Error codes (authentication_required)
If you’re interested in how I automate service businesses on AWS serverless without a team, follow me on LinkedIn.
