Integration of mpesa C2B Payments on standard POS #82
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces a significant enhancement to the standard Point of Sale (POS) system by integrating the Mpesa C2B (Customer to Business) functionality. Inspired by the successful implementation in POS Awesome, this addition extends the convenience of Mpesa payments to a broader range of POS users.
New Doctypes Creation:
Two new doctypes are introduced to facilitate Mpesa C2B transactions seamlessly:
Mpesa C2B Payment Register:
Purpose: Store transaction details post successful M-Pesa payment, mirroring the functionality of the Mpesa Payment Register in POS Awesome.
Attributes:
Customer details
Transaction amount
Payment status
Mpesa C2B Payment Register URL:
Purpose: Define payment mode and link it with M-Pesa settings, akin to the Mpesa C2B Register URL in POS Awesome.
Functionality:
Manage callback notifications for transaction updates.
Automated Tests:
Automated tests have been included to ensure the reliability and functionality of the newly introduced features. This helps maintain the integrity of the system and facilitates future development efforts.
###API Folder Addition:
An API folder has been introduced to organize related functionalities, enhancing code readability and maintainability.
This pull request not only expands the capabilities of the standard POS system but also enhances its versatility by enabling seamless Mpesa C2B transactions. With the addition of automated tests and proper code organization, it ensures a robust and reliable integration.
here is the proposal we had made on ERPNext repository.
frappe/erpnext#40939
Working on the POS.