payme-pkg 2.5.3__tar.gz → 2.6.1__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 (42) hide show
  1. payme-pkg-2.6.1/LICENSE.txt +24 -0
  2. {payme-pkg-2.5.3 → payme-pkg-2.6.1}/PKG-INFO +1 -1
  3. {payme-pkg-2.5.3 → payme-pkg-2.6.1}/README.md +2 -0
  4. {payme-pkg-2.5.3 → payme-pkg-2.6.1}/lib/payme/methods/get_statement.py +2 -2
  5. {payme-pkg-2.5.3 → payme-pkg-2.6.1}/lib/payme/serializers.py +4 -6
  6. {payme-pkg-2.5.3 → payme-pkg-2.6.1}/lib/payme/views.py +1 -1
  7. {payme-pkg-2.5.3 → payme-pkg-2.6.1}/lib/payme_pkg.egg-info/PKG-INFO +1 -1
  8. {payme-pkg-2.5.3 → payme-pkg-2.6.1}/setup.py +1 -1
  9. payme-pkg-2.5.3/LICENSE.txt +0 -20
  10. {payme-pkg-2.5.3 → payme-pkg-2.6.1}/lib/payme/__init__.py +0 -0
  11. {payme-pkg-2.5.3 → payme-pkg-2.6.1}/lib/payme/admin.py +0 -0
  12. {payme-pkg-2.5.3 → payme-pkg-2.6.1}/lib/payme/apps.py +0 -0
  13. {payme-pkg-2.5.3 → payme-pkg-2.6.1}/lib/payme/cards/__init__.py +0 -0
  14. {payme-pkg-2.5.3 → payme-pkg-2.6.1}/lib/payme/cards/subscribe_cards.py +0 -0
  15. {payme-pkg-2.5.3 → payme-pkg-2.6.1}/lib/payme/decorators/__init__.py +0 -0
  16. {payme-pkg-2.5.3 → payme-pkg-2.6.1}/lib/payme/decorators/decorators.py +0 -0
  17. {payme-pkg-2.5.3 → payme-pkg-2.6.1}/lib/payme/errors/__init__.py +0 -0
  18. {payme-pkg-2.5.3 → payme-pkg-2.6.1}/lib/payme/errors/exceptions.py +0 -0
  19. {payme-pkg-2.5.3 → payme-pkg-2.6.1}/lib/payme/methods/__init__.py +0 -0
  20. {payme-pkg-2.5.3 → payme-pkg-2.6.1}/lib/payme/methods/cancel_transaction.py +0 -0
  21. {payme-pkg-2.5.3 → payme-pkg-2.6.1}/lib/payme/methods/check_perform_transaction.py +0 -0
  22. {payme-pkg-2.5.3 → payme-pkg-2.6.1}/lib/payme/methods/check_transaction.py +0 -0
  23. {payme-pkg-2.5.3 → payme-pkg-2.6.1}/lib/payme/methods/create_transaction.py +0 -0
  24. {payme-pkg-2.5.3 → payme-pkg-2.6.1}/lib/payme/methods/generate_link.py +0 -0
  25. {payme-pkg-2.5.3 → payme-pkg-2.6.1}/lib/payme/methods/perform_transaction.py +0 -0
  26. {payme-pkg-2.5.3 → payme-pkg-2.6.1}/lib/payme/migrations/0001_initial.py +0 -0
  27. {payme-pkg-2.5.3 → payme-pkg-2.6.1}/lib/payme/migrations/__init__.py +0 -0
  28. {payme-pkg-2.5.3 → payme-pkg-2.6.1}/lib/payme/models.py +0 -0
  29. {payme-pkg-2.5.3 → payme-pkg-2.6.1}/lib/payme/receipts/__init__.py +0 -0
  30. {payme-pkg-2.5.3 → payme-pkg-2.6.1}/lib/payme/receipts/subscribe_receipts.py +0 -0
  31. {payme-pkg-2.5.3 → payme-pkg-2.6.1}/lib/payme/urls.py +0 -0
  32. {payme-pkg-2.5.3 → payme-pkg-2.6.1}/lib/payme/utils/__init__.py +0 -0
  33. {payme-pkg-2.5.3 → payme-pkg-2.6.1}/lib/payme/utils/get_params.py +0 -0
  34. {payme-pkg-2.5.3 → payme-pkg-2.6.1}/lib/payme/utils/logging.py +0 -0
  35. {payme-pkg-2.5.3 → payme-pkg-2.6.1}/lib/payme/utils/make_aware_datetime.py +0 -0
  36. {payme-pkg-2.5.3 → payme-pkg-2.6.1}/lib/payme/utils/support.py +0 -0
  37. {payme-pkg-2.5.3 → payme-pkg-2.6.1}/lib/payme/utils/to_json.py +0 -0
  38. {payme-pkg-2.5.3 → payme-pkg-2.6.1}/lib/payme_pkg.egg-info/SOURCES.txt +0 -0
  39. {payme-pkg-2.5.3 → payme-pkg-2.6.1}/lib/payme_pkg.egg-info/dependency_links.txt +0 -0
  40. {payme-pkg-2.5.3 → payme-pkg-2.6.1}/lib/payme_pkg.egg-info/requires.txt +0 -0
  41. {payme-pkg-2.5.3 → payme-pkg-2.6.1}/lib/payme_pkg.egg-info/top_level.txt +0 -0
  42. {payme-pkg-2.5.3 → payme-pkg-2.6.1}/setup.cfg +0 -0
