A quick package for integrating Vnpay payment gateway.
Project description
Django-vnpay
A quick package for integrating Vnpay payment gateway.
Version 0.0.14
Quick start
- Add "vnpay" to INSTALLED_APPS in
setting.py
INSTALLED_APPS = [
...
'vnpay',
]
- Add env variable in
settings.py
VNPAY_TMN_CODE = env('VNPAY_TMN_CODE')
VNPAY_HASH_SECRET_KEY = env('VNPAY_HASH_SECRET_KEY')
VNPAY_PAYMENT_URL = env('VNPAY_PAYMENT_URL')
VNPAY_RETURN_URL = env('VNPAY_RETURN_URL')
- Include the vnpay URLconf in your project urls.py
path('vnpay/', include('vnpay.api_urls')),
-
Run
python manage.py migrateto create related models -
Start the development server and visit http://127.0.0.1:8000/
http://127.0.0.1:8000/admin/ to see the Billing
http://127.0.0.1:8000/vnpay/ to see the urls
Usage
- Call api
payment_url
- It will create billing
- It will return url to pay
- User pay with payment_url
- Vnpay will return result to
- api
payment_ipn - api
payment_return
Note: Give the api payment_ipn and payment_return to VNPAY support.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django-vnpay-0.0.14.tar.gz.
File metadata
- Download URL: django-vnpay-0.0.14.tar.gz
- Upload date:
- Size: 15.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
29cf3ad2d1cd4ca08185d197044e7844ae6626acc8d0782df89c73c7b7d81f52
|
|
| MD5 |
0024fbd95ae3824c18034a01d1eb6469
|
|
| BLAKE2b-256 |
03634c9671dcdf324c14a193307fedb599e489e440b8bae0bc3872e8b187f5c2
|
File details
Details for the file django_vnpay-0.0.14-py3-none-any.whl.
File metadata
- Download URL: django_vnpay-0.0.14-py3-none-any.whl
- Upload date:
- Size: 22.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9f651af82f4b3d6fee33e2ac46d565e678134d03b57ad61ec2c024ab2f9adaf1
|
|
| MD5 |
294963e16e11480f561b6f74ecdae191
|
|
| BLAKE2b-256 |
b6bf5ad7b3e9e4574512b96074d2616a08414fe582e2d2d18e66165b2f1944d2
|