paytechuz 0.2.4__py3-none-any.whl → 0.2.5__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 paytechuz might be problematic. Click here for more details.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: paytechuz
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.5
|
|
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
|
|
@@ -66,8 +66,8 @@ payme_link = payme.create_payment(
|
|
|
66
66
|
)
|
|
67
67
|
|
|
68
68
|
click_link = click.create_payment(
|
|
69
|
+
id="order_123",
|
|
69
70
|
amount=150000, # amount in UZS
|
|
70
|
-
account_id="order_123",
|
|
71
71
|
description="Test payment",
|
|
72
72
|
return_url="https://example.com/return"
|
|
73
73
|
)
|
|
@@ -117,6 +117,19 @@ class PaymeWebhookView(BasePaymeWebhookView):
|
|
|
117
117
|
order.save()
|
|
118
118
|
```
|
|
119
119
|
|
|
120
|
+
3. Add webhook URLs to `urls.py`:
|
|
121
|
+
|
|
122
|
+
```python
|
|
123
|
+
# urls.py
|
|
124
|
+
from django.urls import path
|
|
125
|
+
from .views import PaymeWebhookView
|
|
126
|
+
|
|
127
|
+
urlpatterns = [
|
|
128
|
+
# ...
|
|
129
|
+
path('payments/webhook/payme/', PaymeWebhookView.as_view(), name='payme_webhook'),
|
|
130
|
+
]
|
|
131
|
+
```
|
|
132
|
+
|
|
120
133
|
### FastAPI Integration
|
|
121
134
|
|
|
122
135
|
1. Create webhook handler:
|
|
@@ -30,7 +30,7 @@ paytechuz/integrations/fastapi/__init__.py,sha256=DLnhAZQZf2ghu8BuFFfE7FzbNKWQQ2
|
|
|
30
30
|
paytechuz/integrations/fastapi/models.py,sha256=eWGUpiKufj47AK8Hld4A91jRDj0ZKQzAf95CyUozmvo,4638
|
|
31
31
|
paytechuz/integrations/fastapi/routes.py,sha256=D17QeyY4-aX6tCNmk5h3UiavukvVrE5e6JOFCy4t_n8,36629
|
|
32
32
|
paytechuz/integrations/fastapi/schemas.py,sha256=CkNohj22mQQje8Pu_IkTQwUPAoYHNOKXlGjqaRX_SGQ,3784
|
|
33
|
-
paytechuz-0.2.
|
|
34
|
-
paytechuz-0.2.
|
|
35
|
-
paytechuz-0.2.
|
|
36
|
-
paytechuz-0.2.
|
|
33
|
+
paytechuz-0.2.5.dist-info/METADATA,sha256=7mdAIIZfMprRMXd1nIGW4dcrYi2WvL6RuvYIhMTU3Qs,4390
|
|
34
|
+
paytechuz-0.2.5.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
|
35
|
+
paytechuz-0.2.5.dist-info/top_level.txt,sha256=oloyKGNVj9Z2h3wpKG5yPyTlpdpWW0-CWr-j-asCWBc,10
|
|
36
|
+
paytechuz-0.2.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|