Sandbox (Simulation Environment)
Execute successful tests according to the endpoints for the payment methods available for checkout, using test card data.
When testing MIA QR payments in the sandbox environment, the payment is not completed automatically after the QR code is displayed on checkout. To complete the test payment, a manual simulation step is required.
This page describes the end-to-end flow for testing MIA QR payments in the sandbox environment when using the e-commerce checkout.
The testing flow consists of three main steps:
Generating a MIA QR on checkout
Retrieving the generated QR identifier (
qrId)Simulating the payment for the QR
Step 1: Generate a MIA QR on Checkout
Start a checkout payment and select MIA QR as the payment method.
After clicking Pay with MIA QR, a QR code is displayed on the checkout page.
Example screen showing a generated MIA QR on the checkout page
At this point:
the QR is generated successfully
the payment remains in a pending state
no real payment is executed in sandbox
Step 2: Retrieve the generated QR (qrId)
qrId)To simulate the payment, first retrieve the identifier of the QR generated on checkout.
Call the following endpoint to retrieve the list of generated QR codes: https://docs.maibmerchants.md/mia-qr-api/en/endpoints/information-retrieval-get/display-list-of-qr-codes-with-filtering-options
From the response:
sort QR codes by creation date
identify the latest QR
copy its
qrId
ℹ️ Note The latest QR by creation date corresponds to the QR currently displayed on the checkout page.
Step 3: Simulate the payment for the QR
Using the retrieved qrId, simulate the payment according to the sandbox simulation documentation:
👉 https://docs.maibmerchants.md/mia-qr-api/en/payment-simulation-sandbox
For sandbox testing, use the following IBAN (as shown in the official example):
After a successful simulation:
the payment status is updated
the checkout flow proceeds as a completed payment
Last updated
