Your project description goes here
Project description
Your project description goes here
Quickstart
Install django-payments-przelewy24:
pip install django-payments-przelewy24
Add it to your INSTALLED_APPS:
from payments_przelewy24.config import Przelewy24Config
PAYMENT_VARIANTS = {
"przelewy24": (
"payments_przelewy24.provider.Przelewy24Provider",
{
"config": Przelewy24Config(
pos_id=123,
merchant_id=123,
crc="e34a1",
api_key="d876a3ba780cb",
sandbox=True
),
},
),
}
You can also use environment to configure provider:
from payments_przelewy24.config import Przelewy24Config
# PAYMENTS_P24_POS_ID=123
# PAYMENTS_P24_MERCHANT_ID=123
# PAYMENTS_P24_CRC=e34a1
# PAYMENTS_P24_API_KEY=d876a3ba780cb
# PAYMENTS_P24_SANDBOX=1
PAYMENT_VARIANTS = {
"przelewy24": (
"payments_przelewy24.provider.Przelewy24Provider",
{
"config": Przelewy24Config.from_env(),
},
),
}
Running Tests
Does the code actually work?
source <YOURVIRTUALENV>/bin/activate (myenv) $ pip install -r requirements_test.txt (myenv) $ pytest
Development commands
pip install -r requirements_dev.txt invoke -l
Documentation
Przelewy24 REST API
Credits
Tools used in rendering this package:
History
0.1.0 (2021-01-27)
First release on PyPI.
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
Built Distribution
Close
Hashes for django-payments-przelewy24-0.1.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e8ec1289d50a7df524a7aed9170ea47f136b4d085d6184d596a2ca10e78a458 |
|
MD5 | a2eee145f770ca9452aba4c707855004 |
|
BLAKE2b-256 | 4a3030492c975ad51c44e8ed420ad89cfb22c3b9bdddba926be7ce005dd228cb |
Close
Hashes for django_payments_przelewy24-0.1.7-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bdb0670070193515b98564efa42d44885e184a16a4bfa93072889d1beac4a68d |
|
MD5 | 4726d186be1b54bb45354b52d674027c |
|
BLAKE2b-256 | e2f10d2cb096fd259b90f713ee6d2d00f3d47a9d205136a5a1518d7906605778 |