I would like to be able to integrate MPESA API C2B Till Number Payment capabilities with STK push into a Django Web app I am working on such that the user of the platform gets an STK Push notification to pay to the till number and the transaction is stored in the database through a model.
I have seen some frameworks people have developed online but most seem to cater for paybill and not till. any help with frameworks that can help me do this will be appreciated.
I am finding the official documentation bulky and kind of difficult to work with from django.
There is no huge difference between Paybill number and Till number. According to Safaricom documentation, for C2B Safaricom C2B API The command ID for paybill shortcode is CustomerPayBillOnline and for Buy Good and services is CustomerBuyGoodsOnline
With that said you can do something like this in Django for STK push: