=== Custom Payment Manager for WooCommerce ===
Contributors: aisimpleplugin
Tags: woocommerce, payment, custom-payment, payment-gateway, b2b
Requires at least: 5.8
Tested up to: 6.9
Requires PHP: 7.2
WC tested up to: 10.7
Stable tag: 1.0.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Easily create and manage custom payment methods in WooCommerce. Add your own offline payment options like Interac, bank transfer, or custom terms.

== Description ==

**Custom Payment Manager for WooCommerce** lets you easily create and manage your own custom payment methods without writing any code.

You can add up to **three different payment methods**, each with:
- A custom name and description
- A configurable order status (Pending, On-hold, or Processing)
- Custom payment instructions shown on the **Thank You page** and in the **customer emails**
- Optional user restrictions (limit payment methods to selected users or roles)

Ideal for **B2B**, **manual invoice payments**, **cash on delivery**, or **offline transfers**.

== Key Features ==
- Up to **3 fully customizable payment methods**
- **Custom email instructions** and **Thank You page messages**
- Choose which users can see each method
- Select the **default order status** for each method
- Clean admin interface with toggle switches
- Fully compatible with **WooCommerce core emails**
- Ready for **translation** (`aisp-custom-payment-manager` text domain)
- Lightweight and compliant with WordPress.org coding standards

== Use cases ==
- “Pay by bank transfer” for trusted clients
- “Pay on pickup” or “Pay by phone” for local businesses
- “Invoice me later” for B2B
- “Manual payment by admin” for backend orders

---

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/`
2. Activate the plugin from the **Plugins** menu in WordPress
3. Go to **WooCommerce → Settings → Payments**
4. Enable one or more custom payment methods
5. Customize the title, description, and payment instructions

---

== Frequently Asked Questions ==

= Does it require WooCommerce? =
Yes. This plugin only works if WooCommerce is active.

= Can I rename or disable some methods? =
Yes. You can enable/disable and rename each payment method in WooCommerce → Settings → Payments.

= Can I limit a method to certain users? =
Yes. You can restrict payment methods to specific users using the “Allowed Users” multiselect field.

= Does it support email instructions? =
Yes. You can include payment instructions in customer emails and on the Thank You page.

= Is it compatible with multi-language plugins? =
Yes, it’s fully translatable and works with WPML, Polylang, and Loco Translate.

---

== Screenshots ==

1. Plugin settings page in WooCommerce
2. Example of custom payment methods list
3. Example of Thank You page with instructions
4. Example of email showing payment instructions

---

== Changelog ==

= 1.0.2 =
* Improved: Allowed Users field now uses AJAX search (wc-customer-search) instead of a static list, supporting sites with any number of users without performance impact.

= 1.0.1 =
* Fixed: Payment instructions are now correctly included in order confirmation emails regardless of the configured order status (On hold, Processing, or Pending payment).
* Fixed: Plugin reactivation no longer force-enables Payment Method 1 when all methods were intentionally disabled by the administrator.
* Fixed: Admin stylesheet now loads only on the WooCommerce settings page instead of across all WooCommerce admin pages.
* Improved: Limited the Allowed Users field to 500 users to help prevent memory issues on large sites.

= 1.0.0 =
* Initial release.


---

== Upgrade Notice ==

= 1.0.2 =
This update allowed Users field now uses AJAX search (wc-customer-search) instead of a static list, supporting sites with any number of users without performance

= 1.0.1 =
This update fixes issues related to payment instructions, plugin reactivation behavior, and admin asset loading.
It also improves stability on large WooCommerce sites by limiting the Allowed Users field size. No action required.

= 1.0.0 =
First stable release — safe to update.

---

== License ==

This plugin is free software; you can redistribute it and/or modify it under the terms of the **GNU General Public License** as published by the **Free Software Foundation**, either version 2 of the License, or (at your option) any later version.

---


