feature/fitlien-add-cors (#15)

Reviewed-on: #15
Co-authored-by: DhanshCOSQ <dhanshas@cosq.net>
Co-committed-by: DhanshCOSQ <dhanshas@cosq.net>
This commit is contained in:
Dhansh A S 2025-04-12 03:23:13 +00:00 committed by Dhansh A S
parent 50d23a21d2
commit 08f1243729

View File

@ -384,7 +384,8 @@ export const createCashfreeOrder = onRequest({
productInfo, productInfo,
userId, userId,
gymId, gymId,
orderId orderId,
webHostUrl,
} = request.body; } = request.body;
if (!amount || !customerEmail || !customerPhone) { if (!amount || !customerEmail || !customerPhone) {
@ -422,7 +423,7 @@ export const createCashfreeOrder = onRequest({
customer_phone: customerPhone customer_phone: customerPhone
}, },
order_meta: { 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` // notify_url: `https://$filien.web.app/verifyCashfreePayment`
}, },
order_note: productInfo || 'Fitlien Membership' order_note: productInfo || 'Fitlien Membership'