Skip to main content

A library for brij fintech

Project description

brij

A client api for brij fintech

installation

pip install brij-fintech==0.0.4

getting started

in order to use brij services,you'll need to follow these simple steps

  • create an account with them
  • create a service/application under your brij account dashboard
  • note down your app ID and appKey

Integration

Direct Payment: sending direct payment from your customer to your brij account using M-Pesa

from brij.mpesa import MpesaService

to_acc = MpesaService(app_id='YOUR-BRIJ-APP-ID', app_key='YOUR-BRIJ-APP-KEY')
response = to_acc.mpesa_to_acc(amount, sender, MPESA-NUMBER, description='short description')
if r:
    print(r.json())
else:
    print('error')
  • the description text must not exceed 16 chars
  • MPESA-NUMBER is the number making the transaction. the supported format starts is 254712345678

Escrow: sending escrow payment between your customers with your account acting as an escrow account, using M-pesa

from mpesa import MpesaService

service = MpesaService(app_id='YOUR-BRIJ-APP-ID', app_key='YOUR-BRIJ-APP-KEY')
r = service.mpesa_to_escrow(amount, 'sender email or phone', 'recepient email or phone', MPESA-NUMBER, 'short deacription')
print(r.json())
  • the MPESA-NUMBER is the number making the transaction. the supported format is 254712345678
  • short description must not exceed 16 chars
  • sender email or phone are required in order to reach both parties with updates on the transaction

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for brij-fintech, version 0.0.6
Filename, size File type Python version Upload date Hashes
Filename, size brij_fintech-0.0.6-py3-none-any.whl (5.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size brij-fintech-0.0.6.tar.gz (2.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page