refactor: move secret to env

This commit is contained in:
2025-04-17 19:23:22 +05:30
parent 9c1f072392
commit 1f271373b1
2 changed files with 3 additions and 3 deletions

View File

@@ -94,7 +94,7 @@ const PaymentComponent = ({ amount, onSuccess }) => {
const order = await createOrder();
console.log(shippingData)
const options = {
key: "rzp_test_1SbLmNX2nCKRZA",
key: process.env.NEXT_RAZORPAY_CLIENT_ID,
amount: order.amount,
currency: order.currency,
name: "Rudraksha",