# Payment Task

### Creating a Payment Task

After creating a billing task and configuring billing fees in your workflow, you must create a payment task that the customer will execute to carry out payments in your workflow.

To create a payment task:

* Open your service
* Drag and drop a new user task to the workflow area.
* Give the task a title
* Chose the type for the task as "Payment"

<figure><img src="/files/TJ2EoRZ1j8psjCclm1eR" alt=""><figcaption><p>Creating a payment task</p></figcaption></figure>

* Connect your invoicing task to your payment task using the workflow connectors as shown below

<figure><img src="/files/I6uCmcnk4aK7znmHELAL" alt=""><figcaption><p>Connecting workflow tasks</p></figcaption></figure>

* Your customer can now be able to pay for an invoice that will be automatically generated on submission of the form.
* Note that the example above assumes a customer has to pay for an invoice immediately after it is generated. This would be the case in many use cases but of course it may differ for other use cases. Onestop supports the generation of invoices and payment at a later step after your workflow has progressed. To do this. You would have to:
  * Connect your invoicing task to whatever task you want to proceed the invoicing task.
  * Build up your workflow with all other tasks that precede the payment task
  * Now you can connect the invoice and payment task using a field in the task configuration form called "data association node"
  * So in the invoice task configuration form, set the data association node as your corresponding payment task. This is illustrated below:

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

<figure><img src="/files/U7282CvH0UowqQp7oLog" 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://admin-docs.onestop.site/managing-services/configuring-billing/payment-task.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.
