From 90ab186a7c8ab7cdc8b503435e610eb0d07b66ff Mon Sep 17 00:00:00 2001 From: 3252a8 <3252a8@proton.me> Date: Wed, 7 Jan 2026 22:42:00 +0300 Subject: [PATCH] Add platega payment request logging --- bot/services/platega_service.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bot/services/platega_service.py b/bot/services/platega_service.py index a41651e..7fc91f5 100644 --- a/bot/services/platega_service.py +++ b/bot/services/platega_service.py @@ -96,6 +96,12 @@ class PlategaService: # Remove optional keys with falsy values to avoid validation errors clean_body = {k: v for k, v in body.items() if v not in (None, "")} + safe_headers = { + "X-MerchantId": self._auth_headers.get("X-MerchantId"), + "X-Secret": "***" if self._auth_headers.get("X-Secret") else "", + "Content-Type": self._auth_headers.get("Content-Type"), + } + logging.info("Platega create_transaction request: url=%s headers=%s body=%s", url, safe_headers, clean_body) try: async with session.post(url, json=clean_body, headers=self._auth_headers) as response: