# Payment Intent

The Payment Intent page of the Inqud Recurring Project allows you to monitor the intent to process a payment. A payment intent represents the intention to collect a payment from the user and includes details about the transaction that is about to take place.

### **What is a Payment Intent?**

A payment intent is created by the corresponding invoice. It outlines the specifics of the payment, such as the amount and currency, which are transformed into the authorized cryptocurrency for the transaction. Invoices can have multiple payment intents due to retries in case of inability to charge user.

{% hint style="info" %}
Payment intents are created automatically by corresponding invoices.
{% endhint %}

### Payment Intent Parameters

| Parameter name | Description             | Value (example)                                                      |
| -------------- | ----------------------- | -------------------------------------------------------------------- |
| planName       | Name of plan            | "Test plan"                                                          |
| amount         | Amount                  | "100"                                                                |
| currency       | Cryptocurrency          | "USDT"                                                               |
| network        | Blockchain              | "ETHEREUM"                                                           |
| TX             | Charge transaction hash | "0xbd01120e922a778cc2047cf089b4772b0323587eaea4996b6572dedb67f6e52a" |
| status         | Payment intent status   | NEW, PENDING, SUCCESS, FAILED                                        |

### Payment Intent Statuses

**NEW**

* **Description**: The payment intent has been created and is newly issued.
* **Implications**:
  * The payment intent is initialized and awaiting further actions.
  * The invoice amount and currency have been transformed into the authorization cryptocurrency and stored in the payment intent.

**PENDING**

* **Description**: The payment process has been initiated but is not yet completed.
* **Implications**:
  * The payment intent is created but still pending.
  * The status will be updated to SUCCESS once the payment intent succeeds.
  * The status will be updated to FAILED if the payment intent fails.

**SUCCESS**

* **Description**: The payment has been successfully processed and confirmed.
* **Implications**:
  * The amount due has been paid in full.
  * The payment is completed, and the merchant's balance is updated.

**FAILED**

* **Description**: The payment process was unsuccessful.
* **Implications**:
  * The payment could not be completed.
  * The invoice remains unpaid, and a new payment intent may be created in the future.


---

# 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.inqud.com/crypto-recurring/explore/payment-intent.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.
