python-getpaid-payu 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. python_getpaid_payu-0.1.0/.gitignore +20 -0
  2. python_getpaid_payu-0.1.0/.pre-commit-config.yaml +15 -0
  3. python_getpaid_payu-0.1.0/.python-version +1 -0
  4. python_getpaid_payu-0.1.0/.readthedocs.yml +12 -0
  5. python_getpaid_payu-0.1.0/CODE_OF_CONDUCT.md +132 -0
  6. python_getpaid_payu-0.1.0/CONTRIBUTING.md +61 -0
  7. python_getpaid_payu-0.1.0/LICENSE +21 -0
  8. python_getpaid_payu-0.1.0/PKG-INFO +152 -0
  9. python_getpaid_payu-0.1.0/README.md +128 -0
  10. python_getpaid_payu-0.1.0/docs/changelog.md +22 -0
  11. python_getpaid_payu-0.1.0/docs/codeofconduct.md +2 -0
  12. python_getpaid_payu-0.1.0/docs/concepts.md +150 -0
  13. python_getpaid_payu-0.1.0/docs/conf.py +29 -0
  14. python_getpaid_payu-0.1.0/docs/configuration.md +90 -0
  15. python_getpaid_payu-0.1.0/docs/contributing.md +2 -0
  16. python_getpaid_payu-0.1.0/docs/getting-started.md +115 -0
  17. python_getpaid_payu-0.1.0/docs/index.md +17 -0
  18. python_getpaid_payu-0.1.0/docs/license.md +7 -0
  19. python_getpaid_payu-0.1.0/docs/reference.md +25 -0
  20. python_getpaid_payu-0.1.0/docs/requirements.txt +3 -0
  21. python_getpaid_payu-0.1.0/pyproject.toml +109 -0
  22. python_getpaid_payu-0.1.0/src/getpaid_payu/__init__.py +12 -0
  23. python_getpaid_payu-0.1.0/src/getpaid_payu/client.py +653 -0
  24. python_getpaid_payu-0.1.0/src/getpaid_payu/processor.py +287 -0
  25. python_getpaid_payu-0.1.0/src/getpaid_payu/py.typed +0 -0
  26. python_getpaid_payu-0.1.0/src/getpaid_payu/types.py +450 -0
  27. python_getpaid_payu-0.1.0/tests/__init__.py +0 -0
  28. python_getpaid_payu-0.1.0/tests/conftest.py +143 -0
  29. python_getpaid_payu-0.1.0/tests/test_callback.py +290 -0
  30. python_getpaid_payu-0.1.0/tests/test_client.py +762 -0
  31. python_getpaid_payu-0.1.0/tests/test_processor.py +449 -0
  32. python_getpaid_payu-0.1.0/tests/test_types.py +79 -0
  33. python_getpaid_payu-0.1.0/uv.lock +929 -0
