payme-pkg 3.0.15__tar.gz → 3.0.17__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.15 → payme_pkg-3.0.17}/PKG-INFO +24 -8
  2. {payme_pkg-3.0.15 → payme_pkg-3.0.17}/README.md +23 -7
  3. {payme_pkg-3.0.15 → payme_pkg-3.0.17}/payme/classes/client.py +2 -1
  4. {payme_pkg-3.0.15 → payme_pkg-3.0.17}/payme/classes/initializer.py +4 -2
  5. {payme_pkg-3.0.15 → payme_pkg-3.0.17}/payme/views.py +2 -2
  6. {payme_pkg-3.0.15 → payme_pkg-3.0.17}/payme_pkg.egg-info/PKG-INFO +24 -8
  7. {payme_pkg-3.0.15 → payme_pkg-3.0.17}/setup.py +1 -1
  8. {payme_pkg-3.0.15 → payme_pkg-3.0.17}/LICENSE.txt +0 -0
  9. {payme_pkg-3.0.15 → payme_pkg-3.0.17}/payme/__init__.py +0 -0
  10. {payme_pkg-3.0.15 → payme_pkg-3.0.17}/payme/admin.py +0 -0
  11. {payme_pkg-3.0.15 → payme_pkg-3.0.17}/payme/apps.py +0 -0
  12. {payme_pkg-3.0.15 → payme_pkg-3.0.17}/payme/classes/__init__.py +0 -0
  13. {payme_pkg-3.0.15 → payme_pkg-3.0.17}/payme/classes/cards.py +0 -0
  14. {payme_pkg-3.0.15 → payme_pkg-3.0.17}/payme/classes/http.py +0 -0
  15. {payme_pkg-3.0.15 → payme_pkg-3.0.17}/payme/classes/receipts.py +0 -0
  16. {payme_pkg-3.0.15 → payme_pkg-3.0.17}/payme/const.py +0 -0
  17. {payme_pkg-3.0.15 → payme_pkg-3.0.17}/payme/exceptions/__init__.py +0 -0
  18. {payme_pkg-3.0.15 → payme_pkg-3.0.17}/payme/exceptions/general.py +0 -0
  19. {payme_pkg-3.0.15 → payme_pkg-3.0.17}/payme/exceptions/webhook.py +0 -0
  20. {payme_pkg-3.0.15 → payme_pkg-3.0.17}/payme/migrations/__init__.py +0 -0
  21. {payme_pkg-3.0.15 → payme_pkg-3.0.17}/payme/models.py +0 -0
  22. {payme_pkg-3.0.15 → payme_pkg-3.0.17}/payme/types/__init__.py +0 -0
  23. {payme_pkg-3.0.15 → payme_pkg-3.0.17}/payme/types/request/__init__.py +0 -0
  24. {payme_pkg-3.0.15 → payme_pkg-3.0.17}/payme/types/response/__init__.py +0 -0
  25. {payme_pkg-3.0.15 → payme_pkg-3.0.17}/payme/types/response/cards.py +0 -0
  26. {payme_pkg-3.0.15 → payme_pkg-3.0.17}/payme/types/response/receipts.py +0 -0
  27. {payme_pkg-3.0.15 → payme_pkg-3.0.17}/payme/types/response/webhook.py +0 -0
  28. {payme_pkg-3.0.15 → payme_pkg-3.0.17}/payme/urls.py +0 -0
  29. {payme_pkg-3.0.15 → payme_pkg-3.0.17}/payme/util.py +0 -0
  30. {payme_pkg-3.0.15 → payme_pkg-3.0.17}/payme_pkg.egg-info/SOURCES.txt +0 -0
  31. {payme_pkg-3.0.15 → payme_pkg-3.0.17}/payme_pkg.egg-info/dependency_links.txt +0 -0
  32. {payme_pkg-3.0.15 → payme_pkg-3.0.17}/payme_pkg.egg-info/requires.txt +0 -0
  33. {payme_pkg-3.0.15 → payme_pkg-3.0.17}/payme_pkg.egg-info/top_level.txt +0 -0
  34. {payme_pkg-3.0.15 → payme_pkg-3.0.17}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: payme-pkg
3
- Version: 3.0.15
3
+ Version: 3.0.17
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 PKG</h1>
15
+ <h1 align="center">Payme Software Development Kit</h1>
16
16
 
17
17
  <p align="center">
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>
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="t.me/+DK7n7lKx8GY5ZDZi"><img src="https://img.shields.io/badge/Community-Join%20Us-blueviolet"/></a>
21
- <a href="https://github.com/PayTechUz/payme-pkg/issues"><img src="https://img.shields.io/github/issues/gitbookIO/gitbook"/></a>
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">Watch the YouTube Demo</a>
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
@@ -156,10 +171,11 @@ Example to generate fallback link:
156
171
 
157
172
  - Input
158
173
 
174
+ The ID in the fallback is different from the merchant ID. You can get the ID from the Payme team.
159
175
  ```python
160
176
  from payme import Payme
161
177
 
162
- payme = Payme(payme_id="your-payme-id")
178
+ payme = Payme(payme_id="your-payme-id", fallback_id="your-fallback-id")
163
179
 
164
180
  form_fields = {
165
181
  "driver_id": 12345,
@@ -173,5 +189,5 @@ print(fallback_link)
173
189
  - Output
174
190
 
175
191
  ```
