From e94eea6d3f027b1bedb27aed07e3ec0d4029469b Mon Sep 17 00:00:00 2001 From: Nastya Date: Thu, 24 Jul 2025 12:27:53 +0300 Subject: [PATCH] -- --- src/api/wallet.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/api/wallet.ts b/src/api/wallet.ts index 254433e..38800f9 100644 --- a/src/api/wallet.ts +++ b/src/api/wallet.ts @@ -34,8 +34,9 @@ export const sendPayment = async ({ additionalinformation?: string; }): Promise<[SendPaymentResponse | null, string?]> => { + // Правильно формируем returnUrl - const domain = fromDomain || 'localhost:3000'; + const domain = fromDomain || `${isStaging ? "s" : ""}hub.pena.digital`; const path = backWay ? `/${backWay}` : ''; let returnUrl = `https://${domain}${path}?userid=${userId}&action=${action || 'buy'}`;