From 08f1243729a3a930406af3bb76b33751f214585e Mon Sep 17 00:00:00 2001 From: DhanshCOSQ Date: Sat, 12 Apr 2025 03:23:13 +0000 Subject: [PATCH] feature/fitlien-add-cors (#15) Reviewed-on: https://git.cosqnet.com/cosqnet/fitlien-services/pulls/15 Co-authored-by: DhanshCOSQ Co-committed-by: DhanshCOSQ --- functions/src/index.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/functions/src/index.ts b/functions/src/index.ts index 05ae00a..045a927 100644 --- a/functions/src/index.ts +++ b/functions/src/index.ts @@ -384,7 +384,8 @@ export const createCashfreeOrder = onRequest({ productInfo, userId, gymId, - orderId + orderId, + webHostUrl, } = request.body; if (!amount || !customerEmail || !customerPhone) { @@ -422,7 +423,7 @@ export const createCashfreeOrder = onRequest({ customer_phone: customerPhone }, order_meta: { - return_url: `https://${process.env.FITLIENHOST}/payment-bridge?order_id=${orderId}&hash_key=${hashKey}&user_id=${userId}&gym_id=${gymId}`, + return_url: `https://fitlien.com/payment-bridge?order_id=${orderId}&hash_key=${hashKey}&user_id=${userId}&gym_id=${gymId}&web_host_url=${webHostUrl}`, // notify_url: `https://$filien.web.app/verifyCashfreePayment` }, order_note: productInfo || 'Fitlien Membership'