Skip to main content

A simple Django app for easy payment via pay.ir .

Project description

Django payment module for Pay.ir

Installation

First install package.

pip install django-payment-payir

Add 'pay_ir' to your INSTALLED_APPS setting.

INSTALLED_APPS = (
    ...
    'pay_ir',
)

And add PAY_IR_CONFIG in to setting file.

PAY_IR_CONFIG = {
    "api_key": "YOUR_API_KEY"
}

For test without api key enter a test as api key.

Add the following to your root urls.py file.

urlpatterns = [
    ...
    url(r'^payment/', include('pay_ir.urls'))
]

Note that the URL path can be whatever you want.

Run python manage.py migrate to create the payments models.

Tested on

  • Python (3.6.6)
  • Django (2.1)
  • requests (2.19.1)

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-payment-payir-0.2.tar.gz (8.5 kB view details)

Uploaded Source

File details

Details for the file django-payment-payir-0.2.tar.gz.

File metadata

  • Download URL: django-payment-payir-0.2.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.6

File hashes

Hashes for django-payment-payir-0.2.tar.gz
Algorithm Hash digest
SHA256 5b7a3f41bef8aa6cb78599bb8212caf666de5f7ab3e9d50beb0b4e0eec7bcebd
MD5 6f4f96d51bf228fda8b2c7b5f4d46048
BLAKE2b-256 11104b252629e5e6bfd69cd0c2781b1ad9cab8345b6d779e652a4610a003e4fe

See more details on using hashes here.

Supported by

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