> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.nector.io/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Nector and Custom Checkout Integration

This integration enables you to integrate nector with your custom checkout to allow customers to use their loyalty points directly on the checkout and get a discount.

|| This is only for custom checkout. You need to use nector APIs to integrate with your checkout. Follow the below instructions and then refer to [this guide](https://joinnector.notion.site/Nector-Custom-Checkout-Integration-753ded72e3f243e699880108aef18550?pvs=4) to learn how to use the APIs.

### Setting up the Integration

Visit the [Integrations](https://merchant.nector.io/integration-list) Page. Click on **Third Party Checkouts** in the side-bar. Scroll below to look for **Custom Checkout** in that section.


![](https://storage.crisp.chat/users/helpdesk/website/d9947dc4cf2ed000/image_1t7w7bi.png)

Click on **Configure** to open up the Custom Checkout integration page and toggle the status button to **On**. You will see the below view.


![](https://storage.crisp.chat/users/helpdesk/website/d9947dc4cf2ed000/image_5qgbzo.png)

|| **Important** -  On this page, scroll down to the **Secret Webhook Id** section. You will need this secret webhook id when using the API to integrate nector with your checkout.
 
All done! Next step is to define the redemption rule that should be used for the Custom Checkout. See the below section on how to do that.

### Defining the Redemption Rule

After enabling the integration, you have to define the redemption rule that should be used for Custom Checkout. This rule will define the conversion of loyalty points to a discount value (i.e. how much the loyalty points are worth in terms of a discount value)  (similar to the redemption rules that you define for the nector rewards widget or rewards page).

| To understand in detail how to setup the redemption rule, refer to the **Defining Ways to Redeem** section of the article: [Ways to Redeem](https://help.nector.io/en/article/loyalty-program-ways-to-redeem-vrx289/#3-defining-ways-to-redeem)

##### Example: How to setup a redemption rule where every 1 loyalty point is equal to ₹1, and the customer is allowed to only get up to ₹100 discount at once

Switch to the **Redemption Rules** tab and in the **Custom Checkout Redemption Rules** section on this page, click on the **Create** button. Click on the **Amount Discount** option.

Enter the values as shown in the below image


![](https://storage.crisp.chat/users/helpdesk/website/d9947dc4cf2ed000/image_16fqgoq.png)

You can optionally add a minimum cart amount as well.

After entering these values, click on the **Create** button shown at the end of the popup.

### Defining the "Minimum Payment Required from Customer" Restriction (Optional)

If you want the customer to pay some amount when placing an order, irrespective of the number of loyalty points they have, this restriction will come in handy. 

For example, consider a customer who has a lot of loyalty points and he is purchasing some items for ₹500. Given the loyalty points he has, he can easily get ₹500 discount and place a ₹0 order. If you want to prevent this, and want the customer to pay at least 20% of the cart amount (so he can only get ₹400 discount), you can do that!

Visit the [Custom Checkout Integration](https://merchant.nector.io/integration?identifier=custom_checkout) Page on your nector dashboard. Switch to the **Redemption Rules** tab and scroll down to the **Redemption Restriction** section on this page.

Here, you can set the minimum amount that a customer has to pay when placing an order.

Understanding the condition:

* **Minimum Payment required from customer:** This is the amount that the customer needs to pay.
* **Amount Type:** This is the type of amount. You can choose percentage (Ex. 20% of the cart value) 


![](https://storage.crisp.chat/users/helpdesk/website/d9947dc4cf2ed000/image_19qbu7x.png)

### How To Integrate With Your Checkout

Refer this guide to understand how to use nector APIs to integrate with your custom checkout: [https://joinnector.notion.site/Nector-Custom-Checkout-Integration-753ded72e3f243e699880108aef18550?pvs=4](https://joinnector.notion.site/Nector-Custom-Checkout-Integration-753ded72e3f243e699880108aef18550?pvs=4)


### Related Articles

* [Ways to Redeem](https://help.nector.io/en/article/loyalty-program-ways-to-redeem-vrx289/)
