From a9e4b31eb99615d60d20dcc1221a90ef86d0aff0 Mon Sep 17 00:00:00 2001 From: aswincosq Date: Sun, 13 Apr 2025 11:46:50 +0530 Subject: [PATCH] Updated return url. --- functions/package-lock.json | 5 +++++ functions/package.json | 1 + functions/src/index.ts | 3 +-- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/functions/package-lock.json b/functions/package-lock.json index 8a295b3..fc5ea89 100644 --- a/functions/package-lock.json +++ b/functions/package-lock.json @@ -14,6 +14,7 @@ "firebase-admin": "^12.6.0", "firebase-functions": "^6.0.1", "form-data": "^4.0.1", + "functions": "file:", "html-to-text": "^9.0.5", "long": "^4.0.0", "mailgun.js": "^10.4.0", @@ -3084,6 +3085,10 @@ "integrity": "sha512-dsKNQNdj6xA3T+QlADDA7mOSlX0qiMINjn0cgr+eGHGsbSHzTabcIogz2+p/iqP1Xs6EP/sS2SbqH+brGTbq0g==", "optional": true }, + "node_modules/functions": { + "resolved": "", + "link": true + }, "node_modules/gaxios": { "version": "6.7.1", "resolved": "https://registry.npmjs.org/gaxios/-/gaxios-6.7.1.tgz", diff --git a/functions/package.json b/functions/package.json index 939628c..f593fbc 100644 --- a/functions/package.json +++ b/functions/package.json @@ -21,6 +21,7 @@ "firebase-admin": "^12.6.0", "firebase-functions": "^6.0.1", "form-data": "^4.0.1", + "functions": "file:", "html-to-text": "^9.0.5", "long": "^4.0.0", "mailgun.js": "^10.4.0", diff --git a/functions/src/index.ts b/functions/src/index.ts index 045a927..4dce3c8 100644 --- a/functions/src/index.ts +++ b/functions/src/index.ts @@ -423,8 +423,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}&web_host_url=${webHostUrl}`, - // notify_url: `https://$filien.web.app/verifyCashfreePayment` + return_url: `http://${webHostUrl}/?order_id=${orderId}&hash_key=${hashKey}&user_id=${userId}&gym_id=${gymId}#/payment-status-screen`, }, order_note: productInfo || 'Fitlien Membership' }, -- 2.43.0