New to Custom Checkout Integration?If yes, know more about the custom integration flow.
Prerequisites
Before integrating Low Cost EMI offers for your custom Checkout, run through this checklist:- Understand the payment flow.
- Generate the API keys from the Dashboard.
Integration Steps
The procedure for integrating Custom Checkout on your website is explained in the Custom Integration document. However, the procedure varies while passing the offers in the payment details.1
3
4
Step 4
Step 1: Create a Low Cost EMI Offer
You can create a Low Cost EMI offer from the Dashboard.Step 2: Create an Order and Pass Offer_id
After generating the offer from the Dashboard, pass theoffer_id in the order request attributes to the following endpoint:
Sample Request
Use the sample codes given below: /ordersSample Request
Request Parameters
Using the following attributes, send an order request using the Orders API.amount mandatory
: integer Enter the amount for which the order is to be created. For example, if the amount to be charged is ₹299.95, then pass 29995 in this field.
currency mandatory
: string ISO code of the currency associated with the order amount. For example,INR.
offer_id mandatory
: string Unique identifier of the offer. Pass the offer_id obtained from the response of the previous step.
Handy TipsThis is mandatory only in cases where you want to associate an offer or offers with the Order or you had not selected the Show Offer on Checkout while creating the offer from the Dashboard.
Step 3: Show the Offer on Checkout
You need to show the availability of Low Cost EMI Offers on checkout. Customers should be able to view the discount on interest being given to them and how much interest they need to bear. For example, you can view the image below to see how Low Cost EMI offers appear on Razorpay Standard Checkout.Step 4: Submit Payment Details
Once the order is created and the customer’s payment details are obtained, the information should be sent to Razorpay to complete the payment. The data that needs to be submitted depends upon the payment method the customer selects. While invoking thecreatePayment method, pass the order_id and the offer_id in the payment request as follows:
Checkout
Next Steps
After the customer has availed the offer and made the payment at the Checkout, you can track the status of the payments:- From the Dashboard.
- By configuring webhooks.
- By polling our payment APIs.