# Set Priority between Payment Term and Invoice Payment at Cart

Since the app provides both **Payment Term** and **Invoice Payment** features as payment methods, they are also used the same **Pay later button** in the cart.&#x20;

<figure><img src="/files/rYOjXvusGBjAuVlNOwHx" alt=""><figcaption></figcaption></figure>

If you set up both features for the same settings and conditions, you can control which feature to work in the app's setting.&#x20;

*For example, you set up both Payment Term and Invoice Payment features to be applied for Customers who login with tag "wholesale" and all products in your store are set to these two features as well.*&#x20;

<figure><img src="/files/Vr2H8uk4IWHVcbdXivhd" alt=""><figcaption></figcaption></figure>

**Step to manage:**&#x20;

1. Please go to the **Invoice Payment** setting > Click on the **Settings** button:&#x20;

<figure><img src="/files/UQLT2UmR40X9dk1jHf1W" alt=""><figcaption></figcaption></figure>

2. Navigate the section: **After Clicking "Pay Later"** and select an option there:

<figure><img src="/files/B1WFeZNB2lG9AZxteToH" alt=""><figcaption></figcaption></figure>

There are **3 options** for you to choose.&#x20;

If you want to prioritize either of the features to work first, kindly select one of the following options:&#x20;

* **Prioritize Payment Terms:** The app auto-applies **Payment Term** feature when customers click Pay later button in the cart.&#x20;
* **Prioritize Invoice Payment:** The app auto-applies **Invoice Payment** feature when customers click Pay later button in the cart.&#x20;

<figure><img src="/files/79DmDjt0TssGqkkoBTR8" alt=""><figcaption></figcaption></figure>

If you want both features to show and customers are allowed to decide which payment methods they want to use, please select the last option: **Let customer choose**

<figure><img src="/files/XpG2BDs6gii0EUvr0DeN" alt=""><figcaption></figcaption></figure>

The app will show a **Popup** as below once customers click on the **Pay later button**:

<figure><img src="/files/3gCeaaRrMPWrTCqZ7JiQ" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
A **draft order** is created when customers click the **“Pay Later”** button.\
Depending on which feature is active at the time, the draft order will include the corresponding configurations and information.
{% endhint %}

You can **style this Popup** with settings in the app:&#x20;

<figure><img src="/files/2ZXy8KFhjbrbjI8F1DlJ" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.samita.io/samita-wholesale-b2b/payment-term-and-payment-invoice/set-priority-between-payment-term-and-invoice-payment-at-cart.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
