Skip to main content

A simple django app to integrate bkash rest api to your application

Project description

Bkash Django Integration app is to integrate Bkash Api to Django Backend. With Minimal setup in the settings.py, one can easily perform bkash checkout api and store response from bkash api for further audit issues

Detailed documentation is in the “docs” directory.

Installation

Run this command:

pip install django-bkash-integration

Quick start

  1. Add “bkash” to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [
        ...
        'bkash',
    ]
  2. Include the bkash URLconf in your project urls.py like this:

    path('bkash/', include('bkash.urls')),
  3. Define the following constants in the version settings.py:

    BKASH_APP_KEY = // bkash app key
    BKASH_APP_SECRET = // bkash app secret
    BKASH_APP_USERNAME = // bkash app username
    BKASH_APP_PASSWORD = // bkash app password
    BKASH_APP_VERSION = // bkash app version
    BKASH_APP_BASE_URL = // bkash app base url
    BKASH_APP_PAYMENT_TOKEN_GRANT_URL = '%s/%s/checkout/token/grant' % (BKASH_APP_BASE_URL, BKASH_APP_VERSION)
    BKASH_APP_PAYMENT_CREATE_URL = '%s/%s/checkout/payment/create' % (BKASH_APP_BASE_URL, BKASH_APP_VERSION)
    BKASH_APP_PAYMENT_EXECUTE_URL = '%s/%s/checkout/payment/execute' % (BKASH_APP_BASE_URL, BKASH_APP_VERSION)
  4. Make sure you have postgres database and the routes are protected by some kind of oauth2 authentication

  5. Run python manage.py migrate to create the bkash models.

  6. Host the application in a remote server and connect from the frontend.

  7. For any query and bug please file an issue or knock me at shetu2153@gmail.com

Happy Coding !!!

Project details


Download files

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

Source Distribution

django-bkash-integration-0.3.tar.gz (6.0 kB view details)

Uploaded Source

File details

Details for the file django-bkash-integration-0.3.tar.gz.

File metadata

  • Download URL: django-bkash-integration-0.3.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.5

File hashes

Hashes for django-bkash-integration-0.3.tar.gz
Algorithm Hash digest
SHA256 41ab0667e5da1ef6d9f4b1e5f1b1e9662fcc996a578575dbbf894719e44bf6e0
MD5 2d95f5c45c7e96e774a594f4e7f2d590
BLAKE2b-256 1ec8ca0315fe727385ddf6cca58c85f53ea8a1a1ac04313517294d968dfa0215

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page