settings split for development and production.py
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user