alipay for django
Project description
提供qrcode相关的filter和view,用pillow在本地生成
Quick start
Install:
pip install django_alipay2
Add “alipay” to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [ ... 'alipay', ][Optional] Include the polls URLconf in your project urls.py like this:
url(r'^alipay/', include('alipay.urls')),Migrate
python manage.py migrate
Add config ‘ALIPAY’ to settings.py like this:
ALIPAY = { 'sandbox': true, # use sandbox client if true 'pid': 'real alipay pid', 'key': 'real alipay key', 'seller': 'your_seller_email@domain.com', 'gateway': 'https://mapi.alipay.com/gateway.do?', 'SERVER_URL': 'http://my.server.com', # for alipay return and notify }[Optional] Run sample:
use port 8000 to runserver
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
django-alipay2-0.1.0.tar.gz
(8.8 kB
view details)
File details
Details for the file django-alipay2-0.1.0.tar.gz.
File metadata
- Download URL: django-alipay2-0.1.0.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd6cbe4fb64f28645f1ec276b567b81a8891344e04adaf727a3baa9a48d1f711
|
|
| MD5 |
a0158204fa69d5689250719785518828
|
|
| BLAKE2b-256 |
f8cfa4c2044f56158931e5dda119c9c4fc5ca8539ffc086f063d9be062677891
|