---
title: "Comment by Ayush Bommana on \"Razorpay integration in React\" | Hashnode"
description: "Nice but how to put the amount dynamically instead of hardcoding it as 499?"
url: "https://hashnode.com/posts/razorpay-integration-in-react/60106855b5b03f4bf00e417e/comment/636f92acc83b2a23bd2bb0c5"
---

[Discussion](https://hashnode.com/posts/razorpay-integration-in-react/60106855b5b03f4bf00e417e)

Comment [Razorpay integration in React](https://hashnode.com/posts/razorpay-integration-in-react/60106855b5b03f4bf00e417e)

[Ayush Bommana](https://hashnode.com/@ayushbommana)

[Nov 12, 2022](https://hashnode.com/posts/razorpay-integration-in-react/60106855b5b03f4bf00e417e/comment/636f92acc83b2a23bd2bb0c5)

Nice but how to put the amount dynamically instead of hardcoding it as 499?

[Anirudh Jwala](https://hashnode.com/@theJwala)

[Nov 12, 2022](https://hashnode.com/posts/razorpay-integration-in-react/60106855b5b03f4bf00e417e/comment/636f92acc83b2a23bd2bb0c5#reply-6370014c156201257c945d99)

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
