From ad43d924db221db386918fb34e0a8e7bf70ba714 Mon Sep 17 00:00:00 2001 From: Ilay Date: Fri, 19 Dec 2025 20:06:16 +0500 Subject: [PATCH] fix: cast URL to string in PaymentResult --- src/infrastructure/payment_gateways/yoomoney.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/infrastructure/payment_gateways/yoomoney.py b/src/infrastructure/payment_gateways/yoomoney.py index 630a362..5ebd8bf 100644 --- a/src/infrastructure/payment_gateways/yoomoney.py +++ b/src/infrastructure/payment_gateways/yoomoney.py @@ -51,7 +51,7 @@ async def handle_create_payment(self, amount: Decimal, details: str) -> PaymentR follow_redirects=True, ) response.raise_for_status() - return PaymentResult(id=payment_id, url=response.url) + return PaymentResult(id=payment_id, url=str(response.url)) except HTTPStatusError as exception: logger.error(