=== ZingTime Booking ===
Contributors: zingtime, soheil1
Tags: booking, appointment, reservation, scheduling
Requires at least: 5.0
Tested up to: 7.0
Stable tag: 4.0.2
Requires PHP: 7.2
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

ZingTime is an advanced appointment booking system that seamlessly integrates your WordPress site with the ZingTime SaaS platform.

== Description ==

ZingTime Booking is the official plugin for the ZingTime online appointment system. This plugin allows businesses, clinics, and service providers to embed a modern, 5-step booking form directly into their WordPress websites.

With ZingTime Booking, your customers can choose a service, select a provider, pick an available date and time, and securely pay for their appointment—all without leaving your website.

Key Features:

5-Step Booking Form: A modern, minimalist, and user-friendly booking interface.

Real-time Sync: Instant synchronization of available times and bookings with the main ZingTime dashboard.

Online Payments: Built-in connection to secure online payment gateways (ZarinPal).

Discounts & Referrals: Support for applying discount codes and referral links during checkout.

PDF Invoicing: Customers can download a high-quality PDF invoice immediately after booking.

Admin Dashboard: View your daily schedule, total revenue, and upcoming appointments directly from the WordPress admin area.

Note: To use this plugin, you must have an active "Pro" subscription on ZingTime.ir and generate an API key from your dashboard.

== External services ==

This plugin requires an external service to function properly. It connects to the ZingTime API to obtain account settings, retrieve available services and time slots, and manage appointment scheduling functionalities.

It sends the customer's name, phone number, and selected booking details to the external API every time a new appointment is submitted.
This service is provided by "ZingTime": terms of use, privacy policy.

== Installation ==

Upload the plugin files to the /wp-content/plugins/zingtime-booking directory.

Activate the plugin through the 'Plugins' screen in WordPress.

Go to the new "زینگ‌تایم" menu in your WordPress admin sidebar.

Enter your ZingTime API Key (You can find this in your ZingTime main dashboard settings).

Add the shortcode [zingtime_booking] to any page or post where you want the booking form to appear.

== Frequently Asked Questions ==

= Does this plugin work without a ZingTime account? =
No. You need a valid "Pro" account on ZingTime.ir to get an API key and connect the plugin.

= Can I use it on multiple sites? =
Each ZingTime Pro account provides one API key intended for your primary business website.

= Are payments processed on my website? =
The plugin securely redirects the user to the ZingTime payment gateway (ZarinPal) and returns them to your site automatically once the payment is completed or failed.

== Changelog ==

= 4.0.1 =

Unified all class names, generic variables, IDs, and functions strictly to the required prefix.

Resolved all WordPress repository compliance issues.

Strengthened security with explicit input sanitization and output escaping.

= 4.0.0 =

Major redesign of the frontend booking interface with a modern stepper.

Added support for PDF invoice downloading (Fast and high-quality).

Improved admin dashboard with daily timeline and upcoming appointments.

Enhanced security with Nonces and strict sanitization.