payme-pkg 3.0.16__tar.gz → 3.0.18__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.
Potentially problematic release.
This version of payme-pkg might be problematic. Click here for more details.
- {payme_pkg-3.0.16 → payme_pkg-3.0.18}/PKG-INFO +21 -6
- {payme_pkg-3.0.16 → payme_pkg-3.0.18}/README.md +20 -5
- {payme_pkg-3.0.16 → payme_pkg-3.0.18}/payme/classes/http.py +4 -0
- {payme_pkg-3.0.16 → payme_pkg-3.0.18}/payme/views.py +2 -2
- {payme_pkg-3.0.16 → payme_pkg-3.0.18}/payme_pkg.egg-info/PKG-INFO +21 -6
- {payme_pkg-3.0.16 → payme_pkg-3.0.18}/setup.py +1 -1
- {payme_pkg-3.0.16 → payme_pkg-3.0.18}/LICENSE.txt +0 -0
- {payme_pkg-3.0.16 → payme_pkg-3.0.18}/payme/__init__.py +0 -0
- {payme_pkg-3.0.16 → payme_pkg-3.0.18}/payme/admin.py +0 -0
- {payme_pkg-3.0.16 → payme_pkg-3.0.18}/payme/apps.py +0 -0
- {payme_pkg-3.0.16 → payme_pkg-3.0.18}/payme/classes/__init__.py +0 -0
- {payme_pkg-3.0.16 → payme_pkg-3.0.18}/payme/classes/cards.py +0 -0
- {payme_pkg-3.0.16 → payme_pkg-3.0.18}/payme/classes/client.py +0 -0
- {payme_pkg-3.0.16 → payme_pkg-3.0.18}/payme/classes/initializer.py +0 -0
- {payme_pkg-3.0.16 → payme_pkg-3.0.18}/payme/classes/receipts.py +0 -0
- {payme_pkg-3.0.16 → payme_pkg-3.0.18}/payme/const.py +0 -0
- {payme_pkg-3.0.16 → payme_pkg-3.0.18}/payme/exceptions/__init__.py +0 -0
- {payme_pkg-3.0.16 → payme_pkg-3.0.18}/payme/exceptions/general.py +0 -0
- {payme_pkg-3.0.16 → payme_pkg-3.0.18}/payme/exceptions/webhook.py +0 -0
- {payme_pkg-3.0.16 → payme_pkg-3.0.18}/payme/migrations/__init__.py +0 -0
- {payme_pkg-3.0.16 → payme_pkg-3.0.18}/payme/models.py +0 -0
- {payme_pkg-3.0.16 → payme_pkg-3.0.18}/payme/types/__init__.py +0 -0
- {payme_pkg-3.0.16 → payme_pkg-3.0.18}/payme/types/request/__init__.py +0 -0
- {payme_pkg-3.0.16 → payme_pkg-3.0.18}/payme/types/response/__init__.py +0 -0
- {payme_pkg-3.0.16 → payme_pkg-3.0.18}/payme/types/response/cards.py +0 -0
- {payme_pkg-3.0.16 → payme_pkg-3.0.18}/payme/types/response/receipts.py +0 -0
- {payme_pkg-3.0.16 → payme_pkg-3.0.18}/payme/types/response/webhook.py +0 -0
- {payme_pkg-3.0.16 → payme_pkg-3.0.18}/payme/urls.py +0 -0
- {payme_pkg-3.0.16 → payme_pkg-3.0.18}/payme/util.py +0 -0
- {payme_pkg-3.0.16 → payme_pkg-3.0.18}/payme_pkg.egg-info/SOURCES.txt +0 -0
- {payme_pkg-3.0.16 → payme_pkg-3.0.18}/payme_pkg.egg-info/dependency_links.txt +0 -0
- {payme_pkg-3.0.16 → payme_pkg-3.0.18}/payme_pkg.egg-info/requires.txt +0 -0
- {payme_pkg-3.0.16 → payme_pkg-3.0.18}/payme_pkg.egg-info/top_level.txt +0 -0
- {payme_pkg-3.0.16 → payme_pkg-3.0.18}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: payme-pkg
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.18
|
|
4
4
|
Home-page: https://github.com/Muhammadali-Akbarov/payme-pkg
|
|
5
5
|
Author: Muhammadali Akbarov
|
|
6
6
|
Author-email: muhammadali17abc@gmail.com
|
|
@@ -12,13 +12,23 @@ Requires-Dist: requests==2.*
|
|
|
12
12
|
Requires-Dist: dataclasses==0.*; python_version < "3.7"
|
|
13
13
|
Requires-Dist: djangorestframework==3.*
|
|
14
14
|
|
|
15
|
-
<h1 align="center">Payme
|
|
15
|
+
<h1 align="center">Payme Software Development Kit</h1>
|
|
16
16
|
|
|
17
17
|
<p align="center">
|
|
18
|
-
<a href="https://
|
|
18
|
+
<a href="https://t.me/+lO97J78xBj45MzBi">
|
|
19
|
+
<img src="https://img.shields.io/badge/Support%20Group-blue?logo=telegram&logoColor=white" alt="Support Group on Telegram"/>
|
|
20
|
+
</a>
|
|
21
|
+
</p>
|
|
22
|
+
|
|
23
|
+
<p align="center">
|
|
24
|
+
<a href="https://docs.pay-tech.uz"><img src="https://img.shields.io/static/v1?message=Documentation&logo=gitbook&logoColor=ffffff&label=%20&labelColor=5c5c5c&color=3F89A1"></a>
|
|
19
25
|
<a href="https://github.com/PayTechUz/payme-pkg"><img src="https://img.shields.io/badge/Open_Source-❤️-FDA599?"/></a>
|
|
20
|
-
<a href="
|
|
21
|
-
|
|
26
|
+
<a href="https://github.com/PayTechUz/payme-pkg/issues">
|
|
27
|
+
<img src="https://img.shields.io/github/issues/PayTechUz/payme-pkg" />
|
|
28
|
+
</a>
|
|
29
|
+
<a href="https://pepy.tech/project/payme-pkg">
|
|
30
|
+
<img src="https://static.pepy.tech/badge/payme-pkg" alt="PyPI - Downloads" />
|
|
31
|
+
</a>
|
|
22
32
|
</p>
|
|
23
33
|
|
|
24
34
|
<p align="center">Welcome to payme-pkg, the open source payme SDK for Python.</p>
|
|
@@ -36,9 +46,14 @@ Requires-Dist: djangorestframework==3.*
|
|
|
36
46
|
</a>
|
|
37
47
|
|
|
38
48
|
<p align="center">
|
|
39
|
-
<a href="https://youtu.be/7q7-c72tHpc?si=Sr0EAmEawWAFRk1m" target="_blank">
|
|
49
|
+
<a href="https://youtu.be/7q7-c72tHpc?si=Sr0EAmEawWAFRk1m" target="_blank">
|
|
50
|
+
<img src="https://img.shields.io/badge/Watch%20Demo-red?logo=youtube&logoColor=white&style=for-the-badge"
|
|
51
|
+
alt="Watch the YouTube Demo"
|
|
52
|
+
style="width: 150px; height: 30px; border-radius: 7px;" />
|
|
53
|
+
</a>
|
|
40
54
|
</p>
|
|
41
55
|
|
|
56
|
+
|
|
42
57
|
## Installation
|
|
43
58
|
|
|
44
59
|
```shell
|
|
@@ -1,10 +1,20 @@
|
|
|
1
|
-
<h1 align="center">Payme
|
|
1
|
+
<h1 align="center">Payme Software Development Kit</h1>
|
|
2
2
|
|
|
3
3
|
<p align="center">
|
|
4
|
-
<a href="https://
|
|
4
|
+
<a href="https://t.me/+lO97J78xBj45MzBi">
|
|
5
|
+
<img src="https://img.shields.io/badge/Support%20Group-blue?logo=telegram&logoColor=white" alt="Support Group on Telegram"/>
|
|
6
|
+
</a>
|
|
7
|
+
</p>
|
|
8
|
+
|
|
9
|
+
<p align="center">
|
|
10
|
+
<a href="https://docs.pay-tech.uz"><img src="https://img.shields.io/static/v1?message=Documentation&logo=gitbook&logoColor=ffffff&label=%20&labelColor=5c5c5c&color=3F89A1"></a>
|
|
5
11
|
<a href="https://github.com/PayTechUz/payme-pkg"><img src="https://img.shields.io/badge/Open_Source-❤️-FDA599?"/></a>
|
|
6
|
-
<a href="
|
|
7
|
-
|
|
12
|
+
<a href="https://github.com/PayTechUz/payme-pkg/issues">
|
|
13
|
+
<img src="https://img.shields.io/github/issues/PayTechUz/payme-pkg" />
|
|
14
|
+
</a>
|
|
15
|
+
<a href="https://pepy.tech/project/payme-pkg">
|
|
16
|
+
<img src="https://static.pepy.tech/badge/payme-pkg" alt="PyPI - Downloads" />
|
|
17
|
+
</a>
|
|
8
18
|
</p>
|
|
9
19
|
|
|
10
20
|
<p align="center">Welcome to payme-pkg, the open source payme SDK for Python.</p>
|
|
@@ -22,9 +32,14 @@
|
|
|
22
32
|
</a>
|
|
23
33
|
|
|
24
34
|
<p align="center">
|
|
25
|
-
<a href="https://youtu.be/7q7-c72tHpc?si=Sr0EAmEawWAFRk1m" target="_blank">
|
|
35
|
+
<a href="https://youtu.be/7q7-c72tHpc?si=Sr0EAmEawWAFRk1m" target="_blank">
|
|
36
|
+
<img src="https://img.shields.io/badge/Watch%20Demo-red?logo=youtube&logoColor=white&style=for-the-badge"
|
|
37
|
+
alt="Watch the YouTube Demo"
|
|
38
|
+
style="width: 150px; height: 30px; border-radius: 7px;" />
|
|
39
|
+
</a>
|
|
26
40
|
</p>
|
|
27
41
|
|
|
42
|
+
|
|
28
43
|
## Installation
|
|
29
44
|
|
|
30
45
|
```shell
|
|
@@ -104,4 +104,8 @@ class HttpClient:
|
|
|
104
104
|
|
|
105
105
|
exception_class = exc.errors_map.get(error_code, exc.BaseError)
|
|
106
106
|
exception_class.message = error_message
|
|
107
|
+
|
|
108
|
+
if exception_class == exc.BaseError:
|
|
109
|
+
raise exc.BaseError(code=error_code, message=error_message)
|
|
110
|
+
|
|
107
111
|
raise exception_class(data=error_data)
|
|
@@ -58,7 +58,7 @@ class PaymeWebHookAPIView(views.APIView):
|
|
|
58
58
|
"""
|
|
59
59
|
Handle the incoming webhook request.
|
|
60
60
|
"""
|
|
61
|
-
self.
|
|
61
|
+
self.check_authorize(request)
|
|
62
62
|
|
|
63
63
|
payme_methods = {
|
|
64
64
|
"GetStatement": self.get_statement,
|
|
@@ -83,7 +83,7 @@ class PaymeWebHookAPIView(views.APIView):
|
|
|
83
83
|
raise exceptions.MethodNotFound("Method not supported yet!")
|
|
84
84
|
|
|
85
85
|
@staticmethod
|
|
86
|
-
def
|
|
86
|
+
def check_authorize(request):
|
|
87
87
|
"""
|
|
88
88
|
Verify the integrity of the request using the merchant key.
|
|
89
89
|
"""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: payme-pkg
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.18
|
|
4
4
|
Home-page: https://github.com/Muhammadali-Akbarov/payme-pkg
|
|
5
5
|
Author: Muhammadali Akbarov
|
|
6
6
|
Author-email: muhammadali17abc@gmail.com
|
|
@@ -12,13 +12,23 @@ Requires-Dist: requests==2.*
|
|
|
12
12
|
Requires-Dist: dataclasses==0.*; python_version < "3.7"
|
|
13
13
|
Requires-Dist: djangorestframework==3.*
|
|
14
14
|
|
|
15
|
-
<h1 align="center">Payme
|
|
15
|
+
<h1 align="center">Payme Software Development Kit</h1>
|
|
16
16
|
|
|
17
17
|
<p align="center">
|
|
18
|
-
<a href="https://
|
|
18
|
+
<a href="https://t.me/+lO97J78xBj45MzBi">
|
|
19
|
+
<img src="https://img.shields.io/badge/Support%20Group-blue?logo=telegram&logoColor=white" alt="Support Group on Telegram"/>
|
|
20
|
+
</a>
|
|
21
|
+
</p>
|
|
22
|
+
|
|
23
|
+
<p align="center">
|
|
24
|
+
<a href="https://docs.pay-tech.uz"><img src="https://img.shields.io/static/v1?message=Documentation&logo=gitbook&logoColor=ffffff&label=%20&labelColor=5c5c5c&color=3F89A1"></a>
|
|
19
25
|
<a href="https://github.com/PayTechUz/payme-pkg"><img src="https://img.shields.io/badge/Open_Source-❤️-FDA599?"/></a>
|
|
20
|
-
<a href="
|
|
21
|
-
|
|
26
|
+
<a href="https://github.com/PayTechUz/payme-pkg/issues">
|
|
27
|
+
<img src="https://img.shields.io/github/issues/PayTechUz/payme-pkg" />
|
|
28
|
+
</a>
|
|
29
|
+
<a href="https://pepy.tech/project/payme-pkg">
|
|
30
|
+
<img src="https://static.pepy.tech/badge/payme-pkg" alt="PyPI - Downloads" />
|
|
31
|
+
</a>
|
|
22
32
|
</p>
|
|
23
33
|
|
|
24
34
|
<p align="center">Welcome to payme-pkg, the open source payme SDK for Python.</p>
|
|
@@ -36,9 +46,14 @@ Requires-Dist: djangorestframework==3.*
|
|
|
36
46
|
</a>
|
|
37
47
|
|
|
38
48
|
<p align="center">
|
|
39
|
-
<a href="https://youtu.be/7q7-c72tHpc?si=Sr0EAmEawWAFRk1m" target="_blank">
|
|
49
|
+
<a href="https://youtu.be/7q7-c72tHpc?si=Sr0EAmEawWAFRk1m" target="_blank">
|
|
50
|
+
<img src="https://img.shields.io/badge/Watch%20Demo-red?logo=youtube&logoColor=white&style=for-the-badge"
|
|
51
|
+
alt="Watch the YouTube Demo"
|
|
52
|
+
style="width: 150px; height: 30px; border-radius: 7px;" />
|
|
53
|
+
</a>
|
|
40
54
|
</p>
|
|
41
55
|
|
|
56
|
+
|
|
42
57
|
## Installation
|
|
43
58
|
|
|
44
59
|
```shell
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|