Skip to main content

paypal for django

Project description


Quick start

  1. Install:

    pip install django_paypal2
  2. Add “paypal” to your INSTALLED_APPS setting like this:

  3. Add paypal config to

    PAYPAL = {
        "SERVER_URL": "http://localhost:8000", # current site host and port
        "sandbox": False,  # True or False
        "client_id": "xxx",
        "client_secret": "", # you can get id and secret from paypal
  4. Include the polls URLconf in your project like this:

    url(r'^paypal/', include('paypal.urls')),
  5. Migrate db

  6. Create payment and redirect to paypal

    from paypal.models import PaypalPayment
    pp = PaypalPayment(description="sample pay")
    pp.add_item("sample", 'USD', float(amount))
    pp.reference_id = "your reference id"
    return redirect('paypal_redirect', uid=pp.uid)

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-paypal2, version 1.0.2
Filename, size File type Python version Upload date Hashes
Filename, size django-paypal2-1.0.2.tar.gz (11.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page