Skip to content

dionysio/django-oscar-payu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-oscar-payu

Following are the configurations required for setting up django-oscar-payu

Installation

pip install django-oscar-payu

Getting Started

Add payu to installed apps.

Add the following to the setting.py file of your django-oscar setup:

PAYU_INFO = {
    'INR': {
        'merchant_key': "gtKFFx",
        'merchant_salt': "eCwWELxi",
        # for production environment use 'https://secure.payu.in/_payment'
        'payment_url': 'https://test.payu.in/_payment',
    }
}

Run migration: use python manage.py migrate.

Add following to the dashboard navigation:

OSCAR_DASHBOARD_NAVIGATION += [{
    'label': _('Payments'),
    'icon': 'icon-globe',
    'children': [
        {
            'label': _('Paypal Express transactions'),
            'url_name': 'paypal-express-list',
        },
        {
            'label': _('Payu transactions'),
            'url_name': 'payu-nonseamless-list',
        },
        {
            'label': _('COD Transaction Lists'),
            'url_name': 'cashondelivery-transaction-list',
        },
    ]
}]

Add PayU urls to url.py file:

from payu.nonseamless.dashboard.app import application as payu

urlpatterns = [
    url(r'^dashboard/payu/', include(payu.urls)),
]

About

Add PayU support for Oscar django domain-driven e-commerce.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published