payme-pkg 2.5.9__py3-none-any.whl → 2.6.1__py3-none-any.whl

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.

@@ -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
  ]
payme/views.py CHANGED
@@ -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
@@ -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: 2.1
2
2
  Name: payme-pkg
3
- Version: 2.5.9
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
@@ -4,7 +4,7 @@ payme/apps.py,sha256=7b92Ava_YcKd1XYRZg9iopgAgh_85D23pqDYFaHfwvs,264
4
4
  payme/models.py,sha256=WTJATic7HEjnkVDQkGxj76i51jgpQV3xkMuglXpGvm0,2208
5
5
  payme/serializers.py,sha256=3ZmvWSDZGS7dBp-AktIYAiJMy9iMNwUnCfGH5oS3erU,2775
6
6
  payme/urls.py,sha256=Yn4w_CQN9q2bi0MbyKMQfvQPMO0ZSSCCp-WgymZYVv4,139
7
- payme/views.py,sha256=w-ZwE0eWc0rUYyCE6OlWWiM8_sXa8YvMqy-DwWIYhtc,5423
7
+ payme/views.py,sha256=n91qBWO5QMqWmsFP3xWv3Qxp04I3pZNeFc2OKklcy0Y,5423
8
8
  payme/cards/__init__.py,sha256=_kXz2r5vOjEXYeMsfx3iu1XUmJXnsLt2Ylj9zAqAsWc,29
9
9
  payme/cards/subscribe_cards.py,sha256=_Yr1OnwrZJ1dlSGsjwVRoXdrrgqb2ZW88CyDW8LYWa4,5071
10
10
  payme/decorators/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -17,7 +17,7 @@ payme/methods/check_perform_transaction.py,sha256=91MG3HYj57_ouf_606qcyEDTdptfUr
17
17
  payme/methods/check_transaction.py,sha256=rE6jhDJhEO-1ndUsaCuuZwu6yC59zZNPAjclM-yovfI,1429
18
18
  payme/methods/create_transaction.py,sha256=UMGzzuCn3ZuqW3oWr53cP5NqWLL_6u5IL4Qussuc0s4,2312
19
19
  payme/methods/generate_link.py,sha256=Br4LJVEurtYMxmCLRl6_zMo02FFlwxac105AvJW6HAY,1964
20
- payme/methods/get_statement.py,sha256=dApK2PXQ_QhsIl_IJcibs7bOEJWYL6-b8ylRokbfyqE,2129
20
+ payme/methods/get_statement.py,sha256=RRfydD2ZSiQ-sOFgRSZeib98cJSiWXF0768c7Tn-m2A,2176
21
21
  payme/methods/perform_transaction.py,sha256=gwruqKrMU_U_UjG6tUJG_C4Y6DowzNmRy2pL5P0cfyY,1560
22
22
  payme/migrations/0001_initial.py,sha256=3umrPcN8JQ0Bw_TsCtdjhRqzPNum8HyRv-FhlmBrEJs,2021
23
23
  payme/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -29,8 +29,8 @@ payme/utils/logging.py,sha256=jp4YbMxxLPqtbpKDNvi-tAyvp3cgg_PjH-6X6ePUc2E,186
29
29
  payme/utils/make_aware_datetime.py,sha256=S0qmf7SgFvSS3tV7Zv4snTwMemvkf07EbOM-10e6xwE,546
30
30
  payme/utils/support.py,sha256=UE6bgkvVDbhoMolYPaTnadb_-i-Hc_AIDQTZ-vddA3A,209
31
31
  payme/utils/to_json.py,sha256=WYt2z-bkX8VyrF-QZkHCj8TKAOKYntTK4PlESoJPlrw,236
32
- payme_pkg-2.5.9.dist-info/LICENSE.txt,sha256=s2LHnt00v2iSinmz-OptOb9OF8q89_lo606KrgOFLOE,1062
33
- payme_pkg-2.5.9.dist-info/METADATA,sha256=uij_1NQjvBYWzSC7q9K5yGReN4nGq0dqUwMVZnbH3gs,443
34
- payme_pkg-2.5.9.dist-info/WHEEL,sha256=00yskusixUoUt5ob_CiUp6LsnN5lqzTJpoqOFg_FVIc,92
35
- payme_pkg-2.5.9.dist-info/top_level.txt,sha256=8mN-hGAa38pWbhrKHFs9CZywPCdidhMuwPKwuFJa0qw,6
36
- payme_pkg-2.5.9.dist-info/RECORD,,
32
+ payme_pkg-2.6.1.dist-info/LICENSE.txt,sha256=75dBVYmbzWUhwtaB1MSZfj-M-PGaMmeT9UVPli2-ZJ0,1086
33
+ payme_pkg-2.6.1.dist-info/METADATA,sha256=2LoYNm2lc44X5OKCp4echyDd32HKmRSR22WCDPwridg,443
34
+ payme_pkg-2.6.1.dist-info/WHEEL,sha256=00yskusixUoUt5ob_CiUp6LsnN5lqzTJpoqOFg_FVIc,92
35
+ payme_pkg-2.6.1.dist-info/top_level.txt,sha256=8mN-hGAa38pWbhrKHFs9CZywPCdidhMuwPKwuFJa0qw,6
36
+ payme_pkg-2.6.1.dist-info/RECORD,,
@@ -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.