Metadata-Version: 1.1
Name: django-paypal2
Version: 0.1.0
Summary: paypal for django
Home-page: UNKNOWN
Author: nbweiju
Author-email: developer@weiju.net
License: BSD License
Description: ==============
        django-paypal2
        ==============
        
        提供paypal支付相关的view和方法
        
        Quick start
        -----------
        1. Install::
        
            pip install django_paypal2
        
        
        2. Add "paypal" to your INSTALLED_APPS setting like this::
        
            INSTALLED_APPS = [
                ...
                'paypal',
            ]
        
        3. Add paypal config to settings.py::
        
            PAYPAL = {
                "SERVER_URL": "http://localhost:8000", # current site host and port
                "mode": "sandbox",  # sandbox or live
                "client_id": "xxx",
                "client_secret": "", # you can get id and secret from paypal
            }
        
        4. Include the polls URLconf in your project urls.py like this::
        
            url(r'^paypal/', include('paypal.urls')),
        
        5. Migrate db
        
        
        5. Create transaction and redirect to paypal ::
        
            from paypal.models import PaypalTransaction
        
            tx = PaypalTransaction(description="sample pay")
            tx.add_item("sample", 'USD', float(amount))
            tx.reference_id = "your reference id"
            tx.save()
            return redirect('paypal_redirect', pk=tx.pk)
        
        
Platform: UNKNOWN
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Framework :: Django :: 1.10
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
