Coder Social home page Coder Social logo

bankingapi's Introduction

Banking API

This is a python library that gives an interface for implementing various API providers.

Reach us out at [email protected] to connect with our team.

License

GNU/General Public License (v3) (see license.txt)

The Banking API code is licensed as GNU General Public License (v3) and the copyright is owned by Aerele Technologies Pvt Ltd (Aerele) and Contributors.

Installation

To install Python package from github, you need to clone the repository

git clone https://github.com/aerele/bankingapi.git

Then just run the setup.py file from the repo directory

sudo python setup.py install

API Usage

Create the CommonProvider object and you will be ready to call api.

Basic Usage

The following is an example code block on how to use bankingapi.

import banking_api
from banking_api.common_provider import CommonProvider
prov = CommonProvider('Test')
balance = prov.fetch_balance()
stmt = prov.fetch_statement()
print(balance)
print(stmt)

Conventions Followed

  • Provider name - Capitalize the first letters eg: Test Provider
  • Provider's python file name - Snake Case eg: test_provider
  • Class name - Camel Case eg: TestProvider

For new banking api implementation

Just create a provider's api python file inside banking_api module

Add the below functions

  • fetch_balance
  • fetch_statement
  • initiate_transaction_without_otp
  • initiate_transaction_with_otp
  • get_transaction_status
  • send_otp
  • fetch_statement_with_pagination

Note

  1. Refer Common Provider and Test API Provider for request and response format.
  2. If transaction_type_mapping not found for your api provider. Just include it under the Common Provider init function.

TODO

  1. Need to test fetch_statement_with_pagination API.

Show some ❤️ by starring ⭐ ⬆️ our repo!

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.