payme-pkg 3.0.13__tar.gz → 3.0.14__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.13 → payme_pkg-3.0.14}/PKG-INFO +23 -1
  2. {payme_pkg-3.0.13 → payme_pkg-3.0.14}/README.md +22 -0
  3. {payme_pkg-3.0.13 → payme_pkg-3.0.14}/payme/classes/initializer.py +12 -0
  4. {payme_pkg-3.0.13 → payme_pkg-3.0.14}/payme_pkg.egg-info/PKG-INFO +23 -1
  5. {payme_pkg-3.0.13 → payme_pkg-3.0.14}/setup.py +1 -1
  6. {payme_pkg-3.0.13 → payme_pkg-3.0.14}/LICENSE.txt +0 -0
  7. {payme_pkg-3.0.13 → payme_pkg-3.0.14}/payme/__init__.py +0 -0
  8. {payme_pkg-3.0.13 → payme_pkg-3.0.14}/payme/admin.py +0 -0
  9. {payme_pkg-3.0.13 → payme_pkg-3.0.14}/payme/apps.py +0 -0
  10. {payme_pkg-3.0.13 → payme_pkg-3.0.14}/payme/classes/__init__.py +0 -0
  11. {payme_pkg-3.0.13 → payme_pkg-3.0.14}/payme/classes/cards.py +0 -0
  12. {payme_pkg-3.0.13 → payme_pkg-3.0.14}/payme/classes/client.py +0 -0
  13. {payme_pkg-3.0.13 → payme_pkg-3.0.14}/payme/classes/http.py +0 -0
  14. {payme_pkg-3.0.13 → payme_pkg-3.0.14}/payme/classes/receipts.py +0 -0
  15. {payme_pkg-3.0.13 → payme_pkg-3.0.14}/payme/const.py +0 -0
  16. {payme_pkg-3.0.13 → payme_pkg-3.0.14}/payme/exceptions/__init__.py +0 -0
  17. {payme_pkg-3.0.13 → payme_pkg-3.0.14}/payme/exceptions/general.py +0 -0
  18. {payme_pkg-3.0.13 → payme_pkg-3.0.14}/payme/exceptions/webhook.py +0 -0
  19. {payme_pkg-3.0.13 → payme_pkg-3.0.14}/payme/migrations/__init__.py +0 -0
  20. {payme_pkg-3.0.13 → payme_pkg-3.0.14}/payme/models.py +0 -0
  21. {payme_pkg-3.0.13 → payme_pkg-3.0.14}/payme/types/__init__.py +0 -0
  22. {payme_pkg-3.0.13 → payme_pkg-3.0.14}/payme/types/request/__init__.py +0 -0
  23. {payme_pkg-3.0.13 → payme_pkg-3.0.14}/payme/types/response/__init__.py +0 -0
  24. {payme_pkg-3.0.13 → payme_pkg-3.0.14}/payme/types/response/cards.py +0 -0
  25. {payme_pkg-3.0.13 → payme_pkg-3.0.14}/payme/types/response/receipts.py +0 -0
  26. {payme_pkg-3.0.13 → payme_pkg-3.0.14}/payme/types/response/webhook.py +0 -0
  27. {payme_pkg-3.0.13 → payme_pkg-3.0.14}/payme/urls.py +0 -0
  28. {payme_pkg-3.0.13 → payme_pkg-3.0.14}/payme/util.py +0 -0
  29. {payme_pkg-3.0.13 → payme_pkg-3.0.14}/payme/views.py +0 -0
  30. {payme_pkg-3.0.13 → payme_pkg-3.0.14}/payme_pkg.egg-info/SOURCES.txt +0 -0
  31. {payme_pkg-3.0.13 → payme_pkg-3.0.14}/payme_pkg.egg-info/dependency_links.txt +0 -0
  32. {payme_pkg-3.0.13 → payme_pkg-3.0.14}/payme_pkg.egg-info/requires.txt +0 -0
  33. {payme_pkg-3.0.13 → payme_pkg-3.0.14}/payme_pkg.egg-info/top_level.txt +0 -0
  34. {payme_pkg-3.0.13 → payme_pkg-3.0.14}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: payme-pkg
