Skip to main content
# MP-LiqPay

Django liqpay integration app.

### Installation

Install with pip:
```
$ pip install django-liqpay
```

App settings:
```
# REQUIRED:

# Public_key - the identifier of the created company. For example: i00000000
LIQPAY_PUBLIC_KEY = '*********'

# Private key of the created company (not available to anyone except your developer).
# For example: a4825234f4bae72a0be04eafe9e8e2bada209255
LIQPAY_PRIVATE_KEY = '***********************************'

# OPTIONAL:

# Payment currency. Example value: USD, EUR, RUB, UAH, BYN, KZT.
# Additional currencies can be added by company's request.
# Default: UAH
LIQPAY_DEFAULT_CURRENCY = '***'

# Language code
# Default: uk
LIQPAY_DEFAULT_LANGUAGE = '**'

# Transaction type. Possible values: pay - payment, hold - amount of hold on sender's account,
# subscribe - regular payment, paydonate - donation, auth - card preauth
# Default: pay
LIQPAY_DEFAULT_ACTION = '***'
```

## Usage example
views.py
```
checkout_form = liqpay.get_checkout_form(
amount=12.4,
order_id=1,
description=_('Provision of services'),
result_url='http://example.com',
server_url='http://example.com',
language='en'
)
```

get_checkout_form method params:
* public_key: str, required
* amount: float, required
* description: str, required
* order_id: str, required
* result_url: url, str, required
* server_url: url, str, required

* version: integer, optional, default - 3
* action: str, optional, default - 'pay'
* currency: str, optional, default - 'UAH'
* language: str, optional, default - 'uk'

template.html
```
<form action="{{ checkout_form.action }}" method="{{ checkout_form.method }}" target="_blank">
{{ checkout_form }}
<button type="submit" class="btn btn-success pull-left">
<i class="fa fa-credit-card"></i>
{% trans 'Pay' %}
</button>
</form>
```

### Requirements

App require this packages:
* django

Metadata

Release files for django-liqpay 1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-liqpay 1.1
File Size Uploaded Provenance
django-liqpay-1.1.tar.gz 4.2 kB Without provenance Details

Release files / django-liqpay-1.1.tar.gz

Download URL django-liqpay-1.1.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e1eea03a25442f0a6e9f2403125461314de56141a808a9d524cd78a78497b8d5
BLAKE2b-256 checksum
How to use checksums
a7c290590877b45225a468bdc7ed6c3b04ce8eea77b08dd21df4d25522f5cfa5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-liqpay 1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

1.1 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page