176
- https://payme.uz/fallback/merchant/?id=5feb5dd783c40aed047fe655&driver_id=12345&amount=1000
192
+ https://payme.uz/fallback/merchant/?id=examplelinkgenerated&driver_id=12345&amount=1000
177
193
  ```
@@ -1,10 +1,20 @@
1
- <h1 align="center">Payme PKG</h1>
1
+ <h1 align="center">Payme Software Development Kit</h1>
2
2
 
3
3
  <p align="center">
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>
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="t.me/+DK7n7lKx8GY5ZDZi"><img src="https://img.shields.io/badge/Community-Join%20Us-blueviolet"/></a>
7
- <a href="https://github.com/PayTechUz/payme-pkg/issues"><img src="https://img.shields.io/github/issues/gitbookIO/gitbook"/></a>
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">Watch the YouTube Demo</a>
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
@@ -142,10 +157,11 @@ Example to generate fallback link:
142
157
 
143
158
  - Input
144
159
 
160
+ The ID in the fallback is different from the merchant ID. You can get the ID from the Payme team.
145
161
  ```python
146
162
  from payme import Payme
147
163
 
148
- payme = Payme(payme_id="your-payme-id")
164
+ payme = Payme(payme_id="your-payme-id", fallback_id="your-fallback-id")
149
165
 
150
166
  form_fields = {
151
167
  "driver_id": 12345,
@@ -159,5 +175,5 @@ print(fallback_link)
159
175
  - Output
160
176
 
161
177
  ```
162
- https://payme.uz/fallback/merchant/?id=5feb5dd783c40aed047fe655&driver_id=12345&amount=1000
178
+ https://payme.uz/fallback/merchant/?id=examplelinkgenerated&driver_id=12345&amount=1000
163
179
  ```
@@ -14,6 +14,7 @@ class Payme:
14
14
  def __init__(
15
15
  self,
16
16
  payme_id: str,
17
+ fallback_id: Union[str, None] = None,
17
18
  payme_key: Union[str, None] = None,
18
19
  is_test_mode: bool = False
19
20
  ):
@@ -25,5 +26,5 @@ class Payme:
25
26
  url = Networks.TEST_NET.value
26
27
 
27
28
  self.cards = Cards(url=url, payme_id=payme_id)
28
- self.initializer = Initializer(payme_id=payme_id)
29
+ self.initializer = Initializer(payme_id=payme_id, fallback_id=fallback_id)
29
30
  self.receipts = Receipts(url=url, payme_id=payme_id, payme_key=payme_key) # noqa
@@ -13,8 +13,10 @@ class Initializer:
13
13
  The Payme ID associated with your account
14
14
  """
15
15
 
16
- def __init__(self, payme_id: str = None):
16
+ def __init__(self, payme_id: str = None, fallback_id: str = None):
17
17
  self.payme_id = payme_id
18
+ self.fallback_id = fallback_id
19
+
18
20
 
19
21
  def generate_pay_link(
20
22
  self,
@@ -71,7 +73,7 @@ class Initializer:
71
73
  A fallback URL formatted as a URL, ready to be used in the payment
72
74
  process.
73
75
  """
74
- result = f"https://payme.uz/fallback/merchant/?id={self.payme_id}"
76
+ result = f"https://payme.uz/fallback/merchant/?id={self.fallback_id}"
75
77
 
76
78
  if form_fields is not None:
77
79
  for key, value in form_fields.items():
@@ -58,7 +58,7 @@ class PaymeWebHookAPIView(views.APIView):
58
58
  """
59
59
  Handle the incoming webhook request.
60
60
  """
61
- self.__check_authorize(request)
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 __check_authorize(request):
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.15
3
+ Version: 3.0.17
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 PKG</h1>
15
+ <h1 align="center">Payme Software Development Kit</h1>
16
16
 
17
17
  <p align="center">
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>
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="t.me/+DK7n7lKx8GY5ZDZi"><img src="https://img.shields.io/badge/Community-Join%20Us-blueviolet"/></a>
21
- <a href="https://github.com/PayTechUz/payme-pkg/issues"><img src="https://img.shields.io/github/issues/gitbookIO/gitbook"/></a>
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">Watch the YouTube Demo</a>
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
@@ -156,10 +171,11 @@ Example to generate fallback link:
156
171
 
157
172
  - Input
158
173
 
174
+ The ID in the fallback is different from the merchant ID. You can get the ID from the Payme team.
159
175
  ```python
160
176
  from payme import Payme
161
177
 
162
- payme = Payme(payme_id="your-payme-id")
178
+ payme = Payme(payme_id="your-payme-id", fallback_id="your-fallback-id")
163
179
 
164
180
  form_fields = {
165
181
  "driver_id": 12345,
@@ -173,5 +189,5 @@ print(fallback_link)
173
189
  - Output
174
190
 
175
191
  ```
176
- https://payme.uz/fallback/merchant/?id=5feb5dd783c40aed047fe655&driver_id=12345&amount=1000
192
+ https://payme.uz/fallback/merchant/?id=examplelinkgenerated&driver_id=12345&amount=1000
177
193
  ```
@@ -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.15',
10
+ version='3.0.17',
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