Our Budget is 120$ Max Below is how the app should work
CS CART Frontend
Customer End
Customer starts shopping
Customer Adds item to cart
Customer checks out cart
Fills in details
Gets to Billing
Selects Mobile Payment Tab
Selects Option - Mpesa/Airtel/Orange
--> Display Payment Details
--->Please send Amount to Account Number 12345
--------Customer Opens Phone
--------Goes to Mpesa/Airtel/Orange
--------Enters Account
--------Enters Amount
--------Enters Pin
--------Hits Send
Recieves SMS reciept
----EA54HY643 Confirmed.
on 28/9/13 at 1:14 PM
Ksh50.00 sent to
254729639024 SokoSasa.
New Account balance is Ksh54.00';
Goes back to the site checkout and
Enters His Name:
Phone:
Code Recieved:
System Confirms Receipt
if true then order is complete, if false error message please enter the correct code else
Order is complete --> Delivery
The Backend/Our End
Our Account Recieves Payment
Payment provider/Mpesa sends us a Message
----EA54HY643 Confirmed.
on 28/9/13 at 1:14 PM
Ksh50.00 received from
254729639024 MORRIS M.
New Account balance is Ksh154.00';
Smssync Sends this sms to Pesapi which breaks the sms down into different values that will be found in the db table and the info is saved into pesapi table(payment)
User enters code at check out
Cs cart checks pesapi table for the code . If it exists cs cart alerts customer of the succesful payment and completes
the order retrieving the name phone number and code and saves the payment in its own db (cscart_payment)
if the code hasnt been recieved cs cart tells user about the wrong code using an error.
If it is found the order is processed and complete and user is returned to the homepage.
PesaPI is an unofficial open source API for mobile money systems that can be found here [login to view URL] or [login to view URL] for more information on how it operates. I have attached a php file withthe previous code now we need the same application in cs cart