=== Eventin Addon for SureCart ===
Contributors: arraytics
Tags: eventin, surecart, event tickets, event management, payment gateway
Requires at least: 6.2
Tested up to: 6.9
Stable tag: 1.0.0
Requires PHP: 7.4
License: GPLv2 or later
License URI: [https://www.gnu.org/licenses/gpl-2.0.html](https://www.gnu.org/licenses/gpl-2.0.html)

Seamlessly integrate Eventin event management with SureCart payment system to sell event tickets through SureCart checkout.

== Description ==

**Eventin SureCart Addon** is a powerful integration plugin that connects Eventin event management with SureCart's modern e-commerce platform. Sell your event tickets effortlessly using SureCart's payment system and checkout experience.

This plugin bridges the gap between event management and e-commerce, allowing you to leverage SureCart's robust payment infrastructure while managing your events with Eventin.

### 🌟 **Key Features**

- 🎫 **SureCart Product Sync** – Automatically sync event tickets with SureCart products.
- 💳 **SureCart Checkout Integration** – Customers can purchase event tickets directly through SureCart's secure checkout.
- 🔌 **Seamless Integration** – Works smoothly with both Eventin and SureCart plugins.
- ⚙️ **Easy Configuration** – Simple payment gateway activation from Eventin settings.
- 🛡️ **Secure Payments** – Leverage SureCart's secure payment processing infrastructure.

### 📋 **Requirements**

This plugin requires the following plugins to be installed and active:
- **Eventin** (Free version) – Event management plugin
- **SureCart** – E-commerce and payment platform

🚀 **Get started in minutes** – Install both required plugins, activate this addon, and configure SureCart payment from Eventin settings!

== Installation ==

### Automatic Installation
1. Go to **Plugins > Add New** in your WordPress dashboard.
2. Search for **Eventin SureCart Addon** and click **Install Now**.
3. Activate the plugin from the **Plugins** menu.

### Manual Installation
1. Upload the plugin files to the `/wp-content/plugins/eventin-addon-for-surecart` directory.
2. Activate the plugin through the **Plugins** menu in WordPress.

### Configuration
1. Ensure both **Eventin** and **SureCart** plugins are installed and active.
2. Go to **Eventin > Settings > Payment Configuration**.
3. Activate **SureCart** as a payment method.
4. Start selling event tickets through SureCart!

== External services ==

This plugin integrates with **SureCart**, a third-party e-commerce platform, to process event ticket payments. By using this plugin, you agree to SureCart's terms and policies.

### SureCart API Integration

This plugin communicates with the SureCart REST API (https://api.surecart.com/v1) to provide payment functionality. The following API endpoints are used:

**API Endpoints:**
- `POST https://api.surecart.com/v1/checkouts` - Creates checkout sessions for ticket purchases
- `GET https://api.surecart.com/v1/checkouts/{id}` - Retrieves checkout status and details
- `POST https://api.surecart.com/v1/products` - Dynamically creates products for event tickets
- `POST https://api.surecart.com/v1/prices` - Creates pricing information for ticket products
- `POST https://api.surecart.com/v1/refunds` - Processes refunds for cancelled orders
- `GET https://api.surecart.com/v1/charges/{id}` - Retrieves payment charge details

**Data Transmitted:**
When processing ticket orders, the following data is sent to SureCart:
- Customer email address
- Customer first and last name
- Ticket/product information (name, price, quantity)
- Order metadata (Eventin order ID)

**Webhooks:**
The plugin registers webhook endpoints to receive real-time updates from SureCart about payment status changes, including successful payments, refunds, and order cancellations.

**SureCart Service Links:**
- Service: https://surecart.com
- Terms of Service: https://surecart.com/terms/
- Privacy Policy: https://surecart.com/privacy/

**Your Responsibilities:**
- You must have a valid SureCart account and API credentials
- You are responsible for complying with SureCart's terms of service
- You must inform your customers that their payment data is processed by SureCart

== Frequently Asked Questions ==

= Do I need both Eventin and SureCart installed? =
Yes, this plugin requires both Eventin and SureCart to be installed and active to function properly.

= Do I need Eventin Pro? =
No, the free version of Eventin is sufficient for this integration to work.

= How do I enable SureCart payments? =
After installing and activating the plugin, go to Eventin settings and activate SureCart from the payment configuration section.

= Will this plugin work without SureCart? =
No, SureCart must be installed and active for this integration to work.

= Can customers purchase tickets through SureCart checkout? =
Yes, customers can purchase event tickets directly through SureCart's secure checkout system.

= What data is shared with SureCart? =
When a customer purchases a ticket, their name, email, and order details are sent to SureCart's API to process the payment. Please review SureCart's privacy policy for how they handle this data.

== Changelog ==

= 1.0.0 ( December 29, 2025 ) =
New: Added support for SureCart checkout payments
New: Synced SureCart order data with the Eventin dashboard for seamless order tracking

== Upgrade Notice ==

= 1.0.0 =
Initial release - Sell your event tickets through SureCart payment system!
