=== Bohudur for WooCommerce ===
Contributors: bohudur
Donate link: https://bohudur.one
Tags: woocommerce, payment, gateway, bangladesh, bohudur
Requires at least: 5.4
Tested up to: 6.8
Requires PHP: 7.0
Stable tag: 1.0.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Accept secure payments in your WooCommerce store using Bohudur Payment Gateway.

== Description ==

Bohudur is a modern payment gateway solution that allows you to accept payments securely in your WooCommerce-powered store.  
This plugin integrates Bohudur directly with WooCommerce checkout, offering:

* **Secure hosted checkout** – customers are redirected to Bohudur for payment.
* **Webhook support** – automatically verify and update order statuses.
* **Digital/virtual order auto-completion** – skip unnecessary "processing".
* **Currency conversion** – supports exchange rates for USD and other currencies.
* **Customizable settings** – webhook URL, redirect & cancel URLs, metadata.

Perfect for merchants in Bangladesh and beyond, looking for a smooth checkout experience.

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/bohudur-gateway/` or install directly via the WordPress Plugins screen.
2. Activate the plugin through the **Plugins** menu in WordPress.
3. Go to **WooCommerce > Settings > Payments > Bohudur**.
4. Enable the gateway and configure your API Key, Webhook (optional), and other settings.
5. Save changes and test your checkout.

== Frequently Asked Questions ==

= Does this require WooCommerce? =
Yes. WooCommerce must be installed and active.

= Does this work for both physical and digital products? =
Yes. Digital (virtual) orders can be auto-completed, while physical orders remain “processing” until you fulfill them.

= Is a Webhook required? =
Webhook is optional. You can still manually verify orders if you prefer.

= Can I test this plugin before going live? =
No. Bohudur is free to use, and requires only a live API key for operation.

== External Services ==

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

When a customer checks out using Bohudur, the following data is securely sent to the Bohudur API (https://request.bohudur.one):

* Customer full name  
* Customer email  
* Payment amount and currency  
* Redirect and cancel URLs (for returning to your store after payment)  
* Metadata (if configured in the plugin settings)  

This data is required to create and process the payment request.  
The service responds with a payment key and transaction status, which are used to update the WooCommerce order.  

Bohudur does not collect any other data beyond what is required for payment processing.

You can review Bohudur’s terms of service and privacy policy here:  
* Terms of Service: https://bohudur.one/terms-conditions/  
* Privacy Policy: https://bohudur.one/privacy-policy/

== Screenshots ==

1. After activating the **Bohudur Plugin**, navigate to **WooCommerce → Settings**.  
2. Open the **Payments** tab, enable **Bohudur**, and click **Manage**.  
3. Enter your **API Key** and save changes. (Additional configuration options are also available.)  

== Changelog ==

= 1.0.2 =
* Initial public release.
* Added secure webhook verification.
* Added auto-completion for digital orders.
* Improved sanitization and escaping for security.
* WordPress.org coding standards compliance.

== Upgrade Notice ==

= 1.0.2 =
First stable release. Please update to this version for improved security and WordPress.org compatibility.