payme-pkg 3.0.10__tar.gz → 3.0.12__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.

Files changed (34) hide show
  1. {payme_pkg-3.0.10 → payme_pkg-3.0.12}/PKG-INFO +12 -8
  2. {payme_pkg-3.0.10 → payme_pkg-3.0.12}/README.md +11 -7
  3. {payme_pkg-3.0.10 → payme_pkg-3.0.12}/payme/classes/http.py +2 -1
  4. {payme_pkg-3.0.10 → payme_pkg-3.0.12}/payme/exceptions/general.py +17 -1
  5. {payme_pkg-3.0.10 → payme_pkg-3.0.12}/payme/types/response/receipts.py +0 -1
  6. {payme_pkg-3.0.10 → payme_pkg-3.0.12}/payme_pkg.egg-info/PKG-INFO +12 -8
  7. {payme_pkg-3.0.10 → payme_pkg-3.0.12}/setup.py +1 -1
  8. {payme_pkg-3.0.10 → payme_pkg-3.0.12}/LICENSE.txt +0 -0
  9. {payme_pkg-3.0.10 → payme_pkg-3.0.12}/payme/__init__.py +0 -0
  10. {payme_pkg-3.0.10 → payme_pkg-3.0.12}/payme/admin.py +0 -0
  11. {payme_pkg-3.0.10 → payme_pkg-3.0.12}/payme/apps.py +0 -0
  12. {payme_pkg-3.0.10 → payme_pkg-3.0.12}/payme/classes/__init__.py +0 -0
  13. {payme_pkg-3.0.10 → payme_pkg-3.0.12}/payme/classes/cards.py +0 -0
  14. {payme_pkg-3.0.10 → payme_pkg-3.0.12}/payme/classes/client.py +0 -0
  15. {payme_pkg-3.0.10 → payme_pkg-3.0.12}/payme/classes/initializer.py +0 -0
  16. {payme_pkg-3.0.10 → payme_pkg-3.0.12}/payme/classes/receipts.py +0 -0
  17. {payme_pkg-3.0.10 → payme_pkg-3.0.12}/payme/const.py +0 -0
  18. {payme_pkg-3.0.10 → payme_pkg-3.0.12}/payme/exceptions/__init__.py +0 -0
  19. {payme_pkg-3.0.10 → payme_pkg-3.0.12}/payme/exceptions/webhook.py +0 -0
  20. {payme_pkg-3.0.10 → payme_pkg-3.0.12}/payme/migrations/__init__.py +0 -0
  21. {payme_pkg-3.0.10 → payme_pkg-3.0.12}/payme/models.py +0 -0
  22. {payme_pkg-3.0.10 → payme_pkg-3.0.12}/payme/types/__init__.py +0 -0
  23. {payme_pkg-3.0.10 → payme_pkg-3.0.12}/payme/types/request/__init__.py +0 -0
  24. {payme_pkg-3.0.10 → payme_pkg-3.0.12}/payme/types/response/__init__.py +0 -0
  25. {payme_pkg-3.0.10 → payme_pkg-3.0.12}/payme/types/response/cards.py +0 -0
  26. {payme_pkg-3.0.10 → payme_pkg-3.0.12}/payme/types/response/webhook.py +0 -0
  27. {payme_pkg-3.0.10 → payme_pkg-3.0.12}/payme/urls.py +0 -0
  28. {payme_pkg-3.0.10 → payme_pkg-3.0.12}/payme/util.py +0 -0
  29. {payme_pkg-3.0.10 → payme_pkg-3.0.12}/payme/views.py +0 -0
  30. {payme_pkg-3.0.10 → payme_pkg-3.0.12}/payme_pkg.egg-info/SOURCES.txt +0 -0
  31. {payme_pkg-3.0.10 → payme_pkg-3.0.12}/payme_pkg.egg-info/dependency_links.txt +0 -0
  32. {payme_pkg-3.0.10 → payme_pkg-3.0.12}/payme_pkg.egg-info/requires.txt +0 -0
  33. {payme_pkg-3.0.10 → payme_pkg-3.0.12}/payme_pkg.egg-info/top_level.txt +0 -0
  34. {payme_pkg-3.0.10 → payme_pkg-3.0.12}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: payme-pkg
3
- Version: 3.0.10
3
+ Version: 3.0.12
4
4
  Home-page: https://github.com/Muhammadali-Akbarov/payme-pkg
5
5
  Author: Muhammadali Akbarov
6
6
  Author-email: muhammadali17abc@gmail.com
@@ -14,7 +14,6 @@ Requires-Dist: djangorestframework==3.*
14
14
 
15
15
  <h1 align="center">Payme PKG</h1>
16
16
 
17
-
18
17
  <p align="center">
