IanWambai / Chowder

Chowder for Android M-Pesa payments.
MIT License
30 stars 25 forks source link

New M-Pesa REST APIs #12

Open IanWambai opened 7 years ago

IanWambai commented 7 years ago

Update Chowder to use the new Safaricom M-Pesa REST APIs. I'll try finish this by the end of the year, but it's not 100% certain. You can find more documentation here.

Here are benefits of the REST API:

IanWambai commented 7 years ago

Update: Using the REST APIs is still complicated as fuck. There's definitely a need for a library to use them. The documentation isn't perfect either, I'm compiling a list of issues I'll send to Safaricom, but good thing is we can do more with the APIs than I previously thought.

ghost commented 6 years ago

Hey, How can my android app use the MPESA C2B services now that the new APIs don't need chowder? the process, methods...etc

IanWambai commented 6 years ago

Right now you'll just have to use their REST APIs, but they've also made it such that you'll need your own server to process callbacks.

Jkabs commented 6 years ago

Thanks @IanWambai

mugash4 commented 6 years ago

Hi IanWambai, great work. I'm an intermediate android dev, and some time back I was trying to implement mpesa system into my App, with these files from Makara a developer as well. But I wasn't able to implement them due to their nature and my level of coding understanding. So, i got stuck. Anyway, may be you can take a look at the files then expound to me a bit more what you think of them. In the meantime, I think I'm going to make use of your implementation. since I think it's what I have been looking for. Thank you once again. Here is my email mugash4@gmail.com in case you want to get in touch.

IanWambai commented 6 years ago

Hi @mugash4. Thanks for reaching out. I wouldn't recommend using Chowder right now in the first place. It's pretty old code now and Safaricom has new APIs. I've been too lazy/busy to update it but I probably will over the next few months. If your objective is to process M-Pesa payments I recommend this. They have a great STK push API.

mugash4 commented 6 years ago

Thanks, @IanWambai for your feedback. I'm looking for really simple implementation like yours. coz I'm still learning and there's a lot I don't know regarding such payment implementation. I hope you understand where I'm coming from. Hey did you check the files I send you in my earlier post? what do you think of them? Thank you

IanWambai commented 6 years ago

@mugash4 well if you're looking for something simple, I think the link I sent you is a pretty easy way to add M-Pesa to your project. It looks like the code you're working with still uses SOAP/Chowder, which I wouldn't recommend. If you know how to make API calls on Android, which you can easily learn, then you should be good to go. All you'll need is an iPay account.

mugash4 commented 6 years ago

@IanWambai Thanks for the honest response. I will try and if it gets hard I will have to wait for your update

habeebrahmanpt commented 6 years ago

Hey, How can my android app use the MPESA C2B services using new RestApi the process, methods... https://sandbox.safaricom.co.ke/mpesa/c2b/v1/simulate

https://sandbox.safaricom.co.ke/mpesa/c2b/v1/registerurl and what is use of callback url ?