=== Leet Affiliate for Freemius ===
Contributors: leetive
Tags: affiliate program, affiliate, registration, onboarding, affiliate platform
Requires at least: 5.0
Tested up to: 6.8
Stable tag: 1.0.0
Requires PHP: 7.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Automate your Freemius affiliate onboarding with a modern registration form and API integration. Collect, validate, and sync affiliate data directly from WordPress.

== Description ==

**Leet Affiliate for Freemius** helps WordPress developers and product owners automate their Freemius affiliate registration process.  
This plugin provides a beautiful, modern, and responsive affiliate registration form that integrates directly with the **Freemius API**, enabling you to collect affiliate leads, sync them automatically, and manage affiliate onboarding seamlessly.

Whether you’re building with Freemius or managing your own affiliate program, Leet Affiliate for Freemius saves time, reduces errors, and ensures a professional experience for your partners.

= ✨ Key Features =

== 🎨 Modern UI Design ==

-   Clean, minimal interface built with Tailwind CSS
-   Fully responsive across all devices
-   Gradient headers & smooth animations
-   Built-in form validation with friendly UX feedback

== ⚡ Freemius API Integration ==

-   Seamless connection with your Freemius account
-   Secure API key handling and validation
-   Real-time form submission & data sync via AJAX
-   Automatic affiliate “pending” creation in Freemius dashboard

== 🧩 Easy Setup & Shortcode ==

-   Quick setup using shortcode `[leet_freemius_affiliate_form]`
-   Plug-and-play integration — no coding required
-   Works with Elementor, Gutenberg, and all modern themes

== 🛠️ Admin Control Panel ==

-   Configure everything from **Settings → Leet Affiliate for Freemius**
-   Manage Developer ID, Public & Secret Keys, Product ID, and Terms ID
-   Built-in help guide inside the admin
-   Secure API key management

== 🔒 Built-in Security ==

-   WordPress nonce verification for all AJAX requests
-   Data sanitization and escaping with WP functions
-   SQL injection and XSS protection
-   Safe key storage via WordPress options API

== Installation ==

= Step 1: Upload the Plugin =

1. Download the plugin ZIP
2. Upload to `/wp-content/plugins/leet-affiliate-for-freemius/`
3. Activate via **Plugins → Installed Plugins**

= Step 2: Install Freemius SDK =
The plugin requires the Freemius PHP SDK.  
Install dependencies via Composer:  
`composer install`

= Step 3: Get Your Freemius Credentials =

1. Log in to [Freemius Dashboard](https://dashboard.freemius.com/)
2. Go to **My Profile → API Keys**
3. Copy your:
    - Developer ID
    - Public Key (`pk_…`)
    - Secret Key (`sk_…`)

= Step 4: Find Product & Terms Info =

1. Go to **Products** in Freemius Dashboard
2. Select your plugin/product
3. Copy the **Product ID**
4. Under **Affiliation → Terms**, copy the **Affiliate Program Terms ID**

= Step 5: Configure Plugin Settings =

1. In WordPress, go to **Settings → Leet Affiliate for Freemius**
2. Add your credentials
3. Paste your Terms & Conditions URL
4. Click **Save Settings**

= Step 6: Add the Form to Your Site =

1. Create a new page (e.g., "Become an Affiliate")
2. Add the shortcode: `[leet_freemius_affiliate_form]`
3. Publish - your form is live! 🎉

== Changelog ==
= 1.0.0 - 01 Nov, 2025 =

-   Pookie release 😍
-   Finally shipped before the caffeine wore off 😅
