Updated to get the payment url

This commit is contained in:
Dhansh A S 2025-04-12 08:46:54 +05:30
parent 331f12836c
commit 2d5ac9dfbb

View File

@ -384,7 +384,8 @@ export const createCashfreeOrder = onRequest({
productInfo,
userId,
gymId,
orderId
orderId,
webHostUrl,
} = request.body;
if (!amount || !customerEmail || !customerPhone) {
@ -422,7 +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}`,
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`
},
order_note: productInfo || 'Fitlien Membership'