feat: update recipit

This commit is contained in:
2026-05-09 10:30:27 +03:00
parent be8aee7b73
commit b6e4f8165f
5 changed files with 32 additions and 45 deletions

View File

@@ -37,7 +37,9 @@ class ItPayClient(IItPayService):
'usdt_exchange_rate': str(order.usdt_exchange_rate) if order.usdt_exchange_rate is not None else None,
'gas_fee': str(order.gas_fee) if order.gas_fee is not None else None,
'service_fee': str(order.service_fee) if order.service_fee is not None else None,
'agent_fee': str(order.service_fee) if order.service_fee is not None else None,
'amount': amount_str,
'total_amount': amount_str,
}
if order.total_price is not None and order.service_fee is not None:
principal = (Decimal(str(order.total_price)) - Decimal(str(order.service_fee))).quantize(Decimal('0.01'))