# MD for: https://www.mercadopago.com.ar/developers/pt/docs/checkout-api-orders/integration-test/fast-payments.md \# Test purchase with Fast Payments by Mercado Pago To test your \*\*Fast Payments by Mercado Pago\*\* integration via \*\*Payment Brick\*\*, use a buyer \[test account\](https://www.mercadopago.com.ar/developers/en/docs/checkout-api-orders/resources/test-accounts) with a test card and account money. This account lets you complete test purchases without using real money or data. The scenarios on this page validate the display of eligible payment methods, buyer authentication, and the delivery of payment data to your integration so it can create the order. If you have not implemented the solution yet, see the \[Fast Payments by Mercado Pago integration\](https://www.mercadopago.com.ar/developers/en/docs/checkout-api-orders/payment-integration/mobile/fast-payments) before starting the tests. :::AccordionComponent{title="Set up the test environment"} 1\. Go to \[Integration data\](https://www.mercadopago.com.ar/developers/en/docs/checkout-api-orders/resources/application-details) and locate the \*\*Application number\*\* (\`application\_id\`) that will be used for testing. 2\. Send the \`application\_id\` to your Mercado Pago account executive and request enablement of \*\*Fast Payments by Mercado Pago\*\* in the test environment. Activation is performed by Mercado Pago and is not available through a self-service link in the dashboard. 3\. Wait for confirmation that it has been enabled before continuing. 4\. Use a \[test account\](https://www.mercadopago.com.ar/developers/en/docs/checkout-api-orders/resources/test-accounts) of the buyer type, with a test card and account funds. Follow the instructions on that page to create and set up the account, and see the \[test card data\](https://www.mercadopago.com.ar/developers/en/docs/checkout-api-orders/integration-test/cards) for the card scenario. 5\. To validate Payment Brick, set up the test environment on mobile web or desktop web. > WARNING > > The six-digit code sent by email to log in to the test account, documented under \[Test accounts\](https://www.mercadopago.com.ar/developers/en/docs/checkout-api-orders/resources/test-accounts), is not the same as the SMS OTP Mercado Pago may request to authorize the payment. > NOTE > > The flow accepts any valid email address, but only the email of a Mercado Pago account eligible for Fast Payments displays the Fast Payments methods. With other emails, Payment Brick displays only the guest flow methods. With the environment ready, run the following two test scenarios. ::: ::::::AccordionComponent{title="Test the Payment Brick integration"} Select the payment method you want to validate. :::::TabsComponent ::::TabComponent{title="Saved card"} 1\. Run the flow on mobile web or desktop web using the email of a buyer account eligible for Fast Payments, and keep \`quickCheckout: \["fastPayment"\]\` in \`initialization\`, with the card types declared in \`paymentMethods\` such as \`creditCard: "all"\`. 2\. Select the test card saved on the account. 3\. Complete the authentication requested by Mercado Pago according to the device you are using: - Desktop web: use the OTP sent by SMS. - Mobile web: use a Passkey or the OTP sent by SMS. On Android, you can also confirm the payment in the Mercado Pago or Mercado Libre app. 4\. Confirm the payment. As the expected result, the \`onSubmit\` callback must provide \`PaymentFormData\`. The backend must then create the order through the :TagComponent{tag="POST" text="/v1/orders" href="/developers/en/reference/online-payments/checkout-api/create-order/post" color="green"} endpoint and receive the approved payment. :::: ::::TabComponent{title="Account money"} 1\. Run the flow on mobile web or desktop web using the email of a buyer account eligible for Fast Payments, and keep \`quickCheckout: \["fastPayment"\]\` in \`initialization\` and \`bankTransfer: \["account\_money"\]\` in \`paymentMethods\`. 2\. Select the funds available in the test account. 3\. Complete the authentication indicated by Mercado Pago. 4\. Confirm the payment. As the expected result, the \`onSubmit\` callback must provide \`PaymentFormData\` without \`installments\`. The backend must then create the order through the :TagComponent{tag="POST" text="/v1/orders" href="/developers/en/reference/online-payments/checkout-api/create-order/post" color="green"} endpoint, debiting the test buyer's account funds. :::: ::::: :::::: :::AccordionComponent{title="Verify the test purchase"} To verify that the purchase was completed correctly, send a request to the :TagComponent{tag="GET" text="/v1/orders/{id}" href="/developers/en/reference/online-payments/checkout-api/get-order/get" color="accent"} endpoint, replacing \`id\` with the order identifier returned in its creation response. Also send the application's :toolTipComponent\[test Access Token\]{content="Private key linked to an application, used in the backend to authenticate operations in the test environment. You can find it in the application's Credentials section, within the test environment. It cannot process real payments and must never be exposed in the frontend."}. Confirm that the response contains the created order, its associated transaction, and the expected status for the executed scenario. ::: > SUCCESS\_MESSAGE > > After validating both scenarios with test accounts, continue to \[Measure integration quality\](https://www.mercadopago.com.ar/developers/en/docs/checkout-api-orders/integration-quality) before requesting production enablement for your \`application\_id\` (available under \[Your integrations\](https://www.mercadopago.com.ar/developers/panel/app)). After completing the measurement and receiving enablement, you can \[go to production\](https://www.mercadopago.com.ar/developers/en/docs/checkout-api-orders/go-to-production).