You can now integrate BNPL Plus into your website and offer a good customer experience by letting them know about the various available offers and flexible payment options before they proceed to checkout.
Integration Steps
- Embed the following file into your website:
<script src="https://sdk.cashfree.com/js/widget/1.0.2/cashfree-widget.prod.js"></script>
- Add the following div near the product price section of your webpage. This indicates where BNPL Plus would appear.
<div id="cashfree-widget"></div>
- Copy and paste the following snippet to the JS file and link it to your HTML file:
window.addEventListener("load", function () {
  const widgetConfig = {
    clientID: "<Your App Id>",// Mention the App ID 
    amount: "<Your Product Price>", // Pass the product price here
    //Customize the widget with Offers, PayLater and EMI
    offers: "true",
    payLater: "true",
    emi: "true",
    theme: {
      widgetColor: "#ccccff",
      linkColor: "#000000",
      cfLogoTheme: "dark",
      isLogoActive: true,
    }
  };
  // To initiate the widget
  const cashfree = CF_Widget(widgetConfig);
  cashfree.load();
});
 Note: BNPL Plus is compatible with all Javascript frameworks such as React, Vue, Angular and so on.
