Compare commits

..

No commits in common. "0a8c2295bbb37b9e7b383b35e357aa5166f13d7a" and "0b699b203cf1e81ac35de503c51279bc47baf0f8" have entirely different histories.

View File

@ -403,7 +403,10 @@ 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!,
@ -419,7 +422,7 @@ export const createCashfreeOrder = onRequest({
customer_phone: customerPhone
},
order_meta: {
return_url: `https://${webHostUrl}?order_id=${orderId}&hash_key=${hashKey}&user_id=${userId}&gym_id=${gymId}#/payment-status-screen`,
return_url: `http://${webHostUrl}?order_id=${orderId}&hash_key=${hashKey}&user_id=${userId}&gym_id=${gymId}#/payment-status-screen`,
},
order_note: productInfo || 'Fitlien Membership'
},