payu payment gateway integration for django projects

Overview

Django-PayU

http://travis-ci.org/MicroPyramid/django-payu.svg?branch=master https://coveralls.io/repos/github/MicroPyramid/django-payu/badge.svg?branch=master Code Health

This package provides integration between Django and PayU Payment Gateway.

Quick start

  1. Install 'django-payu' using the following command:

    pip install django-payu
    
  2. Add "payu" to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [
        ....
        ....
        'payu',
    ]
    
  3. Add the following settings in the setting file using the details from your PayU account:

    PAYU_MERCHANT_KEY = "Your MerchantID",
    
    PAYU_MERCHANT_SALT = "Your MerchantSALT",
    
    # And add the PAYU_MODE to 'TEST' for testing and 'LIVE' for production.
    PAYU_MODE = "TEST"
    
  4. Finally, run the following commands:

    python manage.py migrate
    
  5. Run the tests:

    python test_runner.py  test -v 2
    

Visit our Django E-commerce Development page Here

For additional help you can Contact us here

Comments
  • Django 1.9.2 integration required

    Django 1.9.2 integration required

    $ ./manage.py makemigrations payu Traceback (most recent call last): File "./manage.py", line 10, in execute_from_command_line(sys.argv) File "/home/qsslp182/Desktop/pp/local/lib/python2.7/site-packages/django/core/management/init.py", line 353, in execute_from_command_line utility.execute() File "/home/qsslp182/Desktop/pp/local/lib/python2.7/site-packages/django/core/management/init.py", line 327, in execute django.setup() File "/home/qsslp182/Desktop/pp/local/lib/python2.7/site-packages/django/init.py", line 18, in setup apps.populate(settings.INSTALLED_APPS) File "/home/qsslp182/Desktop/pp/local/lib/python2.7/site-packages/django/apps/registry.py", line 85, in populate app_config = AppConfig.create(entry) File "/home/qsslp182/Desktop/pp/local/lib/python2.7/site-packages/django/apps/config.py", line 90, in create module = import_module(entry) File "/usr/lib/python2.7/importlib/init.py", line 37, in import_module import(name) File "/home/qsslp182/Desktop/pp/local/lib/python2.7/site-packages/payu/init.py", line 1, in from gateway import * File "/home/qsslp182/Desktop/pp/local/lib/python2.7/site-packages/payu/gateway.py", line 1, in from models import Transaction, CancelRefundCaptureRequests File "/home/qsslp182/Desktop/pp/local/lib/python2.7/site-packages/payu/models.py", line 6, in class Transaction(models.Model): File "/home/qsslp182/Desktop/pp/local/lib/python2.7/site-packages/django/db/models/base.py", line 94, in new app_config = apps.get_containing_app_config(module) File "/home/qsslp182/Desktop/pp/local/lib/python2.7/site-packages/django/apps/registry.py", line 239, in get_containing_app_config self.check_apps_ready() File "/home/qsslp182/Desktop/pp/local/lib/python2.7/site-packages/django/apps/registry.py", line 124, in check_apps_ready raise AppRegistryNotReady("Apps aren't loaded yet.") django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet.


    Getting this error if I integrated this in my environment. For testing I removed the line in init.py and after migrations I replaced them again.

    opened by omkar1117 1
  • circular import, can you fix it?

    circular import, can you fix it?

    https://dpaste.de/6DM3

    (shop) E:\test\theme2>python manage.py makemigrations Traceback (most recent call last): File "manage.py", line 10, in execute_from_command_line(sys.argv) File "C:\Users\Sony\Envs\shop\lib\site-packages\django\core\management__init_ .py", line 353, in execute_from_command_line utility.execute() File "C:\Users\Sony\Envs\shop\lib\site-packages\django\core\management__init .py", line 327, in execute django.setup() File "C:\Users\Sony\Envs\shop\lib\site-packages\django__init_.py", line 18, in setup apps.populate(settings.INSTALLED_APPS) File "C:\Users\Sony\Envs\shop\lib\site-packages\django\apps\registry.py", line 85, in populate app_config = AppConfig.create(entry) File "C:\Users\Sony\Envs\shop\lib\site-packages\django\apps\config.py", line 9 0, in create module = import_module(entry) File "c:\python27\Lib\importlib__init__.py", line 37, in import_module import(name) File "C:\Users\Sony\Envs\shop\lib\site-packages\payu__init__.py", line 1, in from gateway import * File "C:\Users\Sony\Envs\shop\lib\site-packages\payu\gateway.py", line 1, in < module> from models import Transaction, CancelRefundCaptureRequests File "C:\Users\Sony\Envs\shop\lib\site-packages\payu\models.py", line 6, in class Transaction(models.Model): File "C:\Users\Sony\Envs\shop\lib\site-packages\django\db\models\base.py", lin e 94, in new app_config = apps.get_containing_app_config(module) File "C:\Users\Sony\Envs\shop\lib\site-packages\django\apps\registry.py", line 239, in get_containing_app_config self.check_apps_ready() File "C:\Users\Sony\Envs\shop\lib\site-packages\django\apps\registry.py", line 124, in check_apps_ready raise AppRegistryNotReady("Apps aren't loaded yet.") django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet.

    (shop) E:\test\theme2>

    opened by oaulakh 1
  • Adding Django 3.0 and 4.0 for django-payu in pypi.org

    Adding Django 3.0 and 4.0 for django-payu in pypi.org

    please try to add Django 4.0 compatibility, for django-payu , it helps us a lot in updating our application

    and make these change in pip https://pypi.org/project/django-payu/

    opened by Lakshmikanth2001 0
  • Add sample application

    Add sample application

    The package looks good but how I need to use this package in the Django application ( how to pass the parameters, please elaborate the parameters which you are using for the integration), the documentation says like install add the three parameters in settings.py file and make migrate command, please try to add the sample application with this awesome package

    opened by renjithsraj 0
  • Django 1.9 or 1.10

    Django 1.9 or 1.10

    Migrations are not performing.

    Added 'payu' in settings file.

    /Desktop/ptest$ pip freeze Django==1.10 argparse==1.2.1 django-payu==0.2 wsgiref==0.1.2

    Desktop/ptest$ ./manage.py migrate payu CommandError: App 'payu' does not have migrations.

    opened by omkar1117 0
  • ERROR: django-payu 0.5 has requirement django<=2.0.2,>=1.7, but you'll have django 3.2.5 which is incompatible.

    ERROR: django-payu 0.5 has requirement django<=2.0.2,>=1.7, but you'll have django 3.2.5 which is incompatible.

    django-payu 0.5 is not working with django==3.2.5 version. Kindly check & update ASAP.

    ERROR: django-payu 0.5 has requirement django<=2.0.2,>=1.7, but you'll have django 3.2.5 which is incompatible.

    opened by manish2507 0
  • KeyError: ('payu', 'nonseamlesstransaction')

    KeyError: ('payu', 'nonseamlesstransaction')

    After installing django-payu in my virtual environment and adding it into INSTALLED_APPS section, when I execute command python3 manage.py migrate I get the following error:

    Operations to perform: Apply all migrations: address, admin, analytics, auth, basket, catalogue, contenttypes, customer, flatpages, offer, order, partner, payment, payu, reviews, sessions, shipping, sites, thumbnail, voucher, wishlists Running migrations: Applying payu.0002_nonseamlesstransaction_basket...Traceback (most recent call last): File "manage.py", line 21, in main() File "manage.py", line 17, in main execute_from_command_line(sys.argv) File "/home/cypher/Desktop/environments/lib/python3.6/site-packages/django/core/management/init.py", line 371, in execute_from_command_line utility.execute() File "/home/cypher/Desktop/environments/lib/python3.6/site-packages/django/core/management/init.py", line 365, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/home/cypher/Desktop/environments/lib/python3.6/site-packages/django/core/management/base.py", line 288, in run_from_argv self.execute(*args, **cmd_options) File "/home/cypher/Desktop/environments/lib/python3.6/site-packages/django/core/management/base.py", line 335, in execute output = self.handle(*args, **options) File "/home/cypher/Desktop/environments/lib/python3.6/site-packages/django/core/management/commands/migrate.py", line 200, in handle fake_initial=fake_initial, File "/home/cypher/Desktop/environments/lib/python3.6/site-packages/django/db/migrations/executor.py", line 117, in migrate state = self._migrate_all_forwards(state, plan, full_plan, fake=fake, fake_initial=fake_initial) File "/home/cypher/Desktop/environments/lib/python3.6/site-packages/django/db/migrations/executor.py", line 147, in _migrate_all_forwards state = self.apply_migration(state, migration, fake=fake, fake_initial=fake_initial) File "/home/cypher/Desktop/environments/lib/python3.6/site-packages/django/db/migrations/executor.py", line 244, in apply_migration state = migration.apply(state, schema_editor) File "/home/cypher/Desktop/environments/lib/python3.6/site-packages/django/db/migrations/migration.py", line 112, in apply operation.state_forwards(self.app_label, project_state) File "/home/cypher/Desktop/environments/lib/python3.6/site-packages/django/db/migrations/operations/fields.py", line 70, in state_forwards state.models[app_label, self.model_name_lower].fields.append((self.name, field)) KeyError: ('payu', 'nonseamlesstransaction')

    opened by MsMansiDhruv 0
  • hash generation issue

    hash generation issue

    The get_hash() function is not proper. It is supposed to apply sha512 to the entire string, but instead it is now applying it to the 'PAYU_MERCHANT_KEY ' only. https://github.com/MicroPyramid/django-payu/blob/master/payu/gateway.py#L21

    opened by sandeepbalagopal09 1