@@ -0,0 +1,24 @@
1
+ MIT License
2
+ -----------
3
+
4
+ Copyright (c) 2023 Muhammadali Akbarov
5
+ Permission is hereby granted, free of charge, to any person
6
+ obtaining a copy of this software and associated documentation
7
+ files (the "Software"), to deal in the Software without
8
+ restriction, including without limitation the rights to use,
9
+ copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the
11
+ Software is furnished to do so, subject to the following
12
+ conditions:
13
+
14
+ The above copyright notice and this permission notice shall be
15
+ included in all copies or substantial portions of the Software.
16
+
17
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
18
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
19
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
20
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
21
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
22
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
23
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
24
+ OTHER DEALINGS IN THE SOFTWARE.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.0
2
2
  Name: payme-pkg
3
- Version: 2.5.3
3
+ Version: 2.6.1
4
4
  Summary: UNKNOWN
5
5
  Home-page: https://github.com/Muhammadali-Akbarov/payme-pkg
6
6
  Author: Muhammadali Akbarov
@@ -1,4 +1,5 @@
1
1
  # Payme Uzbekistan Integration Uzcard and Humo
2
+
2
3
  <p align="center">
3
4
  <a href="https://youtu.be/r2RO3kJVP7g">
4
5
  <img style="width: 60%;" src="https://i.postimg.cc/WbD32bHC/payme-pkg-demo-m4a.gif">
@@ -73,6 +74,7 @@ ORDER_MODEL = 'your_app.models.Your_Order_Model'
73
74
  ```
74
75
 
75
76
  Create a new View that about handling call backs
77
+
76
78
  ```python
77
79
  from payme.views import MerchantAPIView
78
80
 
@@ -43,12 +43,12 @@ class GetStatement:
43
43
  'time': int(t.created_at.timestamp()),
44
44
  'amount': t.amount,
45
45
  'account': {'order_id': t.order_id},
46
- 'create_time': t.state,
46
+ 'create_time': t.created_at_ms,
47
47
  'perform_time': t.perform_time,
48
48
  'cancel_time': t.cancel_time,
49
49
  'transaction': t.order_id,
50
50
  'state': t.state,
51
- 'reason': t.reason,
51
+ 'reason': int(t.reason) if t.reason is not None else None,
52
52
  'receivers': [] # not implemented
53
53
  } for t in transactions
54
54
  ]
@@ -42,15 +42,13 @@ class MerchatTransactionsModelSerializer(serializers.ModelSerializer):
42
42
 
43
43
  return attrs
44
44
 
45
- def validate_amount(self, amount) -> int:
45
+ def validate_amount(self, amount: int) -> int:
46
46
  """
47
47
  Validator for Transactions Amount.
48
48
  """
49
- if amount is None:
50
- raise IncorrectAmount()
51
-
52
- if int(amount) <= int(settings.PAYME.get("PAYME_MIN_AMOUNT", 0)):
53
- raise IncorrectAmount("Payment amount is less than allowed.")
49
+ if amount is not None:
50
+ if int(amount) <= int(settings.PAYME.get("PAYME_MIN_AMOUNT", 0)):
51
+ raise IncorrectAmount("Payment amount is less than allowed.")
54
52
 
55
53
  return amount
56
54
 
@@ -31,7 +31,7 @@ class MerchantAPIView(APIView):
31
31
  def post(self, request) -> Response:
32
32
  """
33
33
  Payme sends post request to our call back url.
34
- That methods are includes 5 methods
34
+ That methods are includes 6 methods
35
35
  - CheckPerformTransaction
36
36
  - CreateTransaction
37
37
  - PerformTransaction
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.0
2
2
  Name: payme-pkg
3
- Version: 2.5.3
3
+ Version: 2.6.1
4
4
  Summary: UNKNOWN
5
5
  Home-page: https://github.com/Muhammadali-Akbarov/payme-pkg
6
6
  Author: Muhammadali Akbarov
@@ -3,7 +3,7 @@ from setuptools import setup, find_packages
3
3
 
4
4
  setup(
5
5
  name='payme-pkg',
6
- version='2.5.3',
6
+ version='2.6.1',
7
7
  license='MIT',
8
8
  author="Muhammadali Akbarov",
9
9
  author_email='muhammadali17abc@gmail.com',
@@ -1,20 +0,0 @@
1
- Copyright (c) 2021 Giorgos Myrianthous
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining
4
- a copy of this software and associated documentation files (the
5
- "Software"), to deal in the Software without restriction, including
6
- without limitation the rights to use, copy, modify, merge, publish,
7
- distribute, sublicense, and/or sell copies of the Software, and to
8
- permit persons to whom the Software is furnished to do so, subject to
9
- the following conditions:
10
-
11
- The above copyright notice and this permission notice shall be
12
- included in all copies or substantial portions of the Software.
13
-
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
File without changes
File without changes
File without changes
File without changes
File without changes