# MD for: https://www.mercadopago.com.ar/developers/es/docs/qr-code-legacy/integration-configuration/qr-dynamic/integration.md \# How to integrate the QR Dynamic Model For collecting with a Dynamic Model QR code, you must generate an order and, depending on the obtained response, create a code using an external service. ## Model flow Find below how this model works: 1\. Create an order with all the necessary payment information. 2\. The response will include a data string under the attribute \`qr\_data\`. 3\. Generate a QR code with the received attribute. 4\. Finally, provide the QR code to the customer for payment, as you prefer. There are two ways to follow these steps: \*\*creating an order\*\*, or \*\*creating an order associated to a POS\*\*. We'll see them next. ## Create an order First of all, generate the order publication. Once the data is sent to Mercado Pago, a string with the standard \[EMVCo\](https://www.emvco.com/emv-technologies/qr-codes/) will be available. To create an order, access our \[API Reference\](https://www.mercadopago.com.ar/developers/en/reference/qr-dynamic/\_instore\_orders\_qr\_seller\_collectors\_user\_id\_pos\_external\_pos\_id\_qrs/post) and execute the curl you will find there. The response will include the data required to create the QR code. > NOTE > > Note > > The model does not include an option to delete the order. Therefore, we recommend setting an expiration date using the \`expiration\_date\` attribute. \*\*Response\*\* \`\`\`json { "qr\_data": "00020101021243650016COM.MERCADOLIBRE02013063638f1192a-5fd1-4180-a180-8bcae3556bc35204000053039865802BR5925IZABEL AAAA DE MELO6007BARUERI62070503\*\*\*63040B6D" } \`\`\` The response will be a string with the EMVCo standard. Use the \`qr\_data\` to make the QR code available with a generator or by your application. ## Crear an order associated with a POS In addition to generating the QR code, you also have the option to create and assign the same order to the point of sale’s fixed QR code. Execute the API call detailed \[in this section of our API Reference\](https://www.mercadopago.com.ar/developers/en/reference/qr-dynamic/\_instore\_orders\_qr\_seller\_collectors\_user\_id\_pos\_external\_pos\_id\_qrs/put) to generate the order and assign it to the POS. The response will contain the data required to create the QR code, associated with the declared QR. ## Receive orders notifications An IPN (Instant Payment Notification) 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 \[IPN notifications\](https://www.mercadopago.com.ar/developers/en/docs/qr-code/additional-content/your-integrations/notifications/ipn) to learn how to implement them, more specifically 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.