=== Monieswitch ===
Contributors: monieswitch, shoboysnr
Tags: payment, woocommerce, payment gateway, bank transfer
Requires at least: 5.0
Tested up to: 6.8
Stable tag: 1.0.2
Requires PHP: 7.2
License: GPL2
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Monieswitch Payment Gateway for WordPress and WooCommerce, enabling seamless transactions with bank transfers.

== Description ==

Monieswitch is a simple and secure payment gateway integration for WooCommerce, enabling seamless transactions with a variety of features. Currently, it supports payment via **bank transfer** and will soon add more options like **credit card payments**. With Monieswitch, merchants can provide customers a flexible and secure way to pay.

= Features =
* **Popup payment interface** for secure transactions.
* **Customizable settings** for merchant preferences.
* **Order management** with the option to automatically mark orders as complete.
* **Customizable transaction channels** (currently supports **bank transfer**).
* **Configurable bearer options** for fee management.
* Integration with **WooCommerce** for easy setup and management.
* **Customer Info Submission**: Allows the submission of customer information (phone number) as part of the payment process.
* **Shortcode Support**: Use a customizable shortcode to integrate the Monieswitch payment button anywhere on your site.
* **Detailed Logs**: Access detailed logs for troubleshooting by checking the Monieswitch transaction logs.
* **Bearer Options**: Choose who will pay the transaction fee - merchant, customer, or subaccount.

== Installation ==

1. Upload the plugin files to the `/wp-content/plugins/monieswitch` directory, or install the plugin through the WordPress plugins screen directly.
2. Activate the plugin through the 'Plugins' screen in WordPress
3. Use the WooCommerce->Settings->Payments screen to configure the plugin

= Configuring Monieswitch Payment Gateway =

Once the plugin is activated, you can configure the payment settings by following these steps:

1. Go to **WooCommerce** → **Settings** → **Payments**.
2. Find **Monieswitch** in the list of payment methods and click on the **Manage** button.

= Available Settings =

1. **Enable/Disable Monieswitch** - Enable or disable the Monieswitch payment gateway.
2. **Title** - The title displayed to customers on the checkout page.
3. **Description** - A description field to provide additional details to your customers.
4. **Payment Option** - Currently, only **Popup** is available.
5. **Public & Secret Keys** - Enter the keys provided by Monieswitch.
6. **Auto-complete Order** - Automatically sets the order status to **Completed** after payment.
7. **Channels** - Currently, **Bank Transfer** is the only available channel.
8. **Customer Phone Checkbox** - Send the customer's phone number with the payment request.
9. **Bearer Option** - Choose who will be responsible for transaction fees.
10. **Subaccount** - Provide the subaccount email address if using subaccount bearer option.

= Using the Shortcode =

You can use the `[monieswitch]` shortcode on any page to generate a "Pay Now" button with specified parameters:

`[monieswitch amount="10000"]`

`[monieswitch amount="10000" currency="USD" channel="BANK" bearer="customer"]`

`[monieswitch amount="10000" currency="USD" channel="BANK" bearer="subaccount" subaccount="subaccount@example.com"]`

== Frequently Asked Questions ==

= What payment methods are supported? =

Currently, Monieswitch supports bank transfers. We plan to add credit card payments in future updates.

= Is this plugin compatible with the latest version of WordPress and WooCommerce? =

Yes, Monieswitch is regularly updated to ensure compatibility with the latest versions of WordPress and WooCommerce.

= How do I get my API keys? =

You need to sign up for a Monieswitch account at https://monieswitch.com and request your API keys.

== Screenshots ==

1. Monieswitch payment settings page
2. Checkout page with Monieswitch payment option
3. Monieswitch payment popup

== Changelog ==

= 1.0.2 =
* Updating to 1.0.2

= 1.0.1 =
* Fix incorrect amount format

= 1.0.0 =
* Initial release

== Upgrade Notice ==

= 1.0.2 =
Updating to 1.0.2

= 1.0.1 =
Fix incorrect amount format

= 1.0.0 =
Initial release of the Monieswitch payment gateway plugin.

== External Services ==

This plugin connects to Monieswitch's payment processing API to facilitate secure payment transactions.

= Monieswitch Payment API =

**What the service is and what it is used for:**
The plugin connects to Monieswitch's payment processing service to initialize and verify payment transactions. This service is necessary for processing payments through the Monieswitch gateway.

**What data is sent and when:**
* Customer information (email and optionally phone number) is sent when initializing a payment.
* Transaction details including amount, currency, and reference are sent when processing a payment.
* The plugin communicates with Monieswitch servers (https://collect.monieswitch.com and https://nini.monieswitch.com) to load payment scripts and process transactions.

**Service Terms and Privacy:**
* Terms of Service: https://monieswitch.com/terms
* Privacy Policy: https://monieswitch.com/policy
