From b71bd71d8d239b3a9967b8cf4a1671fbad10b113 Mon Sep 17 00:00:00 2001 From: Snowy-Fluffy Date: Fri, 24 Oct 2025 20:45:43 +0300 Subject: [PATCH] allows you to set custom payment id for fk --- bot/services/freekassa_service.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot/services/freekassa_service.py b/bot/services/freekassa_service.py index b0b565e..23f266d 100644 --- a/bot/services/freekassa_service.py +++ b/bot/services/freekassa_service.py @@ -73,9 +73,9 @@ class FreeKassaService: months: int, amount: float, currency: Optional[str], - method_code: int, email: Optional[str] = None, ip_address: Optional[str] = None, + payment_method_id: Optional[int] = None, extra_params: Optional[Dict[str, Any]] = None, ) -> Tuple[bool, Dict[str, Any]]: if not self.configured: @@ -95,7 +95,7 @@ class FreeKassaService: "shopId": int(self.shop_id), "nonce": await self._generate_nonce(), "paymentId": str(payment_db_id), - "i": int(method_code), + "i": int(payment_method_id), "amount": amount_str, "currency": currency_code, "email": email,