From 50d23a21d29cbbbb5944c0339784bdf3e37eca2d Mon Sep 17 00:00:00 2001 From: Benoy Bose Date: Sat, 12 Apr 2025 06:32:44 +0530 Subject: [PATCH] Ading FITLIENHOST for redirect URL --- functions/.env.example | 2 +- functions/src/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/.env.example b/functions/.env.example index 8f998fb..7eb924a 100644 --- a/functions/.env.example +++ b/functions/.env.example @@ -8,4 +8,4 @@ SERVICES_RGN=#{SERVICES_RGN}# CASHFREE_CLIENT_ID=#{CASHFREE_CLIENT_ID}# CASHFREE_CLIENT_SECRET=#{CASHFREE_CLIENT_SECRET}# GOOGLE_MAPS_API_KEY=#{GOOGLE_MAPS_API_KEY}# - +FITLIENHOST=#{FITLIENHOST}# diff --git a/functions/src/index.ts b/functions/src/index.ts index d13051d..05ae00a 100644 --- a/functions/src/index.ts +++ b/functions/src/index.ts @@ -422,7 +422,7 @@ export const createCashfreeOrder = onRequest({ customer_phone: customerPhone }, order_meta: { - return_url: `https://fitlien.com/payment-bridge?order_id=${orderId}&hash_key=${hashKey}&user_id=${userId}&gym_id=${gymId}`, + return_url: `https://${process.env.FITLIENHOST}/payment-bridge?order_id=${orderId}&hash_key=${hashKey}&user_id=${userId}&gym_id=${gymId}`, // notify_url: `https://$filien.web.app/verifyCashfreePayment` }, order_note: productInfo || 'Fitlien Membership'