payme-pkg 3.0.15__tar.gz → 3.0.16__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.15 → payme_pkg-3.0.16}/PKG-INFO +4 -3
- {payme_pkg-3.0.15 → payme_pkg-3.0.16}/README.md +3 -2
- {payme_pkg-3.0.15 → payme_pkg-3.0.16}/payme/classes/client.py +2 -1
- {payme_pkg-3.0.15 → payme_pkg-3.0.16}/payme/classes/initializer.py +4 -2
- {payme_pkg-3.0.15 → payme_pkg-3.0.16}/payme_pkg.egg-info/PKG-INFO +4 -3
- {payme_pkg-3.0.15 → payme_pkg-3.0.16}/setup.py +1 -1
- {payme_pkg-3.0.15 → payme_pkg-3.0.16}/LICENSE.txt +0 -0
- {payme_pkg-3.0.15 → payme_pkg-3.0.16}/payme/__init__.py +0 -0
- {payme_pkg-3.0.15 → payme_pkg-3.0.16}/payme/admin.py +0 -0
- {payme_pkg-3.0.15 → payme_pkg-3.0.16}/payme/apps.py +0 -0
- {payme_pkg-3.0.15 → payme_pkg-3.0.16}/payme/classes/__init__.py +0 -0
- {payme_pkg-3.0.15 → payme_pkg-3.0.16}/payme/classes/cards.py +0 -0
- {payme_pkg-3.0.15 → payme_pkg-3.0.16}/payme/classes/http.py +0 -0
- {payme_pkg-3.0.15 → payme_pkg-3.0.16}/payme/classes/receipts.py +0 -0
- {payme_pkg-3.0.15 → payme_pkg-3.0.16}/payme/const.py +0 -0
- {payme_pkg-3.0.15 → payme_pkg-3.0.16}/payme/exceptions/__init__.py +0 -0
- {payme_pkg-3.0.15 → payme_pkg-3.0.16}/payme/exceptions/general.py +0 -0
- {payme_pkg-3.0.15 → payme_pkg-3.0.16}/payme/exceptions/webhook.py +0 -0
- {payme_pkg-3.0.15 → payme_pkg-3.0.16}/payme/migrations/__init__.py +0 -0
- {payme_pkg-3.0.15 → payme_pkg-3.0.16}/payme/models.py +0 -0
- {payme_pkg-3.0.15 → payme_pkg-3.0.16}/payme/types/__init__.py +0 -0
- {payme_pkg-3.0.15 → payme_pkg-3.0.16}/payme/types/request/__init__.py +0 -0
- {payme_pkg-3.0.15 → payme_pkg-3.0.16}/payme/types/response/__init__.py +0 -0
- {payme_pkg-3.0.15 → payme_pkg-3.0.16}/payme/types/response/cards.py +0 -0
- {payme_pkg-3.0.15 → payme_pkg-3.0.16}/payme/types/response/receipts.py +0 -0
- {payme_pkg-3.0.15 → payme_pkg-3.0.16}/payme/types/response/webhook.py +0 -0
- {payme_pkg-3.0.15 → payme_pkg-3.0.16}/payme/urls.py +0 -0
- {payme_pkg-3.0.15 → payme_pkg-3.0.16}/payme/util.py +0 -0
- {payme_pkg-3.0.15 → payme_pkg-3.0.16}/payme/views.py +0 -0
- {payme_pkg-3.0.15 → payme_pkg-3.0.16}/payme_pkg.egg-info/SOURCES.txt +0 -0
- {payme_pkg-3.0.15 → payme_pkg-3.0.16}/payme_pkg.egg-info/dependency_links.txt +0 -0
- {payme_pkg-3.0.15 → payme_pkg-3.0.16}/payme_pkg.egg-info/requires.txt +0 -0
- {payme_pkg-3.0.15 → payme_pkg-3.0.16}/payme_pkg.egg-info/top_level.txt +0 -0
- {payme_pkg-3.0.15 → payme_pkg-3.0.16}/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.16
|
|
4
4
|
Home-page: https://github.com/Muhammadali-Akbarov/payme-pkg
|
|
5
5
|
Author: Muhammadali Akbarov
|
|
6
6
|
Author-email: muhammadali17abc@gmail.com
|
|
@@ -156,10 +156,11 @@ Example to generate fallback link:
|
|
|
156
156
|
|
|
157
157
|
- Input
|
|
158
158
|
|
|
159
|
+
The ID in the fallback is different from the merchant ID. You can get the ID from the Payme team.
|
|
159
160
|
```python
|
|
160
161
|
from payme import Payme
|
|
161
162
|
|
|
162
|
-
payme = Payme(payme_id="your-payme-id")
|
|
163
|
+
payme = Payme(payme_id="your-payme-id", fallback_id="your-fallback-id")
|
|
163
164
|
|
|
164
165
|
form_fields = {
|
|
165
166
|
"driver_id": 12345,
|
|
@@ -173,5 +174,5 @@ print(fallback_link)
|
|
|
173
174
|
- Output
|
|
174
175
|
|
|
175
176
|
```
|
|
176
|
-
https://payme.uz/fallback/merchant/?id=
|
|
177
|
+
https://payme.uz/fallback/merchant/?id=examplelinkgenerated&driver_id=12345&amount=1000
|
|
177
178
|
```
|
|
@@ -142,10 +142,11 @@ Example to generate fallback link:
|
|
|
142
142
|
|
|
143
143
|
- Input
|
|
144
144
|
|
|
145
|
+
The ID in the fallback is different from the merchant ID. You can get the ID from the Payme team.
|
|
145
146
|
```python
|
|
146
147
|
from payme import Payme
|
|
147
148
|
|
|
148
|
-
payme = Payme(payme_id="your-payme-id")
|
|
149
|
+
payme = Payme(payme_id="your-payme-id", fallback_id="your-fallback-id")
|
|
149
150
|
|
|
150
151
|
form_fields = {
|
|
151
152
|
"driver_id": 12345,
|
|
@@ -159,5 +160,5 @@ print(fallback_link)
|
|
|
159
160
|
- Output
|
|
160
161
|
|
|
161
162
|
```
|
|
162
|
-
https://payme.uz/fallback/merchant/?id=
|
|
163
|
+
https://payme.uz/fallback/merchant/?id=examplelinkgenerated&driver_id=12345&amount=1000
|
|
163
164
|
```
|
|
@@ -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.
|
|
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():
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: payme-pkg
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.16
|
|
4
4
|
Home-page: https://github.com/Muhammadali-Akbarov/payme-pkg
|
|
5
5
|
Author: Muhammadali Akbarov
|
|
6
6
|
Author-email: muhammadali17abc@gmail.com
|
|
@@ -156,10 +156,11 @@ Example to generate fallback link:
|
|
|
156
156
|
|
|
157
157
|
- Input
|
|
158
158
|
|
|
159
|
+
The ID in the fallback is different from the merchant ID. You can get the ID from the Payme team.
|
|
159
160
|
```python
|
|
160
161
|
from payme import Payme
|
|
161
162
|
|
|
162
|
-
payme = Payme(payme_id="your-payme-id")
|
|
163
|
+
payme = Payme(payme_id="your-payme-id", fallback_id="your-fallback-id")
|
|
163
164
|
|
|
164
165
|
form_fields = {
|
|
165
166
|
"driver_id": 12345,
|
|
@@ -173,5 +174,5 @@ print(fallback_link)
|
|
|
173
174
|
- Output
|
|
174
175
|
|
|
175
176
|
```
|
|
176
|
-
https://payme.uz/fallback/merchant/?id=
|
|
177
|
+
https://payme.uz/fallback/merchant/?id=examplelinkgenerated&driver_id=12345&amount=1000
|
|
177
178
|
```
|
|
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
|