Skip to main content

Django-GetPaid plugin for PayU service.

Project description

Latest PyPI version https://github.com/django-getpaid/django-getpaid-payu/actions/workflows/run_tox.yml/badge.svg https://img.shields.io/pypi/wheel/django-getpaid-payu.svg https://img.shields.io/pypi/l/django-getpaid-payu.svg

django-getpaid-payu

Django-getpaid plugin for PayU service.

Installation

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

Then, simply install the plugin:

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",
    },
    # ...
}

That should be enough to make your django-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

Project details


Download files

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

Source Distribution

django-getpaid-payu-0.2.1.tar.gz (12.8 kB view hashes)

Uploaded source

Built Distribution

django_getpaid_payu-0.2.1-py3-none-any.whl (13.0 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page