Move payments utils into utils folder
This commit is contained in:
@@ -10,7 +10,7 @@ from aiohttp import web
|
||||
|
||||
from config import CRYPTO_BOT_ENABLE, CRYPTO_BOT_TOKEN, RUB_TO_USDT
|
||||
from utils.database import add_connection, add_payment, check_connection_exists, get_key_count, update_balance
|
||||
from handlers.payments.utils import send_payment_success_notification
|
||||
from utils.payments.utils import send_payment_success_notification
|
||||
from handlers.texts import PAYMENT_OPTIONS
|
||||
from logger import logger
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ import requests
|
||||
|
||||
from config import FREEKASSA_API_KEY, FREEKASSA_SHOP_ID
|
||||
from utils.database import add_payment, update_balance
|
||||
from handlers.payments.utils import send_payment_success_notification
|
||||
from utils.payments.utils import send_payment_success_notification
|
||||
from handlers.texts import PAYMENT_OPTIONS
|
||||
|
||||
router = Router()
|
||||
|
||||
@@ -11,7 +11,7 @@ from robokassa import HashAlgorithm, Robokassa
|
||||
|
||||
from config import ROBOKASSA_ENABLE, ROBOKASSA_LOGIN, ROBOKASSA_PASSWORD1, ROBOKASSA_PASSWORD2, ROBOKASSA_TEST_MODE
|
||||
from utils.database import add_connection, add_payment, check_connection_exists, get_key_count, update_balance
|
||||
from handlers.payments.utils import send_payment_success_notification
|
||||
from utils.payments.utils import send_payment_success_notification
|
||||
from handlers.texts import PAYMENT_OPTIONS
|
||||
from logger import logger
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ from aiogram.utils.keyboard import InlineKeyboardBuilder
|
||||
|
||||
from config import RUB_TO_XTR
|
||||
from utils.database import add_connection, add_payment, check_connection_exists, get_key_count, update_balance
|
||||
from handlers.payments.utils import send_payment_success_notification
|
||||
from utils.payments.utils import send_payment_success_notification
|
||||
from handlers.texts import PAYMENT_OPTIONS
|
||||
from logger import logger
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ from yookassa import Configuration, Payment
|
||||
|
||||
from config import YOOKASSA_ENABLE, YOOKASSA_SECRET_KEY, YOOKASSA_SHOP_ID
|
||||
from utils.database import add_connection, add_payment, check_connection_exists, get_key_count, update_balance
|
||||
from handlers.payments.utils import send_payment_success_notification
|
||||
from utils.payments.utils import send_payment_success_notification
|
||||
from handlers.texts import PAYMENT_OPTIONS
|
||||
from logger import logger
|
||||
|
||||
|
||||
Reference in New Issue
Block a user