3
- Version: 3.0.13
3
+ Version: 3.0.14
4
4
  Home-page: https://github.com/Muhammadali-Akbarov/payme-pkg
5
5
  Author: Muhammadali Akbarov
6
6
  Author-email: muhammadali17abc@gmail.com
@@ -147,3 +147,25 @@ print(pay_link)
147
147
  ```
148
148
  https://checkout.paycom.uz/bT15b3VyLXBheW1lLWlkO2FjLmlkPTEyMzQ1NjthPTUwMDAwMDtjPWh0dHBzOi8vZXhhbXBsZS5jb20=
149
149
  ```
150
+
151
+
152
+ ## Generate Fallback Link
153
+
154
+
155
+ Example to generate fallback link:
156
+
157
+ - Input
158
+
159
+ ```python
160
+ from payme import Payme
161
+
162
+ payme = Payme(payme_id="your-payme-id")
163
+ fallback_link = payme.initializer.generate_fallback_link()
164
+ print(fallback_link)
165
+ ```
166
+
167
+ - Output
168
+
169
+ ```
170
+ https://payme.uz/fallback/merchant/?id=59f9ca12dsadaa1717
171
+ ```
@@ -133,3 +133,25 @@ print(pay_link)
133
133
  ```
134
134
  https://checkout.paycom.uz/bT15b3VyLXBheW1lLWlkO2FjLmlkPTEyMzQ1NjthPTUwMDAwMDtjPWh0dHBzOi8vZXhhbXBsZS5jb20=
135
135
  ```
136
+
137
+
138
+ ## Generate Fallback Link
139
+
140
+
141
+ Example to generate fallback link:
142
+
143
+ - Input
144
+
145
+ ```python
146
+ from payme import Payme
147
+
148
+ payme = Payme(payme_id="your-payme-id")
149
+ fallback_link = payme.initializer.generate_fallback_link()
150
+ print(fallback_link)
151
+ ```
152
+
153
+ - Output
154
+
155
+ ```
156
+ https://payme.uz/fallback/merchant/?id=59f9ca12dsadaa1717
157
+ ```
@@ -55,3 +55,15 @@ class Initializer:
55
55
  )
56
56
  params = base64.b64encode(params.encode("utf-8")).decode("utf-8")
57
57
  return f"https://checkout.paycom.uz/{params}"
58
+
59
+ def generate_fallback_link(self):
60
+ """
61
+ Generate a fallback URL for the Payme checkout.
62
+
63
+ Returns
64
+ -------
65
+ str
66
+ A fallback URL formatted as a URL, ready to be used in the payment
67
+ process.
68
+ """
69
+ return f"https://payme.uz/fallback/merchant/?id={self.payme_id}"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: payme-pkg
3
- Version: 3.0.13
3
+ Version: 3.0.14
4
4
  Home-page: https://github.com/Muhammadali-Akbarov/payme-pkg
5
5
  Author: Muhammadali Akbarov
6
6
  Author-email: muhammadali17abc@gmail.com
@@ -147,3 +147,25 @@ print(pay_link)
147
147
  ```
148
148
  https://checkout.paycom.uz/bT15b3VyLXBheW1lLWlkO2FjLmlkPTEyMzQ1NjthPTUwMDAwMDtjPWh0dHBzOi8vZXhhbXBsZS5jb20=
149
149
  ```
150
+
151
+
152
+ ## Generate Fallback Link
153
+
154
+
155
+ Example to generate fallback link:
156
+
157
+ - Input
158
+
159
+ ```python
160
+ from payme import Payme
161
+
162
+ payme = Payme(payme_id="your-payme-id")
163
+ fallback_link = payme.initializer.generate_fallback_link()
164
+ print(fallback_link)
165
+ ```
166
+
167
+ - Output
168
+
169
+ ```
170
+ https://payme.uz/fallback/merchant/?id=59f9ca12dsadaa1717
171
+ ```
@@ -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.13',
10
+ version='3.0.14',
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