From bb78782b39e62fdf92e54c107f599e2c0d66c46a Mon Sep 17 00:00:00 2001 From: Kirill Date: Fri, 22 May 2026 23:22:29 +0500 Subject: [PATCH] =?UTF-8?q?=D0=BF=D0=B2=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/routes/user-payments.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/src/routes/user-payments.js b/server/src/routes/user-payments.js index 9d89bc4..643d661 100644 --- a/server/src/routes/user-payments.js +++ b/server/src/routes/user-payments.js @@ -49,7 +49,8 @@ export async function registerUserPaymentRoutes(fastify) { } const idempotencyKey = `${id}-${Date.now()}` - const returnUrl = `${process.env.CLIENT_PUBLIC_URL || 'http://127.0.0.1:5173'}/me/orders/${id}?paid=1` + const clientUrl = (process.env.CLIENT_PUBLIC_URL || 'http://127.0.0.1:5173').replace(/\/$/, '') + const returnUrl = `${clientUrl}/me/orders/${id}?paid=1` const clientIp = request.ip const amount = {