Post by ahimanshu » Wed Mar 29, 2023 6:05 pm

Copy-paste the following snippet to the JS file and link it to your HTML file. Add the test key ID generated from the Razorpay Dashboard.

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();
}
i am confused can any one assist me, Complete document Please refer this link. https://razorpay.com/docs/payments/paym ... the-widget

Regards
Himanshu


User avatar
New member

Posts

Joined
Mon Jul 10, 2017 10:55 am
Location - New Delhi

Post by ADD Creative » Wed Mar 29, 2023 10:07 pm

I would assume they mean add it to its own .js file and add an script tag to your page with the src point to the file.

www.add-creative.co.uk


Expert Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom
Who is online

Users browsing this forum: matteovisotto and 46 guests