# Chat 2 Pay

{% hint style="info" %}
To use the Chat 2 Pay node in Chat Flow, you must be subscribed to Clickatell's [**Transact** ](https://www.clickatell.com/transact/)package. Contact our[ **Sales Team**](https://www.clickatell.com/contact/contact-sales/) for more information.
{% endhint %}

The *Chat 2 Pay* node allows you to send a payment request to a customer directly from within the workflow. The link is sent to customers via the chat channel, and the customer can follow the link to complete a secure payment. The outcome of the payment (success/failure) is shared with the customer and the Chat Flow application, and the workflow continues with the next step. &#x20;

{% hint style="success" %}
Learn more about [Chat 2 Pay](https://clickatell.gitbook.io/chat-2-pay-user-guide/master).
{% endhint %}

{% embed url="<https://vimeo.com/762255510?share=copy>" %}

## Sending a payment request via Chat Flow

To trigger a new payment request as part of your workflow in Chat Flow:

1. Drag-and-drop the *Chat 2 Pay* node into your workflow.&#x20;

![](/files/0LfLbre7a4mECfQxyJkE)

2. Configure the node and save.&#x20;

<figure><img src="/files/M1AkvL7qSA0wQrGglAW8" alt=""><figcaption><p>Setup of a Chat 2 Pay node</p></figcaption></figure>

<figure><img src="/files/2KpbLigJXQBtNVqGIbd6" alt=""><figcaption><p>Example flow containing Chat 2 Pay node</p></figcaption></figure>

You can incorporate a Chat 2 Pay node in multiple workflows by adding the node into each workflow where you need to trigger a payment link to be sent to your end-users. Each payment link that gets generated is unique and will link back to that particular payment for that particular flow. You also only need to [configure ](https://guides.clickatell.com/chat-2-pay-user-guide/configure-chat-2-pay/configure-chat-2-pay)your Chat 2 Pay settings once - the same configuration is used for all Chat 2 Pay nodes used in Chat Flow.

## Add Order Numbers

Flow-builders can either let Chat Flow generate an order number **automatically** or use a **custom order number** specific to their business based on an API call.&#x20;

* If you select to auto-generate order numbers, these are available as [variables ](/flow/variable-management-1.md)to be used in the workflow.

<figure><img src="/files/iXfQwqzlaNFgaaMv14AA" alt="" width="315"><figcaption><p>Enable auto-generation of order numbers which can be referred to later in the workflow.</p></figcaption></figure>

* For custom order numbers, use an [*API Integration* node](/flow/action-nodes/action-nodes-api-integration.md) before the Chat 2 Pay node and refer to the result of the API call as shown in the example below.

<figure><img src="/files/hSC2gdi2B9bQa696kx6l" alt="" width="517"><figcaption><p>Use an API Integration node before the Chat 2 Pay node. In this case, the name of the node is "OrderNumber".</p></figcaption></figure>

<div align="center"><figure><img src="/files/TkZ3aNvsTBPgxpmFqjNf" alt="" width="375"><figcaption><p>In the Chat 2 Pay node, refer to the result of the API Integration node (which we called "OrderNumber" in this case) to generate your custom order number.</p></figcaption></figure></div>


---

# 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://guides.clickatell.com/flow/user-facing-nodes/commerce/chat-2-pay.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.