19
18
  <a href="https://docs.pay-tech.uz"><img src="https://img.shields.io/static/v1?message=Documented%20on%20GitBook&logo=gitbook&logoColor=ffffff&label=%20&labelColor=5c5c5c&color=3F89A1"></a>
20
19
  <a href="https://github.com/PayTechUz/payme-pkg"><img src="https://img.shields.io/badge/Open_Source-❤️-FDA599?"/></a>
@@ -22,19 +21,24 @@ Requires-Dist: djangorestframework==3.*
22
21
  <a href="https://github.com/PayTechUz/payme-pkg/issues"><img src="https://img.shields.io/github/issues/gitbookIO/gitbook"/></a>
23
22
  </p>
24
23
 
25
- <p align="center">Welcome to payme-pkg, the open source payme sdk for python.</p>
24
+ <p align="center">Welcome to payme-pkg, the open source payme SDK for Python.</p>
25
+
26
+ <p align="center">You can use it for test and production mode. Join our community and ask everything you need.</p>
26
27
 
27
- <p align="center">You can use for test and production mode. Join our community and ask everything you need.
28
- </p>
29
28
  <a href="https://docs.pay-tech.uz">
30
- <p align="center">Visit to full documentation for Merchant and Subcribe Api</p>
29
+ <p align="center">Visit the full documentation for Merchant and Subscribe API</p>
31
30
  </a>
32
31
 
33
32
  <a href="https://youtu.be/xxiIggu_RNk?si=Idpg8omFvFDCYtcm" target="_blank">
33
+ <p align="center">
34
+ <img style="width: 60%;" src="https://i.postimg.cc/WbD32bHC/payme-pkg-demo-m4a.gif" alt="Payme PKG Demo">
35
+ </p>
36
+ </a>
37
+
34
38
  <p align="center">
35
- <img style="width: 60%;" src="https://i.postimg.cc/WbD32bHC/payme-pkg-demo-m4a.gif">
39
+ <a href="https://youtu.be/7q7-c72tHpc?si=Sr0EAmEawWAFRk1m" target="_blank">Watch the YouTube Demo</a>
36
40
  </p>
37
- </a>
41
+
38
42
  ## Installation
39
43
 
40
44
  ```shell
@@ -1,6 +1,5 @@
1
1
  <h1 align="center">Payme PKG</h1>
2
2
 
3
-
4
3
  <p align="center">
5
4
  <a href="https://docs.pay-tech.uz"><img src="https://img.shields.io/static/v1?message=Documented%20on%20GitBook&logo=gitbook&logoColor=ffffff&label=%20&labelColor=5c5c5c&color=3F89A1"></a>
6
5
  <a href="https://github.com/PayTechUz/payme-pkg"><img src="https://img.shields.io/badge/Open_Source-❤️-FDA599?"/></a>
@@ -8,19 +7,24 @@
8
7
  <a href="https://github.com/PayTechUz/payme-pkg/issues"><img src="https://img.shields.io/github/issues/gitbookIO/gitbook"/></a>
9
8
  </p>
10
9
 
11
- <p align="center">Welcome to payme-pkg, the open source payme sdk for python.</p>
10
+ <p align="center">Welcome to payme-pkg, the open source payme SDK for Python.</p>
11
+
12
+ <p align="center">You can use it for test and production mode. Join our community and ask everything you need.</p>
12
13
 
13
- <p align="center">You can use for test and production mode. Join our community and ask everything you need.
14
- </p>
15
14
  <a href="https://docs.pay-tech.uz">
16
- <p align="center">Visit to full documentation for Merchant and Subcribe Api</p>
15
+ <p align="center">Visit the full documentation for Merchant and Subscribe API</p>
17
16
  </a>
18
17
 
19
18
  <a href="https://youtu.be/xxiIggu_RNk?si=Idpg8omFvFDCYtcm" target="_blank">
19
+ <p align="center">
20
+ <img style="width: 60%;" src="https://i.postimg.cc/WbD32bHC/payme-pkg-demo-m4a.gif" alt="Payme PKG Demo">
21
+ </p>
22
+ </a>
23
+
20
24
  <p align="center">
21
- <img style="width: 60%;" src="https://i.postimg.cc/WbD32bHC/payme-pkg-demo-m4a.gif">
25
+ <a href="https://youtu.be/7q7-c72tHpc?si=Sr0EAmEawWAFRk1m" target="_blank">Watch the YouTube Demo</a>
22
26
  </p>
23
- </a>
27
+
24
28
  ## Installation
25
29
 
26
30
  ```shell
@@ -103,4 +103,5 @@ class HttpClient:
103
103
  error_data = error.get("data", "")
104
104
 
105
105
  exception_class = exc.errors_map.get(error_code, exc.BaseError)
106
- raise exception_class(message=error_message, data=error_data)
106
+ exception_class.message = error_message
107
+ raise exception_class(data=error_data)
@@ -74,6 +74,14 @@ class InvalidParamsError(CardError):
74
74
  super().__init__(-32602, self.message, data)
