feat: add itpay creds

This commit is contained in:
2026-04-22 12:15:23 +03:00
parent 2627354673
commit a146a6a3e9
3 changed files with 29 additions and 2 deletions

View File

@@ -11,12 +11,12 @@ from src.application.domain.exceptions import ApplicationException
from src.presentation.decorators import csrf_protect, require_access_token
from src.presentation.dependencies.logger import get_logger
from src.presentation.schemas.order import CreateOrder
from src.infrastructure.config import settings
order_router = APIRouter(prefix='/order', tags=['orders'])
ITPAY_API_BASE = 'https://api.gw.itpay.ru'
ITPAY_AUTHORIZATION = 'Token REPLACE_WITH_JWT_FROM_ITPAY_DASHBOARD'
HARDCODED_USDT_TO_RUB = Decimal('100')
HARDCODED_GAS_RUB = Decimal('15')
HARDCODED_OUR_COMMISSION_RUB = Decimal('25')
@@ -52,7 +52,7 @@ async def create_order(
}
url = f'{ITPAY_API_BASE}/v1/payments'
headers = {
'Authorization': ITPAY_AUTHORIZATION,
'Authorization': settings.ITPAY_AUTHORIZATION,
'Content-Type': 'application/json',
'Accept': 'application/json',
}