This document explains how to configure and use the WooCommerce Payment Gateway within the KiviCare Clinic Management System. This integration allows KiviCare to leverage WooCommerce’s checkout and payment ecosystem for appointment payments.
Overview
The WooCommerce integration enables clinics to accept payments for KiviCare appointments using any payment gateway supported by WooCommerce.
When a patient books an appointment:
KiviCare dynamically creates a temporary WooCommerce product
The product is added to the cart
The patient is redirected to the WooCommerce checkout flow to complete payment
This approach provides maximum flexibility by supporting all WooCommerce-compatible payment gateways.
Prerequisites
Before enabling WooCommerce payments in KiviCare, ensure the following requirements are met:
WooCommerce Plugin
WooCommerce must be installed and activated on your WordPress site.
WooCommerce Payment Gateways
At least one payment method must be configured and enabled in WooCommerce (e.g., Stripe, PayPal, Razorpay, BACS, Cash on Delivery).
WooCommerce Configuration in KiviCare
Step 1: Navigate to Payment Settings
Log in to the WordPress Admin Dashboard.
Go to KiviCare > Settings > Payment Settings.
Step 2: Enable WooCommerce Gateway
Locate WooCommerce in the list of available payment gateways.
Toggle the Enable switch (Green).
Note: There are no additional configuration fields inside KiviCare for WooCommerce. All payment-related settings are managed directly from WooCommerce.
How the WooCommerce Payment Flow Works
Appointment Booking
A patient selects a service and proceeds to payment.
KiviCare automatically creates a hidden Simple Product in WooCommerce:
Product price = Appointment cost
Product type = Virtual
Catalog visibility = Hidden
Applicable KiviCare taxes are added as Fees in the WooCommerce cart.
Checkout Process
The patient is redirected to the WooCommerce Checkout page.
The patient completes payment using any enabled WooCommerce payment method.
Order & Appointment Status Mapping
The appointment status in KiviCare is automatically updated based on the WooCommerce order status:
WooCommerce Order Status
KiviCare Appointment Status
Status ID
Completed
Booked
1
Processing
Pending
2
Failed / Cancelled
Cancelled
0
Important: Appointments are Booked only when the WooCommerce order status becomes Completed.
Auto-Cancellation Mechanism
To avoid appointment slot blocking due to unpaid bookings, KiviCare includes an automatic cancellation feature:
If a patient is redirected to WooCommerce checkout but does not complete payment, the appointment is automatically cancelled.
Troubleshooting
Common Issues and Solutions
WooCommerce Not Active Error
Ensure the WooCommerce plugin is installed and activated.
Redirect Loop or 404 on Checkout
Verify WooCommerce pages:
Go to WooCommerce > Status > Tools
Click Create default WooCommerce pages
Confirm that a valid Checkout page is assigned.
Appointment Not Confirmed
Check the WooCommerce order status.
Appointments are confirmed only when the order status is Completed.
Some gateways keep orders in Processing status:
Manually complete the order, or
Use a plugin to auto-complete virtual orders.
Best Practices
Use Virtual + Auto-Complete Order settings for smoother confirmation.
Test the full booking flow after enabling a new WooCommerce payment gateway.
Regularly monitor WooCommerce orders linked to appointments.