settings split for development and production.py

This commit is contained in:
2025-08-04 19:26:38 +03:00
parent f501be9794
commit 8294db9189
35 changed files with 711 additions and 66 deletions
+5 -4
View File
@@ -5,9 +5,10 @@ import urllib.parse
from datetime import datetime, timedelta
import requests
import environ
from DepoT.settings import env
# from DepoT.settings import env
env = environ.Env()
class EPay:
payment_types = {
@@ -33,8 +34,8 @@ class EPay:
datetime.today() + timedelta(days=int(env("INVOICE_EXPIRE_PERIOD")))
).strftime("%d.%m.%Y")
if amount == 0:
amount = 1000
# if amount == 0:
# amount = 1000 # for
message = f"MIN={client_id}\nINVOICE={invoice}\nAMOUNT={amount}\nCURRENCY={currency}\nEXP_TIME={expiry}\nDESCR={description}"
encoded_data, checksum = EPay.encode_message(message)