glad to hear that.
After it's quiet straightforward :)
In the settings file:
INSTALLED_APPS = [
...
# Paypal
'paypal.express.dashboard.apps.ExpressDashboardApplication',
'paypal.express_checkout.dashboard.apps.ExpressCheckoutDashboardApplication',
'paypal.payflow.dashboard.apps.PayFlowDashboardApplication',
....
'django.contrib.sitemaps',
'paypal',
and also:
from django.utils.translation import ugettext_lazy as _
OSCAR_DASHBOARD_NAVIGATION.append(
{
'label': _('PayPal'),
'icon': 'icon-globe',
'children': [
{
'label': _('PayFlow transactions'),
'url_name': 'payflow_dashboard:paypal-payflow-list',
},
{
'label': _('Express transactions'),
'url_name': 'express_dashboard:paypal-express-list',
},
{
'label': _('Express Checkout transactions'),
'url_name': 'express_checkout_dashboard:paypal-transaction-list',
},
]
})
PAYPAL_SANDBOX_MODE = True
PAYPAL_CALLBACK_HTTPS = False
PAYPAL_API_VERSION = '119'
PAYPAL_CURRENCY = 'EUR'
makemigrations + migrate
In the urls file:
1. add the import
from paypal.express.dashboard.apps import ExpressDashboardApplication
2. update the urls
# PayPal Express integration...
path('checkout/paypal/', include('paypal.express_checkout.urls')),
# Dashboard views for Payflow Pro
path('dashboard/paypal/payflow/', apps.get_app_config("payflow_dashboard").urls),
# Dashboard views for Express
path('dashboard/paypal/express/', apps.get_app_config("express_dashboard").urls),
# Dashboard views for Express Checkout
path('dashboard/paypal/express-checkout/', apps.get_app_config('express_checkout_dashboard').urls),
In the settings, you need to configure your paypal account: login into Payapal development dashboard: create a sandbox api
Copy from the user the PAYPAL_CLIENT_ID and PAYPAL_CLIENT_SECRET
As I wrote in my previous answer, change the length of the status and again makemigrations + migrate
Hope it will save you some time.