payme-pkg 3.0.14__tar.gz → 3.0.14b0__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.14 → payme_pkg-3.0.14b0}/PKG-INFO +1 -23
- {payme_pkg-3.0.14 → payme_pkg-3.0.14b0}/README.md +0 -22
- {payme_pkg-3.0.14 → payme_pkg-3.0.14b0}/payme/classes/initializer.py +0 -12
- {payme_pkg-3.0.14 → payme_pkg-3.0.14b0}/payme/exceptions/general.py +0 -9
- {payme_pkg-3.0.14 → payme_pkg-3.0.14b0}/payme_pkg.egg-info/PKG-INFO +1 -23
- {payme_pkg-3.0.14 → payme_pkg-3.0.14b0}/setup.py +1 -1
- {payme_pkg-3.0.14 → payme_pkg-3.0.14b0}/LICENSE.txt +0 -0
- {payme_pkg-3.0.14 → payme_pkg-3.0.14b0}/payme/__init__.py +0 -0
- {payme_pkg-3.0.14 → payme_pkg-3.0.14b0}/payme/admin.py +0 -0
- {payme_pkg-3.0.14 → payme_pkg-3.0.14b0}/payme/apps.py +0 -0
- {payme_pkg-3.0.14 → payme_pkg-3.0.14b0}/payme/classes/__init__.py +0 -0
- {payme_pkg-3.0.14 → payme_pkg-3.0.14b0}/payme/classes/cards.py +0 -0
- {payme_pkg-3.0.14 → payme_pkg-3.0.14b0}/payme/classes/client.py +0 -0
- {payme_pkg-3.0.14 → payme_pkg-3.0.14b0}/payme/classes/http.py +0 -0
- {payme_pkg-3.0.14 → payme_pkg-3.0.14b0}/payme/classes/receipts.py +0 -0
- {payme_pkg-3.0.14 → payme_pkg-3.0.14b0}/payme/const.py +0 -0
- {payme_pkg-3.0.14 → payme_pkg-3.0.14b0}/payme/exceptions/__init__.py +0 -0
- {payme_pkg-3.0.14 → payme_pkg-3.0.14b0}/payme/exceptions/webhook.py +0 -0
- {payme_pkg-3.0.14 → payme_pkg-3.0.14b0}/payme/migrations/__init__.py +0 -0
- {payme_pkg-3.0.14 → payme_pkg-3.0.14b0}/payme/models.py +0 -0
- {payme_pkg-3.0.14 → payme_pkg-3.0.14b0}/payme/types/__init__.py +0 -0
- {payme_pkg-3.0.14 → payme_pkg-3.0.14b0}/payme/types/request/__init__.py +0 -0
- {payme_pkg-3.0.14 → payme_pkg-3.0.14b0}/payme/types/response/__init__.py +0 -0
- {payme_pkg-3.0.14 → payme_pkg-3.0.14b0}/payme/types/response/cards.py +0 -0
- {payme_pkg-3.0.14 → payme_pkg-3.0.14b0}/payme/types/response/receipts.py +0 -0
- {payme_pkg-3.0.14 → payme_pkg-3.0.14b0}/payme/types/response/webhook.py +0 -0
- {payme_pkg-3.0.14 → payme_pkg-3.0.14b0}/payme/urls.py +0 -0
- {payme_pkg-3.0.14 → payme_pkg-3.0.14b0}/payme/util.py +0 -0
- {payme_pkg-3.0.14 → payme_pkg-3.0.14b0}/payme/views.py +0 -0
- {payme_pkg-3.0.14 → payme_pkg-3.0.14b0}/payme_pkg.egg-info/SOURCES.txt +0 -0
- {payme_pkg-3.0.14 → payme_pkg-3.0.14b0}/payme_pkg.egg-info/dependency_links.txt +0 -0
- {payme_pkg-3.0.14 → payme_pkg-3.0.14b0}/payme_pkg.egg-info/requires.txt +0 -0
- {payme_pkg-3.0.14 → payme_pkg-3.0.14b0}/payme_pkg.egg-info/top_level.txt +0 -0
- {payme_pkg-3.0.14 → payme_pkg-3.0.14b0}/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.14b0
|
|
4
4
|
Home-page: https://github.com/Muhammadali-Akbarov/payme-pkg
|
|
5
5
|
Author: Muhammadali Akbarov
|
|
6
6
|
Author-email: muhammadali17abc@gmail.com
|
|
@@ -147,25 +147,3 @@ 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,25 +133,3 @@ 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,15 +55,3 @@ 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}"
|
|
@@ -146,14 +146,6 @@ class InsufficientFundsError(CardError):
|
|
|
146
146
|
super().__init__(-31303, self.message, data)
|
|
147
147
|
|
|
148
148
|
|
|
149
|
-
class InsufficientFundsErrorV2(CardError):
|
|
150
|
-
"""Insufficient funds on the card."""
|
|
151
|
-
message = "Insufficient funds on the card."
|
|
152
|
-
|
|
153
|
-
def __init__(self, data=None):
|
|
154
|
-
super().__init__(-31630, self.message, data)
|
|
155
|
-
|
|
156
|
-
|
|
157
149
|
class InvalidCardNumberError(CardError):
|
|
158
150
|
"""Invalid card number provided."""
|
|
159
151
|
message = "Invalid card number."
|
|
@@ -262,7 +254,6 @@ errors_map = {
|
|
|
262
254
|
-31301: SmsNotConnectedError,
|
|
263
255
|
-31302: BalanceError,
|
|
264
256
|
-31303: InsufficientFundsError,
|
|
265
|
-
-31630: InsufficientFundsErrorV2,
|
|
266
257
|
-31300: InvalidCardNumberError,
|
|
267
258
|
-31002: ProcessingServerError,
|
|
268
259
|
-31110: OtpSendError,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: payme-pkg
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.14b0
|
|
4
4
|
Home-page: https://github.com/Muhammadali-Akbarov/payme-pkg
|
|
5
5
|
Author: Muhammadali Akbarov
|
|
6
6
|
Author-email: muhammadali17abc@gmail.com
|
|
@@ -147,25 +147,3 @@ 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
|
-
```
|
|
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
|