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'}`;