# Payment Initiation

Payment initiation in the QR MIA ecosystem is performed by generating a QR code, which can be scanned using the maib mobile application or the phone’s camera to complete the payment.

#### Available QR Types

* **Static QR**\
  Fixed QR code, used in static contexts (e.g., stickers, menus). The amount can be:
  * Fixed
  * Controlled (minimum-maximum range)
  * Free (the user enters the amount)
* **Dynamic QR**\
  QR code generated for a single transaction, with a fixed amount and limited validity.
* **Hybrid QR**\
  Reusable QR code allowing modification of the amount and expiration date. Suitable for static displays but with dynamic behavior.

#### Payment Initiation Steps

1. Select the required QR type (Static, Dynamic, Hybrid)
2. Send a POST request to the corresponding endpoint
3. Include the following details:
   * Amount type (Fixed, Controlled, Free)
   * Currency (only MDL)
   * Amount or limits
   * Expiration date
   * Order description
   * Callback URL
4. Receive the response containing the generated QR data:
   * `qrId`: unique identifier of the QR code
   * `extensionId`: extension identifier (only for Hybrid QR)
   * `url`: link to be displayed, saved, or rendered as a QR code
5. Display the QR code to the end user
6. The payment is made by scanning the QR code using the bank app or phone camera

####


---

# 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.maibmerchants.md/mia-qr-api/en/endpoints/payment-initiation.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.
