Skip to main content

PayPal Payment Provider Integration for django-shop

Project description

This integrates the PayPal for django-shop version 0.9 and above.

Installation

for django-shop version 0.9.x:

pip install djangoshop-paypal==0.1.4

for django-shop version 0.10.x:

pip install djangoshop-paypal==0.2.0

Configuration

In settings.py of the merchant’s project:

Add 'shop_paypal' to INSTALLED_APPS.

At PayPal create a business account and apply for the vendor credentials. For a testing account add them as:

SHOP_PAYPAL = {
    'API_ENDPOINT': 'https://api.sandbox.paypal.com',
    'MODE': 'sandbox',
    'CLIENT_ID': '<client-id-as-delivered-by-PayPal>',
    'CLIENT_SECRET': '<client-secret-as-delivered-by-PayPal>',
}

and for production:

SHOP_PAYPAL = {
    'API_ENDPOINT': 'https://api.paypal.com',
    'MODE': 'live',
    'CLIENT_ID': '<client-id-as-delivered-by-PayPal>',
    'CLIENT_SECRET': '<client-secret-as-delivered-by-PayPal>',
}

Add 'shop_paypal.modifiers.PaymentModifier' to the list of SHOP_CART_MODIFIERS.

Add 'shop_paypal.payment.OrderWorkflowMixin' to the list of SHOP_ORDER_WORKFLOWS.

When rendering the payment method form, “PayPal” shall appear in the list of possible payments.

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

djangoshop-paypal-0.2.0.tar.gz (5.9 kB view details)

Uploaded Source

File details

Details for the file djangoshop-paypal-0.2.0.tar.gz.

File metadata

File hashes

Hashes for djangoshop-paypal-0.2.0.tar.gz
Algorithm Hash digest
SHA256 29e6edcee90025c9c990d16177650e804b0351f460e86baaadae149bf00b17c6
MD5 6352076d32d505c59d212e315b2300a9
BLAKE2b-256 802d9a6106cca566797df5cbd833618ee4f5350a1ae49fc9a965ffc06c4882de

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page