Giter Site home page Giter Site logo

django-getpaid-payu's Introduction

django-getpaid-payu

Django-getpaid plugin for PayU service.

Note

This is Alpha-quality software. You are more than welcome to send PRs with fixes and new features.

Installation

First make sure that django-getpaid is installed and configured.

pip install django-getpaid-payu

This should pull django-getpaid in case it's not installed yet.

Configuration

Add "getpaid_payu" to your INSTALLED_APPS and add plugin configuration.

# settings.py

INSTALLED_APPS = [
    # ...
    "getpaid",
    "getpaid_payu",
]

GETPAID_BACKEND_SETTINGS = {
    "getpaid_payu": {
        # take these from your merchant panel:
        "pos_id": 12345,
        "second_key": "91ae651578c5b5aa93f2d38a9be8ce11",
        "oauth_id": 12345,
        "oauth_secret": "12f071174cb7eb79d4aac5bc2f07563f",
    },
    # ...
}

Note

If DEBUG setting is set to True, the plugin will use the sandbox API.

That should be enough to make your getpaid integration use new plugin and allow you to choose PayU for supported currencies.

Other settings

You can change additional settings for the plugin:

confirmation_method

  • PUSH - paywall will send status updates to the callback endpoint hence updating status automatically
  • PULL - each Payment has to be verified by calling its fetch_and_update_status(), eg. from a Celery task.

Default: PUSH

paywall_method

  • REST - payment will be created using REST api call to paywall
  • POST - an extra screen will be displayed with a confirmation button that will send all Payment params to paywall using POST. This is not recommended by PayU.

Licence

MIT

Authors

Dominik Kozaczko

django-getpaid-payu's People

Contributors

dekoza avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.