Compare commits

...

2 Commits

Author SHA1 Message Date
26ae8aeaf2 Merge branch 'dev' into qa 2025-04-14 05:03:24 +05:30
e5c636f8c5 feature/test-deploy (#20)
Co-authored-by: aswincosq <aswinbs@cosq.net>
Reviewed-on: #20
Co-authored-by: DhanshCOSQ <dhanshas@cosq.net>
Co-committed-by: DhanshCOSQ <dhanshas@cosq.net>
2025-04-13 23:32:58 +00:00

View File

@ -403,10 +403,7 @@ export const createCashfreeOrder = onRequest({
} }
const hashKey = `hash_${Date.now()}_${uid.substring(0, 1)}_${orderId}`; const hashKey = `hash_${Date.now()}_${uid.substring(0, 1)}_${orderId}`;
let apiUrl = process.env.CASHFREE_URL; let apiUrl = process.env.CASHFREE_URL;
try { try {
const cashfreeResponse = await axios.post( const cashfreeResponse = await axios.post(
apiUrl!, apiUrl!,
@ -422,7 +419,7 @@ export const createCashfreeOrder = onRequest({
customer_phone: customerPhone customer_phone: customerPhone
}, },
order_meta: { 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' order_note: productInfo || 'Fitlien Membership'
}, },