paytechuz 0.2.8__py3-none-any.whl → 0.2.9__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.9
|
|
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
|
|
@@ -13,7 +13,7 @@ Dynamic: author-email
|
|
|
13
13
|
Dynamic: home-page
|
|
14
14
|
Dynamic: requires-python
|
|
15
15
|
|
|
16
|
-
#
|
|
16
|
+
# paytechuz
|
|
17
17
|
|
|
18
18
|
[](https://badge.fury.io/py/paytechuz)
|
|
19
19
|
[](https://pypi.org/project/paytechuz/)
|
|
@@ -185,12 +185,15 @@ urlpatterns = [
|
|
|
185
185
|
1. Set up database models:
|
|
186
186
|
|
|
187
187
|
```python
|
|
188
|
-
from
|
|
189
|
-
|
|
188
|
+
from datetime import datetime, timezone
|
|
189
|
+
|
|
190
190
|
from sqlalchemy.orm import sessionmaker
|
|
191
|
+
from sqlalchemy.ext.declarative import declarative_base
|
|
192
|
+
from sqlalchemy import create_engine, Column, Integer, String, Float, DateTime
|
|
193
|
+
|
|
191
194
|
from paytechuz.integrations.fastapi import Base as PaymentsBase
|
|
192
195
|
from paytechuz.integrations.fastapi.models import run_migrations
|
|
193
|
-
|
|
196
|
+
|
|
194
197
|
|
|
195
198
|
# Create database engine
|
|
196
199
|
SQLALCHEMY_DATABASE_URL = "sqlite:///./payments.db"
|
|
@@ -223,9 +226,12 @@ SessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine)
|
|
|
223
226
|
|
|
224
227
|
```python
|
|
225
228
|
from fastapi import FastAPI, Request, Depends
|
|
229
|
+
|
|
226
230
|
from sqlalchemy.orm import Session
|
|
231
|
+
|
|
227
232
|
from paytechuz.integrations.fastapi import PaymeWebhookHandler, ClickWebhookHandler
|
|
228
233
|
|
|
234
|
+
|
|
229
235
|
app = FastAPI()
|
|
230
236
|
|
|
231
237
|
# Dependency to get the database session
|
|
@@ -30,7 +30,7 @@ paytechuz/integrations/fastapi/__init__.py,sha256=DLnhAZQZf2ghu8BuFFfE7FzbNKWQQ2
|
|
|
30
30
|
paytechuz/integrations/fastapi/models.py,sha256=uayHUDt0nN6hIkhbGrM1NZRXzpCPvaPMPEjowJFUQPI,4425
|
|
31
31
|
paytechuz/integrations/fastapi/routes.py,sha256=X7ejcICe4lFtpsKMXxvyrklqHWQJMhR-AdhcitSiXlE,37647
|
|
32
32
|
paytechuz/integrations/fastapi/schemas.py,sha256=PgRqviJiD4-u3_CIkUOX8R7L8Yqn8L44WLte7968G0E,3887
|
|
33
|
-
paytechuz-0.2.
|
|
34
|
-
paytechuz-0.2.
|
|
35
|
-
paytechuz-0.2.
|
|
36
|
-
paytechuz-0.2.
|
|
33
|
+
paytechuz-0.2.9.dist-info/METADATA,sha256=Eu72qsJ-eLm7diiIWqV0K_hXVqMtrxwnt5BcjJxcZ-0,9413
|
|
34
|
+
paytechuz-0.2.9.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
35
|
+
paytechuz-0.2.9.dist-info/top_level.txt,sha256=oloyKGNVj9Z2h3wpKG5yPyTlpdpWW0-CWr-j-asCWBc,10
|
|
36
|
+
paytechuz-0.2.9.dist-info/RECORD,,
|
|
File without changes
|