How to accept card payments for appointments in WordPress
WordPress does not include appointment slots or card checkout, so you need a booking plugin connected to a payment gateway. Use a compatible WooCommerce booking setup or an appointment plugin with gateway support, then test payment failures and booking status changes before going live.
- 01Choose your booking route
- 02Set up services and availability
- 03Connect the card gateway
- 04Test successful and failed payments
- 05Prevent unpaid slots staying booked
- 06Use the fast Bookly route
What you need
- A WordPress site with HTTPS enabled
- An appointment or booking plugin
- A merchant account with a supported card gateway
- Admin access to WordPress and the payment account
Choose your booking route
WordPress itself does not provide appointment availability, slot locking or payment collection. You need a booking system that can calculate the appointment price and pass the transaction result back to the booking record.
If you already use WooCommerce, use a booking extension that creates bookable products and works with your chosen payment gateway. WooCommerce Bookings supports appointment-based services and works with any payment gateway, but it requires a working WordPress cron system for abandoned-cart booking cleanup.
Set up services and availability
Add each service, its duration and price, then configure staff, working hours, holidays and the appointment form. Decide whether the slot is confirmed immediately or stays pending until payment or staff approval.
Do not rely on a date field in a contact form alone. It will not reliably prevent two customers choosing the same time unless the booking system checks availability when the form is submitted.
Connect the card gateway
Install or enable the gateway integration supported by your booking system, then enter the credentials supplied by your payment processor. For Authorize.Net, the integration normally needs the API Login ID and Transaction Key; keep these in the gateway settings, not in the page content or theme files.
Enable the card option on the booking form and choose whether customers pay the full amount or a deposit. Check the currency, tax calculation, receipt wording and return or confirmation page before publishing the form.
Test successful and failed payments
Use the gateway's sandbox or test mode first. Create a booking, complete a successful test transaction, then repeat the process with a declined or abandoned payment. Confirm that the appointment, payment amount and payment status are recorded correctly.
For Authorize.Net integrations, use sandbox credentials with sandbox mode enabled. A common mistake is mixing live credentials with sandbox mode, or leaving sandbox mode enabled after launch.
Prevent unpaid slots staying booked
Set a time limit for incomplete payments if your booking system provides one. In Bookly, the payment gateway time interval determines when an unfinished payment and its appointment are rejected, but the automatic cleanup requires a scheduled cron job.
Also decide whether a successful payment should automatically approve the appointment or leave it pending for review. Make the customer emails match that choice. Otherwise, a customer may pay successfully but receive a message saying the appointment is only a request.
Use the fast Bookly route
If you already use Bookly Pro and Authorize.Net, install and activate the Bookly Authorize.Net Add-on. In Bookly > Settings > Payments, enable Authorize.Net, enter the API Login ID and Transaction Key, and turn on Sandbox mode while testing. The add-on places card checkout in the Bookly booking form and records the payment against the appointment.
Bookly Pro, the free Bookly plugin and an Authorize.Net merchant account are required. This is the quicker route when Bookly already manages your services, staff and availability; it avoids building the payment callback and appointment-status connection yourself.
Let Bookly Authorize.Net Add-on do it
Adds Authorize.Net card checkout to Bookly appointments; choose it when you already use Authorize.Net for payment processing.
Sources
- woocommerce.com /document/introduction-to-woocommerce-bookings/?utm_source=o…
- authorize.net /content/dam/documents/en/guides/anet-getting-started-guide.…
- booking-wp-plugin.com /docs/add-ons-for-bookly/payment-gateways/authorize-net-paym…
- booking-wp-plugin.com /docs/configuring-bookly/manage-appointments-staff/pending-a…
Questions
- Can WordPress accept appointment payments without a plugin?
- Not as a complete booking workflow. WordPress core does not manage appointment availability, prevent overlapping bookings or connect payment confirmations to appointment records. You could build those parts with custom code and a payment API, but that leaves you responsible for security, failed payments, refunds, callbacks and slot locking. A booking plugin with a supported gateway is the practical route.
- Should an appointment be confirmed before payment?
- Usually, no, if payment is required to reserve the slot. Set the appointment to pending or unpaid until the gateway confirms the transaction, or configure successful payments to approve it automatically. If you allow staff approval after payment, tell customers clearly that payment does not yet mean the appointment is finally approved.
- Why is a paid appointment still showing as pending?
- A pending payment usually means the gateway confirmation did not reach the booking system, the wrong credentials or mode were used, or the customer abandoned the checkout. Check the gateway dashboard first, then check the booking plugin's payment record and logs. Do not manually approve the appointment until you have confirmed whether the card was charged.
- What happens when someone closes the payment window?
- The appointment can remain unpaid while still holding the time slot unless your system expires incomplete payments. Configure a payment time interval and make sure cron runs on the site; otherwise abandoned bookings may block genuine customers. Bookly specifically documents this dependency for automatically rejecting incomplete payments.