Skip to main content

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

Project description

# Django payment module for Pay.ir

[![Travis-CI](https://travis-ci.org/rasooll/django-pay-ir.svg?branch=master)](https://travis-ci.org/rasooll/django-pay-ir)
[![Coverage Status](https://coveralls.io/repos/github/rasooll/django-pay-ir/badge.svg?branch=master)](https://coveralls.io/github/rasooll/django-pay-ir?branch=master)
![PyPI](https://img.shields.io/pypi/v/django-payment-payir.svg)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/django-payment-payir.svg)
![PyPI - Django Version](https://img.shields.io/pypi/djversions/django-payment-payir.svg)
![PyPI - Wheel](https://img.shields.io/pypi/wheel/django-payment-payir.svg)

## Installation

First install package.

```bash
pip install django-payment-payir
```

Add 'pay_ir' to your INSTALLED_APPS setting.

```python
INSTALLED_APPS = (
...
'pay_ir',
)
```

And add `PAY_IR_CONFIG` in to setting file.

```python
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.

```python
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.3.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

django_payment_payir-0.3-py3-none-any.whl (12.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django-payment-payir-0.3.tar.gz
  • Upload date:
  • Size: 9.4 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.3.tar.gz
Algorithm Hash digest
SHA256 9723d50b3c5d525b41bddef225be99155eeabe02cd7df12df09d253b1923ef1a
MD5 19d0ab76a8f6f1c83c08f1ed7c6c1e3a
BLAKE2b-256 8bd9c7aac00f171112e32d23f133de0d12b0b040355d3982a93d1ee3c93c2bd4

See more details on using hashes here.

File details

Details for the file django_payment_payir-0.3-py3-none-any.whl.

File metadata

  • Download URL: django_payment_payir-0.3-py3-none-any.whl
  • Upload date:
  • Size: 12.8 kB
  • Tags: Python 3
  • 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e915acd69cd1e765714262e745367f459305cc8229f70c36b6659e9b60ceff62
MD5 6c7d2b183513aef1b0e9e464f109d08e
BLAKE2b-256 67ea3e4abc729e8381928935791167af30a66c8b23a64a9774da5cfafbe9807a

See more details on using hashes here.

Supported by

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