Compare commits

..

No commits in common. "26ae8aeaf29d523649f2d5802fc1575f60c75def" and "f642b744b40e52b12b71713d29d1b559baa97ff4" have entirely different histories.

View File

@ -403,7 +403,10 @@ 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!,
@ -419,7 +422,7 @@ export const createCashfreeOrder = onRequest({
customer_phone: customerPhone customer_phone: customerPhone
}, },
order_meta: { 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' order_note: productInfo || 'Fitlien Membership'
}, },