Skip to content
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.
/ django-pay-ir Public archive

A simple Django app for easy payment via pay.ir

License

Notifications You must be signed in to change notification settings

rasooll/django-pay-ir

Repository files navigation

Django payment module for Pay.ir

Travis-CI Coverage Status PyPI PyPI - Python Version PyPI - Django Version PyPI - Wheel

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)

About

A simple Django app for easy payment via pay.ir

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published