Skip to main content

PayPal Payment Provider Integration for django-shop

Project description

# REST based PayPal Payment Provider Integration for django-shop

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


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