Skip to main content

payu payment gateway package for python and django

Project description

Django Payubiz

Python Package for PayuBiz Payment Gateway for Django Based Applications.

Developer ![#f03c15]

These packages in the developement stage, its cool package for the payu payment gateway.

payu_biz is wrapper for payubiz payment gateway for django based web application. I can see the internet many of the developers are asking about following doubts.

1. Getting error while creatig hash value
2. Redirection is not happening
3. transaction failure


Install django_payubiz from PYPI repository or clone the package from the
[django_payubiz repo](

pip install payu_biz

Step 1 :

Include the `payu_biz` package in to the INSTALLED_APPS

'payu_biz' ## Package

Include payu_biz urls in your project(project/

urlpatterns = patterns('',
# Examples:
url(r'^$', 'home.views.home', name='home'),
url(r'^', include('payu_biz.urls')),

Step 2:

Add following parameters in the project
Note : For the Testing purpose you don't need to include these parameters in the projects.

The value should be one of the items from the list ['production', 'test']
PAYMENT_MODE = "production" ` `default will be "test"`

merchant_key from payu. default value will be included builtin in the package.
MERCHANT_KEY = "xxxxxxxx"

merchant_salt from payu. default value will be included builtin in the package.
MERCHANT_SALT = "xxxxxxxx"

Where to redirect while transaction is succeeded.
SUCCESS_URL = "" ` `default will be ""

Where to redirect while transaction got failure.
FAILURE_URL = "" ` `default will be ""

Where to redirect while transaction got canceld
CANCEL_URL = "" ` `default will be ""


payu_biz integration in your project.Add following snippts in your

`from payu_biz.views import make_transaction
`def home(request):
""" DO your stuffs here and create a dictionary (key,value pair) """
cleaned_data = {
'txnid': "aaaaassss", 'amount': 450000, 'productinfo': "sample_produ",
'firstname':"renjith", 'email': "", 'udf1': '',
'udf2': '', 'udf3': '', 'udf4': '', 'udf5': '', 'udf6': '', 'udf7': '',
'udf8': '', 'udf9': '', 'udf10': '','phone':"9746272610"
""" Payment gate calling with provided data dict """
return make_transaction(cleaned_data)


The following keys must be there in your `cleaned_data` dict

* txnid - Unique
* amount
* productinfo - small description
* firstname - user firstname
* email - user email id (Payu will send the transaction details with this mail)
* phone -
* udf1 - udf10 - Chumma(Just simply if you want to add any details you can add)

1. Verify Payment
2. Check Payment
3. Capture Transaction
4. Refund Transaction
5. Cancel Transaction
6. Cancel Refund Transaction
7. Check Action Status

More details :

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
payu_biz-2.0.tar.gz (5.0 kB) Copy SHA256 hash SHA256 Source None Apr 1, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page