From e5c636f8c506d395f0493d4c676d9fffb0ef7a08 Mon Sep 17 00:00:00 2001 From: DhanshCOSQ Date: Sun, 13 Apr 2025 23:32:58 +0000 Subject: [PATCH] feature/test-deploy (#20) Co-authored-by: aswincosq Reviewed-on: https://git.cosqnet.com/cosqnet/fitlien-services/pulls/20 Co-authored-by: DhanshCOSQ Co-committed-by: DhanshCOSQ --- functions/src/index.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/functions/src/index.ts b/functions/src/index.ts index 31300e9..fae6bef 100644 --- a/functions/src/index.ts +++ b/functions/src/index.ts @@ -403,10 +403,7 @@ export const createCashfreeOrder = onRequest({ } const hashKey = `hash_${Date.now()}_${uid.substring(0, 1)}_${orderId}`; - let apiUrl = process.env.CASHFREE_URL; - - try { const cashfreeResponse = await axios.post( apiUrl!, @@ -422,7 +419,7 @@ export const createCashfreeOrder = onRequest({ customer_phone: customerPhone }, order_meta: { - return_url: `http://${webHostUrl}?order_id=${orderId}&hash_key=${hashKey}&user_id=${userId}&gym_id=${gymId}#/payment-status-screen`, + return_url: `https://${webHostUrl}?order_id=${orderId}&hash_key=${hashKey}&user_id=${userId}&gym_id=${gymId}#/payment-status-screen`, }, order_note: productInfo || 'Fitlien Membership' },