# 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: 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/how-it-works.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.
