=== Bohudur Payments For Tutor LMS ===
Contributors: bohudur
Donate link: https://bohudur.one
Tags: tutor lms, payment gateway, bangladesh, bohudur, elearning
Requires at least: 6.2
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 1.0.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Accept secure payments for your Tutor LMS courses using Bohudur Payment Gateway.

== Description ==

**Bohudur Payments for Tutor LMS** is a simple and secure payment gateway plugin that allows you to accept course payments via **Bohudur Payment Gateway** directly in Tutor LMS.

This plugin is designed for educators, instructors, and eLearning platforms—especially in **Bangladesh**—who want a seamless and reliable payment experience for selling online courses.

### Key Features

* **Secure hosted checkout** – Students are redirected to Bohudur’s secure payment page.
* **Automatic course enrollment** – Students get instant access after successful payment.
* **Tutor LMS native integration** – Works smoothly with Tutor LMS paid courses.
* **Lightweight & fast** – No unnecessary features or bloat.
* **Free to use** – No setup fees or hidden costs.

Perfect for instructors who want to monetize their courses without complex payment setups.

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/bohudur-tutor/`  
   **OR** install directly from the WordPress Plugins screen.
2. Activate the plugin through the **Plugins** menu in WordPress.
3. Navigate to **Tutor LMS → Settings → Payments → Bohudur**.
4. Enable the gateway and enter your **Bohudur API Key**.
5. Save changes and test the checkout process.

== Frequently Asked Questions ==

= Does this plugin require Tutor LMS? =
Yes. Tutor LMS must be installed and activated for this plugin to work.

= Does Bohudur work with free courses? =
No. Bohudur only processes payments for **paid courses**. Free courses are not affected.

= Is a sandbox or test mode available? =
No. Bohudur currently operates using a live API key only. However, the service is free to use.

= Is this plugin officially affiliated with Tutor LMS? =
No. This is a third-party integration built specifically to work with Tutor LMS.

== External Services ==

This plugin connects to the **Bohudur Payment Gateway** to process payments.

When a student initiates a payment, the following data is securely transmitted to the Bohudur API  
(`https://request.bohudur.one`):

* Student full name  
* Student email address  
* Payment amount and currency  
* Redirect URL (success)  
* Cancel URL (failed or canceled payment)

This information is required to create and verify payment transactions.

The Bohudur service responds with a **payment key and transaction status**, which are used to:
* Confirm payment
* Automatically enroll the student in the purchased course

No additional personal data is collected or stored by this plugin beyond what is required for payment processing.

### Bohudur Policies

* **Terms of Service:** https://bohudur.one/terms-conditions/
* **Privacy Policy:** https://bohudur.one/privacy-policy/

== Changelog ==

= 1.0.1 =
* Improved sanitization and escaping
* Enhanced security checks
* WordPress.org coding standards compliance

= 1.0.0 =
* Initial release
* Tutor LMS payment integration
* Secure webhook verification
* Automatic course enrollment after payment

== Upgrade Notice ==

= 1.0.1 =
Recommended update for improved security and WordPress.org compliance.