Hi Vignesh Hariharan,
This error occurs because the `checkout.js` file is not imported, which leads to the error `Razorpay is not defined` when you try to create a new instance with `var rzp1 = new Razorpay(options);`.
To resolve this issue, download the `checkout.js` file from the link below and place the downloaded file in your `javascriptsource` folder. Ensure you set the correct path in your import statement. For example:
"../../razorpayconnector/actions/checkout.js";
Download the `checkout.js`.
Once you have included this file correctly, the `Razorpay` object should be defined, and you should no longer encounter this error.
Thanks,
Amit Gupta