feature/add-client #21
@ -403,10 +403,7 @@ 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!,
|
||||
@ -422,7 +419,7 @@ export const createCashfreeOrder = onRequest({
|
||||
customer_phone: customerPhone
|
||||
},
|
||||
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'
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user