@@ -0,0 +1,20 @@
1
+ # Python-generated files
2
+ __pycache__/
3
+ *.py[oc]
4
+ build/
5
+ dist/
6
+ wheels/
7
+ *.egg-info
8
+
9
+ # Virtual environments
10
+ .venv
11
+
12
+ # Coverage
13
+ .coverage
14
+ htmlcov/
15
+
16
+ # Implementation plans (local only)
17
+ .plans/
18
+
19
+ # Sphinx build output
20
+ docs/_build/
@@ -0,0 +1,15 @@
1
+ repos:
2
+ - repo: https://github.com/pre-commit/pre-commit-hooks
3
+ rev: v5.0.0
4
+ hooks:
5
+ - id: trailing-whitespace
6
+ - id: end-of-file-fixer
7
+ - id: check-yaml
8
+ - id: check-added-large-files
9
+
10
+ - repo: https://github.com/astral-sh/ruff-pre-commit
11
+ rev: v0.11.12
12
+ hooks:
13
+ - id: ruff
14
+ args: [--fix]
15
+ - id: ruff-format
@@ -0,0 +1 @@
1
+ 3.12
@@ -0,0 +1,12 @@
1
+ version: 2
2
+ build:
3
+ os: ubuntu-24.04
4
+ tools:
5
+ python: "3.12"
6
+ sphinx:
7
+ configuration: docs/conf.py
8
+ formats: all
9
+ python:
10
+ install:
11
+ - requirements: docs/requirements.txt
12
+ - path: .
@@ -0,0 +1,132 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our
6
+ community a harassment-free experience for everyone, regardless of age, body
7
+ size, visible or invisible disability, ethnicity, sex characteristics, gender
8
+ identity and expression, level of experience, education, socio-economic status,
9
+ nationality, personal appearance, race, caste, color, religion, or sexual
10
+ identity and orientation.
11
+
12
+ We pledge to act and interact in ways that contribute to an open, welcoming,
13
+ diverse, inclusive, and healthy community.
14
+
15
+ ## Our Standards
16
+
17
+ Examples of behavior that contributes to a positive environment for our
18
+ community include:
19
+
20
+ - Demonstrating empathy and kindness toward other people
21
+ - Being respectful of differing opinions, viewpoints, and experiences
22
+ - Giving and gracefully accepting constructive feedback
23
+ - Accepting responsibility and apologizing to those affected by our mistakes,
24
+ and learning from the experience
25
+ - Focusing on what is best not just for us as individuals, but for the overall
26
+ community
27
+
28
+ Examples of unacceptable behavior include:
29
+
30
+ - The use of sexualized language or imagery, and sexual attention or advances of
31
+ any kind
32
+ - Trolling, insulting or derogatory comments, and personal or political attacks
33
+ - Public or private harassment
34
+ - Publishing others' private information, such as a physical or email address,
35
+ without their explicit permission
36
+ - Other conduct which could reasonably be considered inappropriate in a
37
+ professional setting
38
+
39
+ ## Enforcement Responsibilities
40
+
41
+ Community leaders are responsible for clarifying and enforcing our standards of
42
+ acceptable behavior and will take appropriate and fair corrective action in
43
+ response to any behavior that they deem inappropriate, threatening, offensive,
44
+ or harmful.
45
+
46
+ Community leaders have the right and responsibility to remove, edit, or reject
47
+ comments, commits, code, wiki edits, issues, and other contributions that are
48
+ not aligned to this Code of Conduct, and will communicate reasons for moderation
49
+ decisions when appropriate.
50
+
51
+ ## Scope
52
+
53
+ This Code of Conduct applies within all community spaces, and also applies when
54
+ an individual is officially representing the community in public spaces.
55
+ Examples of representing our community include using an official e-mail address,
56
+ posting via an official social media account, or acting as an appointed
57
+ representative at an online or offline event.
58
+
59
+ ## Enforcement
60
+
61
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
62
+ reported to the community leaders responsible for enforcement at
63
+ [dominik@kozaczko.info](mailto:dominik@kozaczko.info).
64
+ All complaints will be reviewed and investigated promptly and fairly.
65
+
66
+ All community leaders are obligated to respect the privacy and security of the
67
+ reporter of any incident.
68
+
69
+ ## Enforcement Guidelines
70
+
71
+ Community leaders will follow these Community Impact Guidelines in determining
72
+ the consequences for any action they deem in violation of this Code of Conduct:
73
+
74
+ ### 1. Correction
75
+
76
+ **Community Impact**: Use of inappropriate language or other behavior deemed
77
+ unprofessional or unwelcome in the community.
78
+
79
+ **Consequence**: A private, written warning from community leaders, providing
80
+ clarity around the nature of the violation and an explanation of why the
81
+ behavior was inappropriate. A public apology may be requested.
82
+
83
+ ### 2. Warning
84
+
85
+ **Community Impact**: A violation through a single incident or series of
86
+ actions.
87
+
88
+ **Consequence**: A warning with consequences for continued behavior. No
89
+ interaction with the people involved, including unsolicited interaction with
90
+ those enforcing the Code of Conduct, for a specified period of time. This
91
+ includes avoiding interactions in community spaces as well as external channels
92
+ like social media. Violating these terms may lead to a temporary or permanent
93
+ ban.
94
+
95
+ ### 3. Temporary Ban
96
+
97
+ **Community Impact**: A serious violation of community standards, including
98
+ sustained inappropriate behavior.
99
+
100
+ **Consequence**: A temporary ban from any sort of interaction or public
101
+ communication with the community for a specified period of time. No public or
102
+ private interaction with the people involved, including unsolicited interaction
103
+ with those enforcing the Code of Conduct, is allowed during this period.
104
+ Violating these terms may lead to a permanent ban.
105
+
106
+ ### 4. Permanent Ban
107
+
108
+ **Community Impact**: Demonstrating a pattern of violation of community
109
+ standards, including sustained inappropriate behavior, harassment of an
110
+ individual, or aggression toward or disparagement of classes of individuals.
111
+
112
+ **Consequence**: A permanent ban from any sort of public interaction within the
113
+ community.
114
+
115
+ ## Attribution
116
+
117
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118
+ version 2.1, available at
119
+ [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
120
+
121
+ Community Impact Guidelines were inspired by
122
+ [Mozilla's code of conduct enforcement ladder][mozilla coc].
123
+
124
+ For answers to common questions about this code of conduct, see the FAQ at
125
+ [https://www.contributor-covenant.org/faq][faq]. Translations are available at
126
+ [https://www.contributor-covenant.org/translations][translations].
127
+
128
+ [homepage]: https://www.contributor-covenant.org
129
+ [v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
130
+ [mozilla coc]: https://github.com/mozilla/diversity
131
+ [faq]: https://www.contributor-covenant.org/faq
132
+ [translations]: https://www.contributor-covenant.org/translations
@@ -0,0 +1,61 @@
1
+ # Contributor Guide
2
+
3
+ Thank you for your interest in improving getpaid-payu.
4
+ This project is open-source under the [MIT license](https://github.com/django-getpaid/python-getpaid-payu/blob/main/LICENSE) and
5
+ welcomes contributions in the form of bug reports, feature requests, and pull requests.
6
+
7
+ ## Resources
8
+
9
+ - [Source Code](https://github.com/django-getpaid/python-getpaid-payu)
10
+ - [Documentation](https://getpaid-payu.readthedocs.io/)
11
+ - [Issue Tracker](https://github.com/django-getpaid/python-getpaid-payu/issues)
12
+
13
+ ## How to report a bug
14
+
15
+ Report bugs on the [Issue Tracker](https://github.com/django-getpaid/python-getpaid-payu/issues).
16
+
17
+ When filing an issue, include:
18
+
19
+ - Operating system and Python version
20
+ - getpaid-payu version
21
+ - Steps to reproduce
22
+ - Expected vs actual behavior
23
+
24
+ ## How to set up your development environment
25
+
26
+ You need Python 3.12+ and [uv](https://docs.astral.sh/uv/).
27
+
28
+ Clone and install:
29
+
30
+ ```bash
31
+ git clone https://github.com/django-getpaid/python-getpaid-payu.git
32
+ cd python-getpaid-payu
33
+ uv sync
34
+ ```
35
+
36
+ Run tests:
37
+
38
+ ```bash
39
+ uv run pytest
40
+ ```
41
+
42
+ Run linting:
43
+
44
+ ```bash
45
+ uv run ruff check src/ tests/
46
+ uv run ruff format --check src/ tests/
47
+ ```
48
+
49
+ ## How to submit changes
50
+
51
+ 1. Fork the repository and create a feature branch
52
+ 2. Write tests for your changes
53
+ 3. Ensure all tests pass: `uv run pytest`
54
+ 4. Ensure linting passes: `uv run ruff check src/ tests/`
55
+ 5. Open a pull request
56
+
57
+ Your pull request needs to:
58
+
59
+ - Pass the test suite without errors
60
+ - Include tests for new functionality
61
+ - Update documentation if adding features
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2022-2026 Dominik Kozaczko
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,152 @@
1
+ Metadata-Version: 2.4
2
+ Name: python-getpaid-payu
3
+ Version: 0.1.0
4
+ Summary: PayU payment gateway integration for python-getpaid ecosystem.
5
+ Project-URL: Homepage, https://github.com/django-getpaid/python-getpaid-payu
6
+ Project-URL: Repository, https://github.com/django-getpaid/python-getpaid-payu
7
+ Project-URL: Documentation, https://getpaid-payu.readthedocs.io/
8
+ Project-URL: Changelog, https://github.com/django-getpaid/python-getpaid-payu/releases
9
+ Author-email: Dominik Kozaczko <dominik@kozaczko.info>
10
+ License: MIT
11
+ License-File: LICENSE
12
+ Classifier: Development Status :: 3 - Alpha
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: License :: OSI Approved :: MIT License
15
+ Classifier: Programming Language :: Python :: 3.12
16
+ Classifier: Programming Language :: Python :: 3.13
17
+ Classifier: Topic :: Office/Business :: Financial
18
+ Classifier: Topic :: Office/Business :: Financial :: Point-Of-Sale
19
+ Classifier: Typing :: Typed
20
+ Requires-Python: >=3.12
21
+ Requires-Dist: httpx>=0.27.0
22
+ Requires-Dist: python-getpaid-core>=0.1.0
23
+ Description-Content-Type: text/markdown
24
+
25
+ # getpaid-payu
26
+
27
+ [![PyPI](https://img.shields.io/pypi/v/python-getpaid-payu.svg)](https://pypi.org/project/python-getpaid-payu/)
28
+ [![Python Version](https://img.shields.io/pypi/pyversions/python-getpaid-payu)](https://pypi.org/project/python-getpaid-payu/)
29
+ [![License](https://img.shields.io/pypi/l/python-getpaid-payu)](https://github.com/django-getpaid/python-getpaid-payu/blob/main/LICENSE)
30
+
31
+ PayU payment gateway plugin for the
32
+ [python-getpaid](https://github.com/django-getpaid) ecosystem. Provides a
33
+ fully async HTTP client (`PayUClient`) and a payment processor
34
+ (`PayUProcessor`) implementing the
35
+ [getpaid-core](https://github.com/django-getpaid/python-getpaid-core)
36
+ `BaseProcessor` interface. Communicates with PayU via their REST API v2.1
37
+ using OAuth2 authentication.
38
+
39
+ ## Architecture
40
+
41
+ getpaid-payu is composed of two main layers:
42
+
43
+ - **PayUClient** — a low-level async HTTP client (built on `httpx`) that wraps
44
+ every PayU REST API v2.1 endpoint. OAuth2 tokens are obtained lazily and
45
+ refreshed automatically. Can be used as an async context manager for
46
+ connection reuse.
47
+ - **PayUProcessor** — a high-level processor that implements `BaseProcessor`
48
+ from getpaid-core. Translates between the core payment protocol and PayU's
49
+ API, handles signature verification, PUSH/PULL callbacks, and FSM
50
+ transitions.
51
+
52
+ ## Key Features
53
+
54
+ - Full PayU REST API v2.1 coverage
55
+ - Async HTTP client with automatic OAuth2 token management
56
+ - Create order, cancel, capture (charge), retrieve order info
57
+ - Refund operations: create, retrieve single, retrieve all
58
+ - Payment methods retrieval
59
+ - Transaction details retrieval
60
+ - Shop info and payout operations
61
+ - Token deletion (card-on-file)
62
+ - Automatic amount centification (amounts × 100) and normalization
63
+ - Signature verification (MD5 and SHA-256)
64
+ - PUSH callback handling with FSM integration
65
+ - PULL status polling
66
+ - Full pre-authorization support (lock, charge, release)
67
+
68
+ ## Quick Usage
69
+
70
+ `PayUClient` can be used standalone as an async context manager:
71
+
72
+ ```python
73
+ from decimal import Decimal
74
+ from getpaid_payu.client import PayUClient
75
+ from getpaid_payu.types import Currency
76
+
77
+ async with PayUClient(
78
+ api_url="https://secure.snd.payu.com/",
79
+ pos_id=300746,
80
+ second_key="b6ca15b0d1020e8094f2b...",
81
+ oauth_id=300746,
82
+ oauth_secret="2ee86a66e5d97e3fadc4...",
83
+ ) as client:
84
+ response = await client.new_order(
85
+ amount=Decimal("29.99"),
86
+ currency=Currency.PLN,
87
+ order_id="order-123",
88
+ description="Test order",
89
+ )
90
+ redirect_url = response["redirectUri"]
91
+ ```
92
+
93
+ ## Configuration
94
+
95
+ When used via a framework adapter (e.g. django-getpaid), configuration is
96
+ provided as a dictionary:
97
+
98
+ | Key | Type | Default | Description |
99
+ |-----|------|---------|-------------|
100
+ | `pos_id` | `int` | — | PayU POS (point of sale) identifier |
101
+ | `second_key` | `str` | — | Second key (MD5) from PayU panel, used for signature verification |
102
+ | `oauth_id` | `int` | — | OAuth client ID from PayU panel |
103
+ | `oauth_secret` | `str` | — | OAuth client secret from PayU panel |
104
+ | `sandbox` | `bool` | `True` | Use sandbox (`secure.snd.payu.com`) or production (`secure.payu.com`) |
105
+ | `notify_url` | `str` | `None` | Notification callback URL template, e.g. `https://example.com/payments/{payment_id}/notify` |
106
+ | `continue_url` | `str` | `None` | Redirect URL template after payment, e.g. `https://example.com/payments/{payment_id}/continue` |
107
+
108
+ Example configuration dict:
109
+
110
+ ```python
111
+ GETPAID_BACKENDS = {
112
+ "payu": {
113
+ "pos_id": 300746,
114
+ "second_key": "b6ca15b0d1020e8094f2b...",
115
+ "oauth_id": 300746,
116
+ "oauth_secret": "2ee86a66e5d97e3fadc4...",
117
+ "sandbox": True,
118
+ "notify_url": "https://example.com/payments/{payment_id}/notify",
119
+ "continue_url": "https://example.com/payments/{payment_id}/continue",
120
+ }
121
+ }
122
+ ```
123
+
124
+ ## Supported Currencies
125
+
126
+ BGN, CHF, CZK, DKK, EUR, GBP, HRK, HUF, NOK, PLN, RON, RUB, SEK, UAH, USD
127
+
128
+ ## Requirements
129
+
130
+ - Python 3.12+
131
+ - `python-getpaid-core >= 0.1.0`
132
+ - `httpx >= 0.27.0`
133
+
134
+ ## Related Projects
135
+
136
+ - [getpaid-core](https://github.com/django-getpaid/python-getpaid-core) —
137
+ framework-agnostic payment processing library
138
+ - [django-getpaid](https://github.com/django-getpaid/django-getpaid) —
139
+ Django framework adapter
140
+
141
+ ## License
142
+
143
+ MIT
144
+
145
+ ## Disclaimer
146
+
147
+ This project has nothing in common with the
148
+ [getpaid](http://code.google.com/p/getpaid/) plone project.
149
+
150
+ ## Credits
151
+
152
+ Created by [Dominik Kozaczko](https://github.com/dekoza).
@@ -0,0 +1,128 @@
1
+ # getpaid-payu
2
+
3
+ [![PyPI](https://img.shields.io/pypi/v/python-getpaid-payu.svg)](https://pypi.org/project/python-getpaid-payu/)
4
+ [![Python Version](https://img.shields.io/pypi/pyversions/python-getpaid-payu)](https://pypi.org/project/python-getpaid-payu/)
5
+ [![License](https://img.shields.io/pypi/l/python-getpaid-payu)](https://github.com/django-getpaid/python-getpaid-payu/blob/main/LICENSE)
6
+
7
+ PayU payment gateway plugin for the
8
+ [python-getpaid](https://github.com/django-getpaid) ecosystem. Provides a
9
+ fully async HTTP client (`PayUClient`) and a payment processor
10
+ (`PayUProcessor`) implementing the
11
+ [getpaid-core](https://github.com/django-getpaid/python-getpaid-core)
12
+ `BaseProcessor` interface. Communicates with PayU via their REST API v2.1
13
+ using OAuth2 authentication.
14
+
15
+ ## Architecture
16
+
17
+ getpaid-payu is composed of two main layers:
18
+
19
+ - **PayUClient** — a low-level async HTTP client (built on `httpx`) that wraps
20
+ every PayU REST API v2.1 endpoint. OAuth2 tokens are obtained lazily and
21
+ refreshed automatically. Can be used as an async context manager for
22
+ connection reuse.
23
+ - **PayUProcessor** — a high-level processor that implements `BaseProcessor`
24
+ from getpaid-core. Translates between the core payment protocol and PayU's
25
+ API, handles signature verification, PUSH/PULL callbacks, and FSM
26
+ transitions.
27
+
28
+ ## Key Features
29
+
30
+ - Full PayU REST API v2.1 coverage
31
+ - Async HTTP client with automatic OAuth2 token management
32
+ - Create order, cancel, capture (charge), retrieve order info
33
+ - Refund operations: create, retrieve single, retrieve all
34
+ - Payment methods retrieval
35
+ - Transaction details retrieval
36
+ - Shop info and payout operations
37
+ - Token deletion (card-on-file)
38
+ - Automatic amount centification (amounts × 100) and normalization
39
+ - Signature verification (MD5 and SHA-256)
40
+ - PUSH callback handling with FSM integration
41
+ - PULL status polling
42
+ - Full pre-authorization support (lock, charge, release)
43
+
44
+ ## Quick Usage
45
+
46
+ `PayUClient` can be used standalone as an async context manager:
47
+
48
+ ```python
49
+ from decimal import Decimal
50
+ from getpaid_payu.client import PayUClient
51
+ from getpaid_payu.types import Currency
52
+
53
+ async with PayUClient(
54
+ api_url="https://secure.snd.payu.com/",
55
+ pos_id=300746,
56
+ second_key="b6ca15b0d1020e8094f2b...",
57
+ oauth_id=300746,
58
+ oauth_secret="2ee86a66e5d97e3fadc4...",
59
+ ) as client:
60
+ response = await client.new_order(
61
+ amount=Decimal("29.99"),
62
+ currency=Currency.PLN,
63
+ order_id="order-123",
64
+ description="Test order",
65
+ )
66
+ redirect_url = response["redirectUri"]
67
+ ```
68
+
69
+ ## Configuration
70
+
71
+ When used via a framework adapter (e.g. django-getpaid), configuration is
72
+ provided as a dictionary:
73
+
74
+ | Key | Type | Default | Description |
75
+ |-----|------|---------|-------------|
76
+ | `pos_id` | `int` | — | PayU POS (point of sale) identifier |
77
+ | `second_key` | `str` | — | Second key (MD5) from PayU panel, used for signature verification |
78
+ | `oauth_id` | `int` | — | OAuth client ID from PayU panel |
79
+ | `oauth_secret` | `str` | — | OAuth client secret from PayU panel |
80
+ | `sandbox` | `bool` | `True` | Use sandbox (`secure.snd.payu.com`) or production (`secure.payu.com`) |
81
+ | `notify_url` | `str` | `None` | Notification callback URL template, e.g. `https://example.com/payments/{payment_id}/notify` |
82
+ | `continue_url` | `str` | `None` | Redirect URL template after payment, e.g. `https://example.com/payments/{payment_id}/continue` |
83
+
84
+ Example configuration dict:
85
+
86
+ ```python
87
+ GETPAID_BACKENDS = {
88
+ "payu": {
89
+ "pos_id": 300746,
90
+ "second_key": "b6ca15b0d1020e8094f2b...",
91
+ "oauth_id": 300746,
92
+ "oauth_secret": "2ee86a66e5d97e3fadc4...",
93
+ "sandbox": True,
94
+ "notify_url": "https://example.com/payments/{payment_id}/notify",
95
+ "continue_url": "https://example.com/payments/{payment_id}/continue",
96
+ }
97
+ }
98
+ ```
99
+
100
+ ## Supported Currencies
101
+
102
+ BGN, CHF, CZK, DKK, EUR, GBP, HRK, HUF, NOK, PLN, RON, RUB, SEK, UAH, USD
103
+
104
+ ## Requirements
105
+
106
+ - Python 3.12+
107
+ - `python-getpaid-core >= 0.1.0`
108
+ - `httpx >= 0.27.0`
109
+
110
+ ## Related Projects
111
+
112
+ - [getpaid-core](https://github.com/django-getpaid/python-getpaid-core) —
113
+ framework-agnostic payment processing library
114
+ - [django-getpaid](https://github.com/django-getpaid/django-getpaid) —
115
+ Django framework adapter
116
+
117
+ ## License
118
+
119
+ MIT
120
+
121
+ ## Disclaimer
122
+
123
+ This project has nothing in common with the
124
+ [getpaid](http://code.google.com/p/getpaid/) plone project.
125
+
126
+ ## Credits
127
+
128
+ Created by [Dominik Kozaczko](https://github.com/dekoza).
@@ -0,0 +1,22 @@
1
+ # Changelog
2
+
3
+ ## v0.1.0 (2026-02-14)
4
+
5
+ Initial release.
6
+
7
+ ### Features
8
+
9
+ - Full PayU REST API v2.1 coverage
10
+ - Async HTTP client (`PayUClient`) with OAuth2 token management
11
+ - Payment processor (`PayUProcessor`) implementing `BaseProcessor`
12
+ - All order operations: create, cancel, capture, retrieve
13
+ - Refund operations: create, retrieve single/all
14
+ - Payment methods retrieval
15
+ - Transaction details retrieval
16
+ - Shop info and payout operations
17
+ - Token deletion
18
+ - Automatic amount centification/normalization
19
+ - Signature verification (MD5 and SHA-256)
20
+ - PUSH callback handling with FSM integration
21
+ - PULL status polling
22
+ - Full pre-authorization support (lock, charge, release)
@@ -0,0 +1,2 @@
1
+ :::{include} ../CODE_OF_CONDUCT.md
2
+ :::