paytechuz 0.2.3__tar.gz → 0.2.4__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 paytechuz might be problematic. Click here for more details.
- {paytechuz-0.2.3/src/paytechuz.egg-info → paytechuz-0.2.4}/PKG-INFO +3 -3
- {paytechuz-0.2.3 → paytechuz-0.2.4}/README.md +2 -2
- {paytechuz-0.2.3 → paytechuz-0.2.4}/pyproject.toml +1 -1
- {paytechuz-0.2.3 → paytechuz-0.2.4}/setup.py +1 -1
- {paytechuz-0.2.3 → paytechuz-0.2.4}/src/paytechuz/integrations/django/views.py +2 -2
- {paytechuz-0.2.3 → paytechuz-0.2.4/src/paytechuz.egg-info}/PKG-INFO +3 -3
- {paytechuz-0.2.3 → paytechuz-0.2.4}/MANIFEST.in +0 -0
- {paytechuz-0.2.3 → paytechuz-0.2.4}/setup.cfg +0 -0
- {paytechuz-0.2.3 → paytechuz-0.2.4}/src/__init__.py +0 -0
- {paytechuz-0.2.3 → paytechuz-0.2.4}/src/core/__init__.py +0 -0
- {paytechuz-0.2.3 → paytechuz-0.2.4}/src/core/base.py +0 -0
- {paytechuz-0.2.3 → paytechuz-0.2.4}/src/core/constants.py +0 -0
- {paytechuz-0.2.3 → paytechuz-0.2.4}/src/core/exceptions.py +0 -0
- {paytechuz-0.2.3 → paytechuz-0.2.4}/src/core/http.py +0 -0
- {paytechuz-0.2.3 → paytechuz-0.2.4}/src/core/payme/errors.py +0 -0
- {paytechuz-0.2.3 → paytechuz-0.2.4}/src/core/utils.py +0 -0
- {paytechuz-0.2.3 → paytechuz-0.2.4}/src/gateways/__init__.py +0 -0
- {paytechuz-0.2.3 → paytechuz-0.2.4}/src/gateways/click/__init__.py +0 -0
- {paytechuz-0.2.3 → paytechuz-0.2.4}/src/gateways/click/client.py +0 -0
- {paytechuz-0.2.3 → paytechuz-0.2.4}/src/gateways/click/merchant.py +0 -0
- {paytechuz-0.2.3 → paytechuz-0.2.4}/src/gateways/click/webhook.py +0 -0
- {paytechuz-0.2.3 → paytechuz-0.2.4}/src/gateways/payme/__init__.py +0 -0
- {paytechuz-0.2.3 → paytechuz-0.2.4}/src/gateways/payme/cards.py +0 -0
- {paytechuz-0.2.3 → paytechuz-0.2.4}/src/gateways/payme/client.py +0 -0
- {paytechuz-0.2.3 → paytechuz-0.2.4}/src/gateways/payme/receipts.py +0 -0
- {paytechuz-0.2.3 → paytechuz-0.2.4}/src/gateways/payme/webhook.py +0 -0
- {paytechuz-0.2.3 → paytechuz-0.2.4}/src/integrations/__init__.py +0 -0
- {paytechuz-0.2.3 → paytechuz-0.2.4}/src/integrations/django/__init__.py +0 -0
- {paytechuz-0.2.3 → paytechuz-0.2.4}/src/integrations/django/admin.py +0 -0
- {paytechuz-0.2.3 → paytechuz-0.2.4}/src/integrations/django/apps.py +0 -0
- {paytechuz-0.2.3 → paytechuz-0.2.4}/src/integrations/django/migrations/0001_initial.py +0 -0
- {paytechuz-0.2.3 → paytechuz-0.2.4}/src/integrations/django/migrations/__init__.py +0 -0
- {paytechuz-0.2.3 → paytechuz-0.2.4}/src/integrations/django/models.py +0 -0
- {paytechuz-0.2.3 → paytechuz-0.2.4}/src/integrations/django/signals.py +0 -0
- {paytechuz-0.2.3 → paytechuz-0.2.4}/src/integrations/django/views.py +0 -0
- {paytechuz-0.2.3 → paytechuz-0.2.4}/src/integrations/django/webhooks.py +0 -0
- {paytechuz-0.2.3 → paytechuz-0.2.4}/src/integrations/fastapi/__init__.py +0 -0
- {paytechuz-0.2.3 → paytechuz-0.2.4}/src/integrations/fastapi/models.py +0 -0
- {paytechuz-0.2.3 → paytechuz-0.2.4}/src/integrations/fastapi/routes.py +0 -0
- {paytechuz-0.2.3 → paytechuz-0.2.4}/src/integrations/fastapi/schemas.py +0 -0
- {paytechuz-0.2.3 → paytechuz-0.2.4}/src/paytechuz/__init__.py +0 -0
- {paytechuz-0.2.3 → paytechuz-0.2.4}/src/paytechuz/core/__init__.py +0 -0
- {paytechuz-0.2.3 → paytechuz-0.2.4}/src/paytechuz/core/base.py +0 -0
- {paytechuz-0.2.3 → paytechuz-0.2.4}/src/paytechuz/core/constants.py +0 -0
- {paytechuz-0.2.3 → paytechuz-0.2.4}/src/paytechuz/core/exceptions.py +0 -0
- {paytechuz-0.2.3 → paytechuz-0.2.4}/src/paytechuz/core/http.py +0 -0
- {paytechuz-0.2.3 → paytechuz-0.2.4}/src/paytechuz/core/payme/errors.py +0 -0
- {paytechuz-0.2.3 → paytechuz-0.2.4}/src/paytechuz/core/utils.py +0 -0
- {paytechuz-0.2.3 → paytechuz-0.2.4}/src/paytechuz/gateways/__init__.py +0 -0
- {paytechuz-0.2.3 → paytechuz-0.2.4}/src/paytechuz/gateways/click/__init__.py +0 -0
- {paytechuz-0.2.3 → paytechuz-0.2.4}/src/paytechuz/gateways/click/client.py +0 -0
- {paytechuz-0.2.3 → paytechuz-0.2.4}/src/paytechuz/gateways/click/merchant.py +0 -0
- {paytechuz-0.2.3 → paytechuz-0.2.4}/src/paytechuz/gateways/click/webhook.py +0 -0
- {paytechuz-0.2.3 → paytechuz-0.2.4}/src/paytechuz/gateways/payme/__init__.py +0 -0
- {paytechuz-0.2.3 → paytechuz-0.2.4}/src/paytechuz/gateways/payme/cards.py +0 -0
- {paytechuz-0.2.3 → paytechuz-0.2.4}/src/paytechuz/gateways/payme/client.py +0 -0
- {paytechuz-0.2.3 → paytechuz-0.2.4}/src/paytechuz/gateways/payme/receipts.py +0 -0
- {paytechuz-0.2.3 → paytechuz-0.2.4}/src/paytechuz/gateways/payme/webhook.py +0 -0
- {paytechuz-0.2.3 → paytechuz-0.2.4}/src/paytechuz/integrations/__init__.py +0 -0
- {paytechuz-0.2.3 → paytechuz-0.2.4}/src/paytechuz/integrations/django/__init__.py +0 -0
- {paytechuz-0.2.3 → paytechuz-0.2.4}/src/paytechuz/integrations/django/admin.py +0 -0
- {paytechuz-0.2.3 → paytechuz-0.2.4}/src/paytechuz/integrations/django/apps.py +0 -0
- {paytechuz-0.2.3 → paytechuz-0.2.4}/src/paytechuz/integrations/django/migrations/0001_initial.py +0 -0
- {paytechuz-0.2.3 → paytechuz-0.2.4}/src/paytechuz/integrations/django/migrations/__init__.py +0 -0
- {paytechuz-0.2.3 → paytechuz-0.2.4}/src/paytechuz/integrations/django/models.py +0 -0
- {paytechuz-0.2.3 → paytechuz-0.2.4}/src/paytechuz/integrations/django/signals.py +0 -0
- {paytechuz-0.2.3 → paytechuz-0.2.4}/src/paytechuz/integrations/django/webhooks.py +0 -0
- {paytechuz-0.2.3 → paytechuz-0.2.4}/src/paytechuz/integrations/fastapi/__init__.py +0 -0
- {paytechuz-0.2.3 → paytechuz-0.2.4}/src/paytechuz/integrations/fastapi/models.py +0 -0
- {paytechuz-0.2.3 → paytechuz-0.2.4}/src/paytechuz/integrations/fastapi/routes.py +0 -0
- {paytechuz-0.2.3 → paytechuz-0.2.4}/src/paytechuz/integrations/fastapi/schemas.py +0 -0
- {paytechuz-0.2.3 → paytechuz-0.2.4}/src/paytechuz.egg-info/SOURCES.txt +0 -0
- {paytechuz-0.2.3 → paytechuz-0.2.4}/src/paytechuz.egg-info/dependency_links.txt +0 -0
- {paytechuz-0.2.3 → paytechuz-0.2.4}/src/paytechuz.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: paytechuz
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.4
|
|
4
4
|
Summary: Unified Python package for Uzbekistan payment gateways
|
|
5
5
|
Home-page: https://github.com/Muhammadali-Akbarov/paytechuz
|
|
6
6
|
Author: Muhammadali Akbarov
|
|
@@ -102,10 +102,10 @@ CLICK_COMMISSION_PERCENT = 0.0
|
|
|
102
102
|
|
|
103
103
|
```python
|
|
104
104
|
# views.py
|
|
105
|
-
from paytechuz.integrations.django.views import
|
|
105
|
+
from paytechuz.integrations.django.views import BasePaymeWebhookView
|
|
106
106
|
from .models import Order
|
|
107
107
|
|
|
108
|
-
class PaymeWebhookView(
|
|
108
|
+
class PaymeWebhookView(BasePaymeWebhookView):
|
|
109
109
|
def successfully_payment(self, params, transaction):
|
|
110
110
|
order = Order.objects.get(id=transaction.account_id)
|
|
111
111
|
order.status = 'paid'
|
|
@@ -87,10 +87,10 @@ CLICK_COMMISSION_PERCENT = 0.0
|
|
|
87
87
|
|
|
88
88
|
```python
|
|
89
89
|
# views.py
|
|
90
|
-
from paytechuz.integrations.django.views import
|
|
90
|
+
from paytechuz.integrations.django.views import BasePaymeWebhookView
|
|
91
91
|
from .models import Order
|
|
92
92
|
|
|
93
|
-
class PaymeWebhookView(
|
|
93
|
+
class PaymeWebhookView(BasePaymeWebhookView):
|
|
94
94
|
def successfully_payment(self, params, transaction):
|
|
95
95
|
order = Order.objects.get(id=transaction.account_id)
|
|
96
96
|
order.status = 'paid'
|
|
@@ -10,7 +10,7 @@ from .webhooks import PaymeWebhook, ClickWebhook
|
|
|
10
10
|
logger = logging.getLogger(__name__)
|
|
11
11
|
|
|
12
12
|
@method_decorator(csrf_exempt, name='dispatch')
|
|
13
|
-
class
|
|
13
|
+
class BasePaymeWebhookView(PaymeWebhook):
|
|
14
14
|
"""
|
|
15
15
|
Default Payme webhook view.
|
|
16
16
|
|
|
@@ -55,7 +55,7 @@ class PaymeWebhookView(PaymeWebhook):
|
|
|
55
55
|
logger.info(f"Payme payment cancelled: {transaction.transaction_id}")
|
|
56
56
|
|
|
57
57
|
@method_decorator(csrf_exempt, name='dispatch')
|
|
58
|
-
class
|
|
58
|
+
class BaseClickWebhookView(ClickWebhook):
|
|
59
59
|
"""
|
|
60
60
|
Default Click webhook view.
|
|
61
61
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: paytechuz
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.4
|
|
4
4
|
Summary: Unified Python package for Uzbekistan payment gateways
|
|
5
5
|
Home-page: https://github.com/Muhammadali-Akbarov/paytechuz
|
|
6
6
|
Author: Muhammadali Akbarov
|
|
@@ -102,10 +102,10 @@ CLICK_COMMISSION_PERCENT = 0.0
|
|
|
102
102
|
|
|
103
103
|
```python
|
|
104
104
|
# views.py
|
|
105
|
-
from paytechuz.integrations.django.views import
|
|
105
|
+
from paytechuz.integrations.django.views import BasePaymeWebhookView
|
|
106
106
|
from .models import Order
|
|
107
107
|
|
|
108
|
-
class PaymeWebhookView(
|
|
108
|
+
class PaymeWebhookView(BasePaymeWebhookView):
|
|
109
109
|
def successfully_payment(self, params, transaction):
|
|
110
110
|
order = Order.objects.get(id=transaction.account_id)
|
|
111
111
|
order.status = 'paid'
|
|
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
|
|
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
|
{paytechuz-0.2.3 → paytechuz-0.2.4}/src/paytechuz/integrations/django/migrations/0001_initial.py
RENAMED
|
File without changes
|
{paytechuz-0.2.3 → paytechuz-0.2.4}/src/paytechuz/integrations/django/migrations/__init__.py
RENAMED
|
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
|