# MD for: https://www.mercadopago.com.br/developers/en/docs/qr-code-legacy/integration-configuration/qr-attended/integration.md \# How to integrate the QR Attended Model To charge with a QR Attended Model, you need to create an order and associate it with a Point of Sale. ## Model flow This is how the attended model works: !\[Payment flow at QR Mercado Pago POS\](https://www.mercadopago.com.br/images/qr/v1-qr-attended-workflow-en.png) 1\. The store registers a sale (1a) and creates an order assigned to the point of sale (1b). The order is then available for scanning (2). 2\. When the customer scans the QR Code (3) and completes the payment (5a), Mercado Pago sends a notification with the topic \`merchant\_order\` and the \`status:closed\` to the seller's server (5b). They must respond a \`HTTP STATUS 200 (OK)\` or \`201 (CREATED\` to confirm its reception (5c). Otherwise, Mercado Pago will continue to resend the notification according to our retry logic. If you want more information about this retry logic, go to \[Notifications\](https://www.mercadopago.com.br/developers/es/docs/qr-code/additional-content/your-integrations/notifications/ipn). 3\. With this information, the seller must confirm if the order status is closed (6a and 6b) and proceed with the ticket printing (7). > WARNING > > Important > > It is possible to receive notifications with the topic \`merchant\_order\` with a \`status:opened\` in different stages of the payment flow. For this reason, you must not take them as a valid indicator. Instead, only consider those with\`status:closed\`. ## Create an order For more information on how to create orders access our \[API Reference\](https://www.mercadopago.com.br/developers/en/reference/instore\_orders/\_instore\_qr\_seller\_collectors\_user\_id\_stores\_external\_store\_id\_pos\_external\_pos\_id\_orders/put). The order is available for \*\*scanning and payment\*\* after its creation. > NOTE > > Note > > Remember that if you have not previously uploaded your business name or logo in \[your Mercado Pago account,\](https://www.mercadopago.com.ar/settings/account) the order title and image showcased to the client in the App will correspond to the item uploaded first. ## Eliminate an order For more information on how to delete the order associated with a QR before its expiration, or closing, see our \[API Reference\](https://www.mercadopago.com.br/developers/en/reference/instore\_orders/\_instore\_qr\_seller\_collectors\_user\_id\_pos\_external\_pos\_id\_orders/delete). > The response will be an \`HTTP 204 No Content\`. ## Receive notifications of your orders A notification is an \*\*automatic message that notifies the creation of new orders and their status updates\*\*. I.e.: If an order is approved, rejected, or pending. Go to \[Notifications\](https://www.mercadopago.com.br/developers/en/docs/qr-code/additional-content/your-integrations/notifications) to learn how to implement them. More specifically for QR Code, you must activate the \`merchant\_order\` notifications, which are the ones associated with orders. You will be able to identify each one of theses orders by the \`external\_reference\` parameter.