diff --git a/functions/.env.example b/functions/.env.example index 7eb924a..481d163 100644 --- a/functions/.env.example +++ b/functions/.env.example @@ -9,3 +9,4 @@ CASHFREE_CLIENT_ID=#{CASHFREE_CLIENT_ID}# CASHFREE_CLIENT_SECRET=#{CASHFREE_CLIENT_SECRET}# GOOGLE_MAPS_API_KEY=#{GOOGLE_MAPS_API_KEY}# FITLIENHOST=#{FITLIENHOST}# +CASHFREE_URL=#{CASHFREE_URL}# diff --git a/functions/src/index.ts b/functions/src/index.ts index 8e4b6ef..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!,