EMI Plans

Know how to bring popup to front, save customer data and validate the VPA on your custom Checkout.


You can use the following codes to fetch EMI plans at your Custom Checkout and calculate EMIs.

To display the available EMI plans at your Custom Checkout on your site, use the Razorpay checkout helper methods to fetch the details of the EMI plans and display them. You can use the event ready, as shown below:

var razorpay = new Razorpay(...); // as before
/**
* The above code remains the same.
* You can fetch the available EMI plans by adding the below code in your options.
*/
razorpay.once('ready', function() {
console.log(razorpay.methods.emi_plans);
console.log(razorpay.methods.netbanking);
})

razorpay.methods.emi_plans

string Lists the EMI-supported banks with their respective interest rates.

razorpay.methods.netbanking

string Contains the list of all banks and bank codes.

You can use the function Razorpay.emi.calculator to calculate instalment amounts as shown below:

Razorpay.emi.calculator(principal_amount, duration_in_month, annual_interest_rate);

The below code will calculate EMI for a principal amount of 10000(in paisa), that is, ₹100 over 12 months with an annual interest rate of 9%:

Razorpay.emi.calculator(10000, 12, 9);
= 874

Handy Tips

The above code does not do any unit conversion of the principal amount. The returned amount will have the same unit as the principal. If the principal amount is in paisa, the returned EMI amount will also be in paisa.


Is this integration guide useful?