payme-pkg 3.0.20__tar.gz → 3.0.22__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 (35) hide show
  1. {payme_pkg-3.0.20 → payme_pkg-3.0.22}/PKG-INFO +1 -7
  2. {payme_pkg-3.0.20 → payme_pkg-3.0.22}/README.md +0 -6
  3. {payme_pkg-3.0.20 → payme_pkg-3.0.22}/payme/classes/client.py +1 -1
  4. {payme_pkg-3.0.20 → payme_pkg-3.0.22}/payme/classes/initializer.py +6 -2
  5. {payme_pkg-3.0.20 → payme_pkg-3.0.22}/payme_pkg.egg-info/PKG-INFO +1 -7
  6. {payme_pkg-3.0.20 → payme_pkg-3.0.22}/setup.py +1 -1
  7. {payme_pkg-3.0.20 → payme_pkg-3.0.22}/LICENSE.txt +0 -0
  8. {payme_pkg-3.0.20 → payme_pkg-3.0.22}/payme/__init__.py +0 -0
  9. {payme_pkg-3.0.20 → payme_pkg-3.0.22}/payme/admin.py +0 -0
  10. {payme_pkg-3.0.20 → payme_pkg-3.0.22}/payme/apps.py +0 -0
  11. {payme_pkg-3.0.20 → payme_pkg-3.0.22}/payme/classes/__init__.py +0 -0
  12. {payme_pkg-3.0.20 → payme_pkg-3.0.22}/payme/classes/cards.py +0 -0
  13. {payme_pkg-3.0.20 → payme_pkg-3.0.22}/payme/classes/http.py +0 -0
  14. {payme_pkg-3.0.20 → payme_pkg-3.0.22}/payme/classes/receipts.py +0 -0
  15. {payme_pkg-3.0.20 → payme_pkg-3.0.22}/payme/const.py +0 -0
  16. {payme_pkg-3.0.20 → payme_pkg-3.0.22}/payme/exceptions/__init__.py +0 -0
  17. {payme_pkg-3.0.20 → payme_pkg-3.0.22}/payme/exceptions/general.py +0 -0
  18. {payme_pkg-3.0.20 → payme_pkg-3.0.22}/payme/exceptions/webhook.py +0 -0
  19. {payme_pkg-3.0.20 → payme_pkg-3.0.22}/payme/migrations/0001_initial.py +0 -0
  20. {payme_pkg-3.0.20 → payme_pkg-3.0.22}/payme/migrations/__init__.py +0 -0
  21. {payme_pkg-3.0.20 → payme_pkg-3.0.22}/payme/models.py +0 -0
  22. {payme_pkg-3.0.20 → payme_pkg-3.0.22}/payme/types/__init__.py +0 -0
  23. {payme_pkg-3.0.20 → payme_pkg-3.0.22}/payme/types/request/__init__.py +0 -0
  24. {payme_pkg-3.0.20 → payme_pkg-3.0.22}/payme/types/response/__init__.py +0 -0
  25. {payme_pkg-3.0.20 → payme_pkg-3.0.22}/payme/types/response/cards.py +0 -0
  26. {payme_pkg-3.0.20 → payme_pkg-3.0.22}/payme/types/response/receipts.py +0 -0
  27. {payme_pkg-3.0.20 → payme_pkg-3.0.22}/payme/types/response/webhook.py +0 -0
  28. {payme_pkg-3.0.20 → payme_pkg-3.0.22}/payme/urls.py +0 -0
  29. {payme_pkg-3.0.20 → payme_pkg-3.0.22}/payme/util.py +0 -0
  30. {payme_pkg-3.0.20 → payme_pkg-3.0.22}/payme/views.py +0 -0
  31. {payme_pkg-3.0.20 → payme_pkg-3.0.22}/payme_pkg.egg-info/SOURCES.txt +0 -0
  32. {payme_pkg-3.0.20 → payme_pkg-3.0.22}/payme_pkg.egg-info/dependency_links.txt +0 -0
  33. {payme_pkg-3.0.20 → payme_pkg-3.0.22}/payme_pkg.egg-info/requires.txt +0 -0
  34. {payme_pkg-3.0.20 → payme_pkg-3.0.22}/payme_pkg.egg-info/top_level.txt +0 -0
  35. {payme_pkg-3.0.20 → payme_pkg-3.0.22}/setup.cfg +0 -0
@@ -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
@@ -39,12 +39,6 @@ Requires-Dist: djangorestframework==3.*
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"
@@ -25,12 +25,6 @@
25
25
  <p align="center">Visit the full documentation for Merchant and Subscribe API</p>
26
26
  </a>
27
27
 
28
- <a href="https://youtu.be/xxiIggu_RNk?si=Idpg8omFvFDCYtcm" target="_blank">
29
- <p align="center">
30
- <img style="width: 60%;" src="https://i.postimg.cc/WbD32bHC/payme-pkg-demo-m4a.gif" alt="Payme PKG Demo">
31
- </p>
32
- </a>
33
-
34
28
  <p align="center">
35
29
  <a href="https://youtu.be/7q7-c72tHpc?si=Sr0EAmEawWAFRk1m" target="_blank">
36
30
  <img src="https://img.shields.io/badge/Watch%20Demo-red?logo=youtube&logoColor=white&style=for-the-badge"
@@ -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
@@ -39,12 +39,6 @@ Requires-Dist: djangorestframework==3.*
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,7 +8,7 @@ long_description = (here / "README.md").read_text(encoding="utf-8")
8
8
 
9
9
  setup(
10
10
  name='payme-pkg',
11
- version='3.0.20',
11
+ version='3.0.22',
12
12
  license='MIT',
13
13
  author="Muhammadali Akbarov",
14
14
  author_email='muhammadali17abc@gmail.com',
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