75
75
 
76
76
 
77
+ class InvalidTokenFormat(CardError):
78
+ """Invalid token format during card operation."""
79
+ message = "Invalid token format."
80
+
81
+ def __init__(self, data=None):
82
+ super().__init__(-32500, self.message, data)
83
+
84
+
77
85
  class AccessDeniedError(CardError):
78
86
  """Access denied for the card operation."""
79
87
  message = "Access denied."
@@ -229,6 +237,12 @@ class ReceiptsNotFoundError(BaseException):
229
237
  super().__init__(message, data)
230
238
 
231
239
 
240
+ class UnknownPartnerError(BaseException):
241
+ """The given partner ID is unknown."""
242
+ def __init__(self, message="Unknown partner or ID and Key not active", data=None):
243
+ super().__init__(message, data)
244
+
245
+
232
246
  errors_map = {
233
247
  -32300: TransportError,
234
248
  -32700: ParseError,
@@ -246,5 +260,7 @@ errors_map = {
246
260
  -31101: OtpExpiredError,
247
261
  -31102: OtpAttemptsExceededError,
248
262
  -31103: OtpInvalidCodeError,
249
- -31602: ReceiptsNotFoundError
263
+ -31602: ReceiptsNotFoundError,
264
+ -32500: InvalidTokenFormat,
265
+ -31601: UnknownPartnerError,
250
266
  }
@@ -123,7 +123,6 @@ class Receipt(Common):
123
123
  type: int
124
124
  external: bool
125
125
  operation: int
126
- category: any = None
127
126
  error: any = None
128
127
  description: str = None
129
128
  detail: Detail = None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: payme-pkg
3
- Version: 3.0.10
3
+ Version: 3.0.12
4
4
  Home-page: https://github.com/Muhammadali-Akbarov/payme-pkg
5
5
  Author: Muhammadali Akbarov
6
6
  Author-email: muhammadali17abc@gmail.com
@@ -14,7 +14,6 @@ Requires-Dist: djangorestframework==3.*
14
14
 
15
15
  <h1 align="center">Payme PKG</h1>
16
16
 
17
-
18
17
  <p align="center">
19
18
  <a href="https://docs.pay-tech.uz"><img src="https://img.shields.io/static/v1?message=Documented%20on%20GitBook&logo=gitbook&logoColor=ffffff&label=%20&labelColor=5c5c5c&color=3F89A1"></a>
20
19
  <a href="https://github.com/PayTechUz/payme-pkg"><img src="https://img.shields.io/badge/Open_Source-❤️-FDA599?"/></a>
@@ -22,19 +21,24 @@ Requires-Dist: djangorestframework==3.*
22
21
  <a href="https://github.com/PayTechUz/payme-pkg/issues"><img src="https://img.shields.io/github/issues/gitbookIO/gitbook"/></a>
23
22
  </p>
24
23
 
25
- <p align="center">Welcome to payme-pkg, the open source payme sdk for python.</p>
24
+ <p align="center">Welcome to payme-pkg, the open source payme SDK for Python.</p>
25
+
26
+ <p align="center">You can use it for test and production mode. Join our community and ask everything you need.</p>
26
27
 
27
- <p align="center">You can use for test and production mode. Join our community and ask everything you need.
28
- </p>
29
28
  <a href="https://docs.pay-tech.uz">
30
- <p align="center">Visit to full documentation for Merchant and Subcribe Api</p>
29
+ <p align="center">Visit the full documentation for Merchant and Subscribe API</p>
31
30
  </a>
32
31
 
33
32
  <a href="https://youtu.be/xxiIggu_RNk?si=Idpg8omFvFDCYtcm" target="_blank">
33
+ <p align="center">
34
+ <img style="width: 60%;" src="https://i.postimg.cc/WbD32bHC/payme-pkg-demo-m4a.gif" alt="Payme PKG Demo">
35
+ </p>
36
+ </a>
37
+
34
38
  <p align="center">
35
- <img style="width: 60%;" src="https://i.postimg.cc/WbD32bHC/payme-pkg-demo-m4a.gif">
39
+ <a href="https://youtu.be/7q7-c72tHpc?si=Sr0EAmEawWAFRk1m" target="_blank">Watch the YouTube Demo</a>
36
40
  </p>
37
- </a>
41
+
38
42
  ## Installation
39
43
 
40
44
  ```shell
@@ -7,7 +7,7 @@ long_description = (here / "README.md").read_text(encoding="utf-8")
7
7
 
8
8
  setup(
9
9
  name='payme-pkg',
10
- version='3.0.10',
10
+ version='3.0.12',
11
11
  license='MIT',
12
12
  author="Muhammadali Akbarov",
13
13
  author_email='muhammadali17abc@gmail.com',
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