> For the complete documentation index, see [llms.txt](https://docs.inqud.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.inqud.com/crypto-recurring/explore/how-it-works.md).

# How it works

At the core of Inqud's recurring payment system is the **ERC20 Approve** function, which is essential for managing automated transactions on the Ethereum (EVM) blockchain. Here’s a detailed look at how it works and integrates with the Inqud system:

### **ERC20 Approve Function**

The ERC20 approve function is a standard method in Ethereum’s ERC20 token contract. It allows a token holder to authorize a specific address (in this case, an Inqud-managed address) to spend a specified amount of tokens on their behalf.

* **User Authorization:** The user interacts with their Web3 wallet to approve the Inqud smart contract, allowing it to spend a certain amount of their ERC20 tokens.
* **Smart Contract Role:** Once approved, the smart contract can execute transactions up to the approved limit without needing further user intervention.

### **Setting Up Recurring Payments**&#x20;

The process begins with the user granting approval for automated transactions:

* **Approval Transaction:** This involves a blockchain transaction where the user approves the smart contract to spend their tokens.

### Executing Recurring Payments

| Subscription Plan                                                                                                                                                                                                   | On-Demand Plan                                                                                                                                                      |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>Fixed amounts charged at regular intervals (e.g., monthly). The user’s approval allows these scheduled transactions to occur automatically.<br><br>Inqud schedules invoices automatically according to plan.</p> | <p>Variable amounts based on usage, such as services where payment amounts fluctuate based on customer activity.<br><br>Merchant creates invoices via Inqud API</p> |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.inqud.com/crypto-recurring/explore/how-it-works.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
