refactor: move secret to env
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user