Metadata-Version: 1.1
Name: django-alipay2
Version: 0.7.0
Summary: alipay for django
Home-page: UNKNOWN
Author: Your Name
Author-email: yourname@example.com
License: BSD License
Description: ==============
        django-alipay2
        ==============
        
        提供django下alipay直接支付接口
        
        Quick start
        -----------
        1. Install::
        
            pip install django_alipay2
        
        2. Add "alipay" to your INSTALLED_APPS setting like this::
        
            INSTALLED_APPS = [
                ...
                'alipay',
            ]
        
        3. [Optional] Include the alipay URLconf in your project urls.py like this::
        
            url(r'^alipay/', include('alipay.urls')),
        
        4. Migrate::
        
            python manage.py migrate
        
        5. 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
            }
        
        6. Create alipay redirect::
        
            import uuid
            payment = AlipayPayment.objects.create(
                out_no=uuid.uuid4(),
                subject='充值',
                body='1年365元',
                amount_total=0.01,
                # reference_id='1' # 可选
            )
            return redirect('alipay_redirect', pk=payment.pk)
        
        
Platform: UNKNOWN
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Framework :: Django :: 1.10
Classifier: Framework :: Django :: 1.11
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
