A simple Django app for easy payment via pay.ir .
Project description
# Django payment module for Pay.ir
[](https://travis-ci.org/rasooll/django-pay-ir)
[](https://coveralls.io/github/rasooll/django-pay-ir?branch=master)




## 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)
[](https://travis-ci.org/rasooll/django-pay-ir)
[](https://coveralls.io/github/rasooll/django-pay-ir?branch=master)




## 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django_payment_payir-0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e915acd69cd1e765714262e745367f459305cc8229f70c36b6659e9b60ceff62 |
|
MD5 | 6c7d2b183513aef1b0e9e464f109d08e |
|
BLAKE2b-256 | 67ea3e4abc729e8381928935791167af30a66c8b23a64a9774da5cfafbe9807a |