# 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;

![](https://content.gitbook.com/content/joAgInTNsBfDdfx1I23z/blobs/WCXn8xYr6rT8YrOz2sCG/image.png)

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

<figure><img src="https://content.gitbook.com/content/joAgInTNsBfDdfx1I23z/blobs/quEAfJvOiWod1xay9YuK/image.png" alt=""><figcaption><p>Setup of a Chat 2 Pay node</p></figcaption></figure>

<figure><img src="https://content.gitbook.com/content/joAgInTNsBfDdfx1I23z/blobs/8xKaFqwxOu9HtWhwpPLr/image.png" 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 ](https://guides.clickatell.com/flow/variable-management-1)to be used in the workflow.

<figure><img src="https://content.gitbook.com/content/joAgInTNsBfDdfx1I23z/blobs/cib8gTh2FzaWGBTqkwzx/image.png" 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](https://guides.clickatell.com/flow/action-nodes/action-nodes-api-integration) before the Chat 2 Pay node and refer to the result of the API call as shown in the example below.

<figure><img src="https://content.gitbook.com/content/joAgInTNsBfDdfx1I23z/blobs/RO7SgSNJZ8ZO09G94tgS/image.png" 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="https://content.gitbook.com/content/joAgInTNsBfDdfx1I23z/blobs/LP1QY6kGbm5Gf9PB1w7W/image.png" 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>
