Giter Site home page Giter Site logo

allansifuna / flask-mpesa Goto Github PK

View Code? Open in Web Editor NEW
13.0 2.0 3.0 159 KB

Flask-Mpesa provides a simple intergration for flask Applications with Mpesa Daraja API.

Home Page: https://developer.safaricom.co.ke/docs

License: MIT License

Python 100.00%
flask-mpesa pypi mpesa-daraja-api flask-applications python3 allansifuna githubactions cicd hacktoberfest

flask-mpesa's Introduction

Hi ๐Ÿ‘‹, I'm Allan Sifuna

Software Developer.

allansifuna/

@allansifuna

@allanns @sifuna324 allan-sifuna-623955159

allansifuna


allansifuna

My Open Source Projects Hosted On PYPI

allansifuna allansifuna

flask-mpesa's People

Contributors

allansifuna avatar codacy-badger avatar dependabot[bot] avatar robinmuhia avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

flask-mpesa's Issues

Bug in serializing encoded password (business_shortcode+ passcode+ time) in Mpesa Express stk_push

First of all. Good stuff with this library. It is very well written and documented.

So. I encountered this problem where I had passed everything as expected to use the Mpesa express stkpush. But I kept getting this error.

stk

After a very long time I discovered that the encoded password was a byte and could not be serialized so as to be passed in the requested body.

This is a screenshot of a segment of the class before I refactored it.

stk_before

And after.

stk_after

Decoding the password to a string worked for me and everything else was seamless.

I am not sure if it is an isolated case for me or for others as well, so I thought I'd raise this issue.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.