In the node side, add a new .get() route -> to fetch list of cards data and map in react to show user. When they click pay, make call to .post("/razorpay")
In options object avoid hardcoding of 499, rather use async function and await on "<collection>.findOne()" (or) find().select() whichever you want to use and set that integer value
I have a doubt I have multiple price Cards I use firebase as my database how to send the price amount to backend when I click the button thanks in advance
Hi Abdur, sorry this is really late reply. The ideal way is never send the price amount to backend. Rather send selected courseId by the user and fetch it's corresponding amount directly from the Collection snapshot
Ayush Bommana
Nice but how to put the amount dynamically instead of hardcoding it as 499?