Cash on delivery payment module for django-oscar
- Install:
pip install -e git+https://github.com/michaelkuty/django-oscar-cash-on-delivery#egg=cashondelivery - Add
cashondeliverytoINSTALLED_APPS - Add
cashondeliveryurls to project urls:
from cashondelivery.dashboard.app import application as cod_app
url(r'^dashboard/cod/', include(cod_app.urls)),- Add cashondelivery to dashboard navigation:
# settings
OSCAR_DASHBOARD_NAVIGATION = [
...
{
'label': _('Fulfilment'),
'icon': 'icon-shopping-cart',
'children': [
...
{
'label': _('COD transactions'),
'url_name': 'cashondelivery-transaction-list',
},
...
...- Use cashondelivery checkout app:
# file: <project>/checkout/app.py -- forked checkout app
# replace default checkout app with cashondelivery app
from oscar.apps.checkout import app
from cashondelivery.app import application as cod_app
app.application = cod_app- Or fork
django-oscarcheckout app and usePaymentDetailsViewfromsandbox/checkout/views.py:
# your checkout/app.py
from oscar.apps.checkout import app
from .views import PaymentDetailsView
class CheckoutApplication(app.CheckoutApplication):
payment_details_view = PaymentDetailsView
application = CheckoutApplication()