Initial commit

This commit is contained in:
Abdulaziz Axmadaliyev
2026-02-26 16:35:47 +05:00
commit 92165edbe6
2984 changed files with 629155 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
import base64
import json
from app.core.config import settings
def generate_payme_checkout_url(order_id: int, amount: str):
data = {
"m": settings.PAYME_MERCHANT_ID,
"ac.order": str(order_id),
"a": int(float(amount) * 100),
}
encoded = base64.b64encode(json.dumps(data).encode()).decode()
return f"https://checkout.paycom.uz/{encoded}"