=== Trak QR Tickets for CF7 ===
Contributors: Trak Codes
Tags: contact form 7, cf7, qr code, tickets, events, trak
Requires at least: 5.5
Tested up to: 6.5
Stable tag: 1.1.0
Requires PHP: 7.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Integrates Contact Form 7 with the Trak QR platform to automatically generate and email PDF tickets upon form submission.

== Description ==

This plugin provides a seamless bridge between your WordPress Contact Form 7 forms and the [Trak QR ticket platform](https://qr-code-ticket.com). When a user submits a form, the plugin:

1.  **Sends submission data** to your Trak project.
2.  **Generates a unique ticket ID** (UUID) for the entry.
3.  **Fetches a PDF ticket** with a QR code from Trak.
4.  **Attaches the PDF ticket** to the confirmation email sent to the user.
5.  Optionally integrates with the "Contact Form 7 to Google Sheets" plugin to add the ticket UUID to your sheet.
6.  Provides an **error log** with a one-click retry mechanism for failed submissions.

This is perfect for event registrations, appointment bookings, or any scenario where you need to issue a unique, scannable ticket from a simple form.

== Installation ==

1.  Upload the `trak-qr-tickets-for-cf7` folder to the `/wp-content/plugins/` directory.
2.  Activate the plugin through the 'Plugins' menu in WordPress.
3.  Go to **Contact > Contact Forms** and edit the form you want to integrate.
4.  Click on the **"Trak QR Tickets"** tab.
5.  Enter your **Check-in Access URL** from the Trak platform.
6.  Configure the email attachment options.
7.  Save the form. That's it!

== Configuration ==

To find your **Check-in Access URL**:
1.  Open your Google Sheet connected to Trak.
2.  Go to **Extensions > Trak > Check-in App**.
3.  Copy the URL provided in the "Web-app link" section.
4.  Paste this URL into the plugin settings for your form.

== Changelog ==

= 1.1.0 =
* **Improved**: More robust plugin initialization (fixed potential fatal errors)
* **Improved**: Cryptographically secure UUID generation
* **Improved**: Better error handling for PDF file operations
* **Improved**: Admin panel with better styling and visual feedback
* **Improved**: Real-time URL validation with loading spinner and success indicator
* **Improved**: Step-by-step instructions for finding Check-in URL
* **Improved**: Logs page with status/form filters and summary stats
* **Improved**: Expandable submission data viewer in logs
* **Improved**: Retry count tracking and display
* **Added**: Plugin action links (Configure, Logs) on plugins page
* **Added**: Welcome notice on activation
* **Added**: Proper activation/deactivation hooks
* **Added**: Clean uninstall script
* **Fixed**: Text domain compliance for internationalization

= 1.0.0 =
* Initial release.