frappe / erpnext

Free and Open Source Enterprise Resource Planning (ERP)
https://erpnext.com
GNU General Public License v3.0
22.02k stars 7.38k forks source link

Mpesa C2B Integration #25628

Closed muchai closed 2 years ago

muchai commented 3 years ago

Currently EPRNext integrates POS to Mpesa payments via Mpesa Express :https://developer.safaricom.co.ke/docs#lipa-na-m-pesa-online-payment

  1. The first request is having Mpesa Express on the Shopping Cart, that way, when one shops, they can pay and complete the transaction.
  2. The second request is an additional integration via C2B: https://developer.safaricom.co.ke/docs#c2b-api The way this works, is a customer pays for goods later/or before hand to a specific till/paybill number. Unlike Mpesa Express where the cashier initiates the payment request, which is then pushed to the customer phone via api, for the customer to enter their mpesa pin, and erpnext completes the payment on pos. That means for C2B, ERPnext needs to keep polling for all payments made against setup Tills for the business, and stores the payment details in an ERPNext table.

C2B would have several integration points on ERPNext

stale[bot] commented 2 years ago

This issue has been automatically marked as inactive because it has not had recent activity and it wasn't validated by maintainer team. It will be closed within a week if no further activity occurs.

muchai commented 2 years ago

Mpesa C2B Integration, was implemented as part of POS Awesome Mpesa integration. Since Mpesa C2B Integration, applies to payments to Sales Invoices, other than POS Invoices only, we plan to have this merged into ERPNext core, once we have tested, and refined the solution(via using it for a while in a prod. environment)

muchai commented 2 years ago

So, probably we leave this still open.

stale[bot] commented 2 years ago

This issue has been automatically marked as inactive because it has not had recent activity and it wasn't validated by maintainer team. It will be closed within a week if no further activity occurs.