Skip to main content

A quick package for integrating Vnpay payment gateway.

Project description

Django-vnpay

A quick package for integrating Vnpay payment gateway. Version 0.0.9

Quick start

  1. Add "vnpay" to INSTALLED_APPS in setting.py
INSTALLED_APPS = [
    ...
    'vnpay',
]
  1. 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')
  1. Include the vnpay URLconf in your project urls.py
path('vnpay/', include('vnpay.api_urls')),
  1. Run python manage.py migrate to create related models

  2. 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

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-vnpay-0.0.9.tar.gz (14.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_vnpay-0.0.9-py3-none-any.whl (20.8 kB view details)

Uploaded Python 3

File details

Details for the file django-vnpay-0.0.9.tar.gz.

File metadata

  • Download URL: django-vnpay-0.0.9.tar.gz
  • Upload date:
  • Size: 14.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for django-vnpay-0.0.9.tar.gz
Algorithm Hash digest
SHA256 b47b57da654abee146310d21a674bd649082777134a019521c9d7ce6fbe8f8d5
MD5 7b43c5ac7f190dcfa6648e38b66c6ec3
BLAKE2b-256 25a7f636751ab8aa6497c8ace7a47bf135e5166cb9c33a4041cef458de82bd6a

See more details on using hashes here.

File details

Details for the file django_vnpay-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: django_vnpay-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 20.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for django_vnpay-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 aeab3d814b2b062de9f7325a0b1d361a974aef0caab1ffcf579a683827cf99c9
MD5 1a9f32267f057fd3cae64b4f37b522b7
BLAKE2b-256 2a040abbafa8e13dd502abca7400fbf38954d596fb47b4fcffa0c748871d88b8

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