Releases(0.5)
Owner
MicroPyramid
Python, django, AWS, devops, reactjs, Salesforce consulting company.
MicroPyramid
payu payment gateway integration for django projects

Django-PayU This package provides integration between Django and PayU Payment Gateway. Quick start Install 'django-payu' using the following command:

MicroPyramid 37 Nov 09, 2022
Django library to simplify payment processing with pin

Maintainer Wanted I no longer have any side projects that use django-pinpayments and I don't have the time or headspace to maintain an important proje

Ross Poulton 25 May 25, 2022
A Django app to accept payments from various payment processors via Pluggable backends.

Django-Merchant Django-Merchant is a django application that enables you to use multiple payment processors from a single API. Gateways Following gate

Agiliq 997 Dec 24, 2022
A pluggable Django application for integrating PayPal Payments Standard or Payments Pro

Django PayPal Django PayPal is a pluggable application that integrates with PayPal Payments Standard and Payments Pro. See https://django-paypal.readt

Luke Plant 672 Dec 22, 2022
Forms, widgets, template tags and examples that make Stripe + Django easier.

Overview Zebra is a library that makes using Stripe with Django even easier. It's made of: zebra, the core library, with forms, webhook handlers, abst

GoodCloud 189 Jan 01, 2023
PayPal integration for django-oscar. Can be used without Oscar too.

PayPal package for django-oscar This package provides integration between django-oscar and both PayPal REST API, PayPal Express (NVP) and PayPal Payfl

Oscar 146 Nov 25, 2022
Adyen package for django-oscar

Adyen package for django-oscar This package provides integration with the Adyen payment gateway. It is designed to work with the e-commerce framework

Oscar 13 Jan 10, 2022
Django + Stripe Made Easy

dj-stripe Stripe Models for Django. Introduction dj-stripe implements all of the Stripe models, for Django. Set up your webhook endpoint and start rec

dj-stripe 1.3k Dec 28, 2022