Skip to main content

PayPal Payment Provider Integration for django-shop

Project description

This integration only works for django-shop version 0.3 and above.

Installation

In settings.py add 'shop_paypal' to INSTALLED_APPS.

In settings.py add

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

In settings.py add 'shop_paypal.payment.PaymentModifier' to SHOP_CART_MODIFIERS.

In settings.py add 'shop_paypal.payment.OrderWorkflowMixin' to SHOP_ORDER_WORKFLOWS.

This will add a list item for PayPal to the select fields, when chosing the payment method.

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.1.3.tar.gz (5.8 kB view hashes)

Uploaded Source

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