Code: Select all
const key = "rzp_test_XXXX00000XXXX"; //Replace it with your Test Key ID generated from the Razorpay Dashboard
const amount = "400000"; //in paise
window.onload = function() {
const widgetConfig = {
"key": key,
"amount": amount,
};
const rzpAffordabilitySuite = new RazorpayAffordabilitySuite(widgetConfig);
rzpAffordabilitySuite.render();
}