=== Namecheap EasyWP Paid Video ===
Contributors: life8882
Tags: paid video, paypal, woocommerce, video paywall, namecheap, easywp, video monetization
Requires at least: 5.8
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
Author URI: https://www.life8882.com
Plugin URI: https://www.life8882.com/namecheap-easywp-paid-video/

A professional paid video plugin tailored for Namecheap EasyWP, enabling seamless PayPal/credit card payments, WooCommerce integration, and video paywall functionality to monetize your video content.

== Description ==
Namecheap EasyWP Paid Video is a powerful monetization tool designed exclusively for Namecheap EasyWP users. It allows you to lock video content behind a paywall, offer free previews, and let users unlock full videos via secure PayPal or credit card payments. With deep WooCommerce integration and comprehensive order management, it’s the perfect solution for creators, educators, and businesses looking to monetize video content on their EasyWP sites.

### Key Features
- Block Editor Integration: Add paid video blocks directly to posts/pages with a few clicks.
- Flexible Payment Options: Support for PayPal (sandbox + production mode) and credit card payments.
- Free Preview & Paywall: Let users preview a portion of the video before paying to unlock the full version.
- WooCommerce Sync: Automatically adds a "My Videos" tab to user accounts for order tracking.
- Complete Order Management: Backend dashboard for viewing orders, sales stats, and user access logs.
- Debug & Logging: Detailed error logs for troubleshooting payment and video playback issues.
- Customizable Pricing: Set unique prices for each paid video block (no universal rate limits).

### Secure & Reliable
- Encrypted payment flows (compliant with PayPal’s security standards).
- Real-time order status sync between PayPal, WooCommerce, and your plugin.
- Configurable fee structure (rate coefficient + fixed fees) for flexible monetization.

== Installation ==
1. **Option 1: Upload via WordPress Dashboard**
   - Log in to your WordPress admin panel.
   - Navigate to "Plugins" → "Add New" → "Upload Plugin".
   - Select the `namecheap-easywp-paid-video.zip` file, click "Install Now", and activate the plugin after installation.

2. **Option 2: FTP Upload**
   - Unzip the `namecheap-easywp-paid-video` folder from the downloaded package.
   - Upload the unzipped folder to your WordPress site’s `/wp-content/plugins/` directory via FTP.
   - Go to "Plugins" in your WordPress admin, find "Namecheap EasyWP Paid Video", and click "Activate".

3. **Configuration**
   - After activation, navigate to "Settings" → "Paid Video" in your WordPress admin.
   - Enter your PayPal Client ID and Secret (obtained from the PayPal Developer Portal: https://developer.paypal.com/).
   - Customize payment fees, preview duration, and logging settings (optional).

4. **Add Paid Videos**
   - Create/edit a post/page, then add the "Paid Video" block via the Block Editor.
   - Upload your video file (or paste a video URL) and set a price for the full access.
   - Publish the post/page—users will see the free preview and payment button.

== Frequently Asked Questions ==
= Do I need a PayPal account to use this plugin? =
Yes. You’ll need a valid PayPal Business or Premier account. Go to the PayPal Developer Portal (https://developer.paypal.com/) to generate a Client ID and Secret for integration. Sandbox mode is supported for testing payments before going live.

= Is WooCommerce required? =
No, the plugin works independently for core payment and video access features. However, WooCommerce integration is optional—if installed, it adds a "My Videos" tab to user accounts for easier order tracking.

= What video formats are supported? =
All mainstream video formats are supported, including MP4, WebM, and MOV. MP4 is recommended for maximum compatibility across browsers and devices.

= Can I offer refunds to users? =
Refunds must be processed manually via your PayPal dashboard. Once a refund is issued, the plugin will automatically revoke the user’s access to the paid video within 15 minutes (or immediately after the user refreshes the page).

= Does the plugin support multiple languages? =
Currently, the plugin interface is in English. It includes a text domain (`namecheap-easywp-paid-video`) and is translation-ready—you can add PO/MO files to the `/languages` directory for additional languages.

== Changelog ==
= 1.0.0 =
- Initial release.
- Core paid video functionality (preview + paywall).
- PayPal (sandbox + production) and credit card payment integration.
- WooCommerce sync for user order tracking.
- Backend order management and sales statistics.
- Error logging system for debugging.

== Upgrade Notice ==
= 1.0.0 =
Initial release of Namecheap EasyWP Paid Video. We recommend testing the plugin on a staging site before installing it on your live website. For support, visit https://www.life8882.com/support/.