payme-pkg 3.0.20__py3-none-any.whl → 3.0.22__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.

payme/classes/client.py CHANGED
@@ -26,5 +26,5 @@ class Payme:
26
26
  url = Networks.TEST_NET.value
27
27
 
28
28
  self.cards = Cards(url=url, payme_id=payme_id)
29
- self.initializer = Initializer(payme_id=payme_id, fallback_id=fallback_id)
29
+ self.initializer = Initializer(payme_id=payme_id, fallback_id=fallback_id, is_test_mode=is_test_mode)
30
30
  self.receipts = Receipts(url=url, payme_id=payme_id, payme_key=payme_key) # noqa
@@ -13,10 +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, fallback_id: str = None):
16
+ def __init__(self, payme_id: str = None, fallback_id: str = None, is_test_mode: bool = False):
17
17
  self.payme_id = payme_id
18
18
  self.fallback_id = fallback_id
19
-
19
+ self.is_test_mode = is_test_mode
20
20
 
21
21
  def generate_pay_link(
22
22
  self,
@@ -56,6 +56,10 @@ class Initializer:
56
56
  f'm={self.payme_id};ac.{settings.PAYME_ACCOUNT_FIELD}={id};a={amount};c={return_url}'
57
57
  )
58
58
  params = base64.b64encode(params.encode("utf-8")).decode("utf-8")
59
+
60
+ if self.is_test_mode is True:
61
+ return f"https://test.paycom.uz/{params}"
62
+
59
63
  return f"https://checkout.paycom.uz/{params}"
60
64
 
61
65
  def generate_fallback_link(self, form_fields: dict = None):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: payme-pkg
3
- Version: 3.0.20
3
+ Version: 3.0.22
4
4
  Home-page: https://github.com/Muhammadali-Akbarov/payme-pkg
5
5
  Author: Muhammadali Akbarov
6
6
  Author-email: muhammadali17abc@gmail.com
@@ -8,9 +8,9 @@ License: MIT
8
8
  Keywords: paymeuz paycomuz payme-merchant merchant-api subscribe-api payme-pkg payme-api
9
9
  Description-Content-Type: text/markdown
10
10
  License-File: LICENSE.txt
11
- Requires-Dist: requests ==2.*
12
- Requires-Dist: djangorestframework ==3.*
13
- Requires-Dist: dataclasses ==0.* ; python_version < "3.7"
11
+ Requires-Dist: requests (==2.*)
12
+ Requires-Dist: djangorestframework (==3.*)
13
+ Requires-Dist: dataclasses (==0.*) ; python_version < "3.7"
14
14
 
15
15
  <h1 align="center">Payme Software Development Kit</h1>
16
16
 
@@ -39,12 +39,6 @@ Requires-Dist: dataclasses ==0.* ; python_version < "3.7"
39
39
  <p align="center">Visit the full documentation for Merchant and Subscribe API</p>
40
40
  </a>
41
41
 
42
- <a href="https://youtu.be/xxiIggu_RNk?si=Idpg8omFvFDCYtcm" target="_blank">
43
- <p align="center">
44
- <img style="width: 60%;" src="https://i.postimg.cc/WbD32bHC/payme-pkg-demo-m4a.gif" alt="Payme PKG Demo">
45
- </p>
46
- </a>
47
-
48
42
  <p align="center">
49
43
  <a href="https://youtu.be/7q7-c72tHpc?si=Sr0EAmEawWAFRk1m" target="_blank">
50
44
  <img src="https://img.shields.io/badge/Watch%20Demo-red?logo=youtube&logoColor=white&style=for-the-badge"
@@ -8,9 +8,9 @@ payme/util.py,sha256=UFb4cEnaufS_hh9C_0z079CSgJGivYjIgOl2iAFrBMs,625
8
8
  payme/views.py,sha256=AYWXP9zJGcLkTM91RIiL6Ou4RHqLph3NyYIlzPAN3fU,11939
9
9
  payme/classes/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
10
  payme/classes/cards.py,sha256=dr3SQdKAhfQmECtwHYW2nmx8wXaNYQFkg5uQU9z8vs4,7624
11
- payme/classes/client.py,sha256=_eMcSTiwMdwIe0aeccVav-43Uq7ORdH7idOuSTPjpcg,837
11
+ payme/classes/client.py,sha256=Fjck3vSRh8-NQ8HnxwytCn_qZm6UfwMKCBYDHtUSJAs,864
12
12
  payme/classes/http.py,sha256=OufMeHrj0jTomDJx_6go9GC1NtA6QpQCxIiM3ISy3Eo,3530
13
- payme/classes/initializer.py,sha256=FvzKp068JfSzHwcQ_w-eXYTomV5ggz7_p5zYBkAtBI4,2326
13
+ payme/classes/initializer.py,sha256=TWJnlJTXefROMleIvJeT64xjIVWQU-LIXai8TZ_M7nw,2488
14
14
  payme/classes/receipts.py,sha256=KU4qyGHWZpWW88SjmmTD_N2Tz8pWOCvBbOPnw5tcS3Y,10094
15
15
  payme/exceptions/__init__.py,sha256=HoBFnDA3eW_xWZiFlonJK4vhBDTsuik91tvgzXTy8KA,94
16
16
  payme/exceptions/general.py,sha256=-rkzvuLi6VoITMLrszrP7c-gM8X6lM8AWttd770KSJc,7679
@@ -23,8 +23,8 @@ payme/types/response/__init__.py,sha256=GAj5pjZ9oIO67T6YMiPd1fhTIvGrPfTv96tykfeC
23
23
  payme/types/response/cards.py,sha256=ilXFDUOPNabVsrQN1KWEzDiL6cDxdVvCbfEl6jCzGpU,1997
24
24
  payme/types/response/receipts.py,sha256=TlZeJyymRVHIorg0kbUaogy6MZxN1oq2jHGVRUnlY5A,4070
25
25
  payme/types/response/webhook.py,sha256=Br6Gr_-h7sCmOc3ag7H5yBryB8j-bm2mrt39Cy_Fy2E,2918
26
- payme_pkg-3.0.20.dist-info/LICENSE.txt,sha256=75dBVYmbzWUhwtaB1MSZfj-M-PGaMmeT9UVPli2-ZJ0,1086
27
- payme_pkg-3.0.20.dist-info/METADATA,sha256=T_NZ7hWGdfTLYcgTYfq7QG693MG088odgIQYz1ZdrKY,5492
28
- payme_pkg-3.0.20.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
29
- payme_pkg-3.0.20.dist-info/top_level.txt,sha256=8mN-hGAa38pWbhrKHFs9CZywPCdidhMuwPKwuFJa0qw,6
30
- payme_pkg-3.0.20.dist-info/RECORD,,
26
+ payme_pkg-3.0.22.dist-info/LICENSE.txt,sha256=75dBVYmbzWUhwtaB1MSZfj-M-PGaMmeT9UVPli2-ZJ0,1086
27
+ payme_pkg-3.0.22.dist-info/METADATA,sha256=c5D9qqGVK_qD6SPkvlpxEDePViDZVE0zK0S09KS1bGo,5278
28
+ payme_pkg-3.0.22.dist-info/WHEEL,sha256=Mdi9PDNwEZptOjTlUcAth7XJDFtKrHYaQMPulZeBCiQ,91
29
+ payme_pkg-3.0.22.dist-info/top_level.txt,sha256=8mN-hGAa38pWbhrKHFs9CZywPCdidhMuwPKwuFJa0qw,6
30
+ payme_pkg-3.0.22.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.43.0)
2
+ Generator: setuptools (73.0.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5