diff --git a/ReadMe.md b/ReadMe.md
index 18e5d1a..07c6a3e 100644
--- a/ReadMe.md
+++ b/ReadMe.md
@@ -1,149 +1,216 @@
-# [MoneyUnify](https://moneyunify.com)
+# MoneyUnify Library PHP Documentation
-> Mobile Money Payments integration API simplified and unified for all payment gateways
+The **MoneyUnify** library provides an easy interface for integrating with the [MoneyUnify API](http://MoneyUnify.com) to process mobile money payments. This documentation will guide you through the installation process and demonstrate how to use the library effectively. support for multiple programming languages is available [here](https://www.apidog.com/apidoc/shared-c8a1fbbb-8410-4978-8a64-937fc55186da)
+- ### MoneyUnify - Payments in Zambia _(Recommended for businesses/individuals in Zambia)_
+ > Instant settlements and repayments
+![image](https://github.com/blessedjasonmwanza/MoneyUnify/assets/35315311/3b2db60b-cb0f-422f-af6f-04e9141a8f66)
-## Mobile Money Payments, Simplified - MTN, Airtel, Zamtel π€
+> Ideal for money collections in Zambia - Coming soon to **Tanzania**, **Nigeria**, **Kenya** π
-Unlock the power of seamless financial **transactions in Africa** with MoneyUnify. MoneyUnify **empowers and enables developers and businesses** to **effortlessly collect payments or send money** to mobile networks by utilizing the power of **USSD**. Say goodbye to the daunting task of integrating multiple Mobile Network Operators' APIs. **MoneyUnify streamlines the process** into minutes, allowing you to save valuable time and resources while **revolutionizing your online payment processes**.
+- [x] **Make Collections** - Request mobile Money payments from _AIRTEL_, _MTN_, & _ZAMTEL_ (All Network operators in Zambia)
+- [x] **Settle Funds** - Disburse and Settle funds from your MoneyUnify Account to _MTN_, _Zamtel_, _MTN_ All Mobile Networks Instantly
+- [x] **π€ Instant Customer support** available via - π [WhatsApp](https://wa.me/+260971943638)
+- #### SETUP
+ - [x] It's easy and instant! π Just [Create your account on MoneyUnify](https://dashboard.moneyunify.com/) to get your API key (MUID)
+ - [x] π Check documentation below or [ here for more languages](https://www.apidog.com/apidoc/shared-c8a1fbbb-8410-4978-8a64-937fc55186da) - Comes with some examples π />
+ - [x] π€ Customer support available via - π [WhatsApp](https://wa.me/+260971943638)
+- #### Supported Countries on the Moneyunify endpoint
+ | Country | Country Code | Currency | Currency Code | Status |
+ | -------- | ------------ | ------------------ | ------------- | -------------- |
+ | ZAMBIA | ZM | Zambian kwacha | ZMW | Active βοΈ |
+ | TANZANIA | TZ | Tanzanian shilling | TZS | Coming Soon β° |
+ | KENYA | KE | Kenyan shilling | KES | Coming Soon β° |
- - Africa
- - The World
+### Charges and FEES
+---
-## Available Providers and Endpoints
- - ### MoneyUnify - Payments in Zambia *(Recommended for businesses/individuals in Zambia)*
- > Instant settlements and repayments
-
- ![image](https://github.com/blessedjasonmwanza/MoneyUnify/assets/35315311/3b2db60b-cb0f-422f-af6f-04e9141a8f66)
+#### Collections (Receiving payments)
- > ~3.5%~ *Now 2.5%* + 1 ZMW per transaction (On collections)
+> 2.5% + 1 ZMW per transaction (reduced from the initial ~3.5%~)
- > Ideal for money collections in Zambia - Coming soon to **Tanzania**, **Nigeria**, **Kenya** π
+##### Settlements / Transferring to mobile money
- - [x] **Make Collections** - Request mobile Money payments from *AIRTEL*, *MTN*, & *ZAMTEL* (All Network operators in Zambia)
- - [X] **Settle Funds** - Disburse and Settle funds from your MoneyUnify Account to *MTN*, *Zamtel*, *MTN* All Mobile Networks Instantly
- - [x] **π€ Instant Customer support** available via - π [WhatsApp](https://wa.me/+260971943638)
- - #### SETUP
- - [x] It's easy and instant! π Just [Create your account on MoneyUnify](https://dashboard.moneyunify.com/) to get your API key (MUID)
- - [x] π Check [ Documentation Here](https://www.apidog.com/apidoc/shared-c8a1fbbb-8410-4978-8a64-937fc55186da) - Comes with some examples π />
- - [x] π€ Customer support available via - π [WhatsApp](https://wa.me/+260971943638)
- - #### Supported Countries on the Moneyunify endpoint
- | Country | Country Code | Currency | Currency Code | Status |
- |-----------|--------------|-------------------|---------------|----------------|
- | ZAMBIA | ZM | Zambian kwacha | ZMW | Active βοΈ |
- | TANZANIA | TZ | Tanzanian shilling| TZS | Coming Soon β° |
- | KENYA | KE | Kenyan shilling | KES | Coming Soon β° |
+| Settlement Account balance | What you you'll receive | Charges/ Transaction Fees |
+| ------------------------------------ | ----------------------- | ------------------------- |
+| balance \[20 ZMW \~ 1,000 ZMW \] | balance - 12 | 12 ZMW |
+| balance \[1,000 ZMW \~ 50,000 ZMW \] | balance - 20 | 20 ZMW |
+| balance \[ 50,000 \~ 100,000 ZMW \] | balance - 30 | 30 ZMW |
+## Installation
+Documentation Usage for languages other than PHP is {available here]()
- ### Charges and FEES
- ----
+1. **Install Composer** (if you havenβt already). Follow the [Composer installation guide](https://getcomposer.org/download/).
- #### Collections (Receiving payments)
-
- > 2.5% + 1 ZMW per transaction
-
- ##### Settlements / Transfering to mobile money
-
- | Settlement Account balance | What you you'll receive | Charges/ Transaction Fees |
- | --- | --- | --- |
- | balance \[20 ZMW \~ 1,000 ZMW \] | balance - 12 | 12 ZMW |
- | balance \[1,000 ZMW \~ 50,000 ZMW \] | balance - 20 | 20 ZMW |
- | balance \[ 50,000 \~ 100,000 ZMW \] | balance - 30 | 30 ZMW |
+2. **Install the MoneyUnify Library** by adding it to your `composer.json`:
+ ```bash
+ composer require blessedjasonmwanza/moneyunify
+ ```
-----
+## Usage
+### Basic Usage
-
+1. **Include the Autoload File**:
-
+ ```php
+ require 'vendor/autoload.php'; // Include Composer autoload
+ ```
-
+2. **Create an Instance of the `MoneyUnify` Class**:
-
+ ```php
+ use Blessedjasonmwanza\MoneyUnify\MoneyUnify;
+ $muid = 'your_unique_muid'; // Replace with your actual MUID - obtain it at https:/MoneyUnify.com
+ $moneyUnify = new MoneyUnify($muid);
+ ```
- - ### MTN MoMo API - Available in over 12 African countries π
- > 2% transaction fees
- - [x] **Make collections** - You can Accept payments from **over 12 countries in Africa** using **MTN MoMo Mobile Money*
- - [ ] Send money from your MTN MoMo merchant Account to *MTN MoMo* Mobile Networks (coming soon)
- - #### SETUP
- - [x] Begin by creating your developer account on the Official [MTN Developer portal](https://momodeveloper.mtn.com/developer) and [subscribe to a collection product](https://momodeveloper.mtn.com/api-documentation/getting-started/). Thereafter, configure your keys on the [MoneyUnify Dashboard](https://dashboard.moneyunify.com)
- - [x] [See Documentation](./Examples/Mtn/ReadMe.md). Snippet examples are available to help you integrate in minutes! />
- - [ ] βΉοΈ β οΈ before going going live, you must **submit your KYC to MTN via their developer portal**. You can contact their teams to help speed up the approval process.
+3. **Call the `requestPayment` Method**:
- - #### Supported Countries on the MTN Momo mobile Money USSD provider
- | Country | Country Code | Currency | Currency Code |
- |--------------|--------------|---------------------|---------------|
- | Cameroon | CM | Central African CFA Franc | XAF |
- | Ghana | GH | Ghanaian Cedi | GHS |
- | Ivory Coast | CI | West African CFA Franc | XOF |
- | Liberia | LR | Liberian Dollar | LRD |
- | Malawi | MW | Malawian Kwacha | MWK |
- | Mozambique | MZ | Mozambican Metical | MZN |
- | Nigeria | NG | Nigerian Naira | NGN |
- | Rwanda | RW | Rwandan Franc | RWF |
- | Zambia | ZM | Zambian Kwacha | ZMW |
+ ```php
+ $payerPhoneNumber = '0xxxxxxxx'; // Replace with payer's phone number
+ $amountToPay = '10'; // Amount to be paid
+ $response = $moneyUnify->requestPayment($payerPhoneNumber, $amountToPay);
+ ```
+4. **Check the Response**:
- - ### Airtel - Available in over 15 African countries π
- > 2% - 2.5% transaction fees
- - [x] **Make collections** - You can Accept payments from **over 15 countries in Africa** using **Airtel Mobile Money*
- - [ ] Send money from your Airtel merchant Account to *Airtel* Mobile Networks (coming soon)
- - #### SETUP
- - [x] Begin by creating your developer account on the Official [Airtel Developer portal](https://developers.airtel.africa/home). Thereafter, configure your keys on the [MoneyUnify Dashboard](https://dashboard.moneyunify.com) and **subscribe to their collections product**
- - [x] [See Documentation](./Examples/Airtel/ReadMe.md). Snippet examples are available to help you integrate in minutes! />
- - [ ] βΉοΈ β οΈ before going live, you must **submit your KYC to Airtel via their developer portal**. You can contact their teams to help speed up the approval process.
+ ```php
+ if ($response->isError) {
+ echo "Error: " . $response->message . "\n";
+ echo "Console: " . ($response->console ?? 'No console message to debug') . "\n";
+ } else {
+ echo "Success: " . $response->message . "\n";
+ echo "Data: " . json_encode($response->data) . "\n";
+ }
+ ```
+
+### Example Successful Response
- - #### Supported Countries on the Airtel mobile Money USSD provider
- | Country | Country Code | Currency | Currency Code |
- |--------------------|--------------|--------------------|---------------|
- | UGANDA | UG | Ugandan shilling | UGX |
- | NIGERIA | NG | Nigerian naira | NGN |
- | TANZANIA | TZ | Tanzanian shilling | TZS |
- | KENYA | KE | Kenyan shilling | KES |
- | RWANDA | RW | Rwandan franc | RWF |
- | ZAMBIA | ZM | Zambian kwacha | ZMW |
- | GABON | GA | CFA franc BEAC | CFA |
- | NIGER | NE | CFA franc BCEAO | XOF |
- | CONGO-BRAZZAVILLE | CG | CFA franc BCEA | XAF |
- | DR CONGO | CD | Congolese franc | CDF |
- | DR CONGO | CD | United States dollar | USD |
- | CHAD | TD | CFA franc BEAC | XAF |
- | SEYCHELLES | SC | Seychelles rupee | SCR |
- | MADAGASCAR | MG | Malagasy ariary | MGA |
- | MALAWI | MW | Malawian kwacha | MWK |
+```json
+{
+ "message": "Transaction successful",
+ "data": {
+ "amount": "5.00",
+ "customer_name": "Blessed Mwanza",
+ "customerMobileWallet": "0769641179",
+ "reference": "0762611179_1713450343",
+ "status": "successful"
+ },
+ "isError": false
+}
+```
-