Coder Social home page Coder Social logo

unifi-voucher-payment-server's Introduction

Unifi Voucher Payment Server

A typical use case of the Mazzuma API in making mobile money payments.

To see this repository in action, visit Enjoy WiFi, Today and follow the "Buy Bundle" link.

This repository is complementary to the @seanmavley/unifi-voucher-payment-frontend repository. They both work in tandem to accept Mobile Money payments from Airtel, Tigo and MTN networks in Ghana, responding with a generated voucher code in the end.

See the @seanmavley/unifi-voucher-payment-frontend for more details of the outworkings of the Frontend.

Credits

  • Mazzuma's Mobile Money Payments API (HTTP) is in use for the mobile payments.
  • Node-UnifiAPI ( @delian/node-unifiapi ) handles the generation of voucher codes, in connection with our self-managed Unifi Controller for AlwaysOn WiFi.
  • And many other packages

How it works

  • API forwards a request to Mazzuma's API after verifying details from frontend
  • API then forwards the response, either success or failed to frontend for processing
  • If need be, Frontend polls a callback endpoint for updates. If found, proceeds to generate voucher and sends to frontend.

Run Locally

  • Git clone this repository
  • Run npm install in project root
  • gulp start to view application to kickstart API server.
  • At this point, you see errors, therefore, create a .config.js file following what's shown in the .config_sample.js
  • Gulp should restart server after changes. If not, you know what to do.

Contributing

PR and Issues are welcome to open. Will appreciate any hints on how to improve the implementation.

Tests

Not yet.

License

See LICENSE

unifi-voucher-payment-server's People

Contributors

seanmavley avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

dannydaniel

unifi-voucher-payment-server's Issues

Feedback

I watched your video and it watch very helpful. The info you provided has been valuable as the docs on hubtel was a bit confusing (on the transaction flow) at first. After reading more on the Vodafone cash integration, I noticed using it is not much of a problem (I just need an extract text input for transaction code generated for payment).

The UX for the delay in response is my current challenge. I'm thinking through.

I'm working on a nodejs API and I'm trying to their other services for my projects and as open source. Will get back to you. Thanks.

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.