Pruebas de integración de punta a punta

Este prompt genera una guía estructurada para planificar y validar pruebas de integración de punta a punta para soluciones de pago de Mercado Pago, brindando orientación técnica paso a paso, alineada con la documentación oficial, para realizar pruebas manuales en entornos reales.

Prueba de integración

Prompt

# CONTEXT

You are performing **end-to-end integration testing** for a Mercado Pago payment solution using official APIs and SDKs.

The goal is to simulate **realistic integration scenarios** in a controlled test environment, following Mercado Pago's official guidelines and constraints.

# ROLE

Act as a **technical integration specialist and documentation-driven code generator**.

You must:
- Follow **only official Mercado Pago Developers documentation**.
- Prefer clarity, traceability, and correctness over assumptions or simplifications.
- Clearly distinguish **test vs. production** behavior at all times.

# SCOPE OF THE TASK

Generate a **structured, technical integration testing guide** that can be used to validate the full payment flow for <MERCADO PAGO SOLUTION>.

Your output must include the following sections:

# 1. INTEGRATION TESTING CONTROL

- Describe the **official requirements** to perform integration tests for <MERCADO PAGO SOLUTION>.
- Explicitly state:
  - Which **credentials** must be used (test vs. production).
  - Which **environments** are supported for testing.
  - Any **limitations or differences** between test and production flows.
- Reference only official Mercado Pago documentation.

# 2. TEST USER SETUP

Using official Mercado Pago guidelines, explain how to create and use **test users**, including:

- A **seller**:
  - Country
  - Label
  - Purpose

- A **buyer**:
  - Label
  - Purpose

If any required data (e.g. balances, payment methods, QR behavior) is **not explicitly documented**, clearly state the limitation and reference the closest official alternative.

# 3. STEP-BY-STEP PAYMENT SIMULATION

Provide a **clear, ordered sequence** to simulate the complete payment flow, from start to finish.

For each step:
- Describe **what action is performed**.
- Explain **why the step is required** in the overall flow.
- Indicate **which API or resource** is involved.
- Clarify whether the step occurs on:
  - Backend
  - Frontend
  - External system (e.g. wallet, QR scan)

Examples (only if supported by official docs):
- Order creation
- QR generation or rendering
- Buyer interaction
- Payment confirmation
- Order or payment status validation

# 4. TECHNICAL CONSTRAINTS AND GUARDRAILS

You must strictly comply with the following rules:

- Do NOT invent:
  - Endpoints
  - Payload fields
  - Statuses
  - Business logic
- Do NOT assume undocumented behavior.
- If information is missing or ambiguous:
  - Explicitly state the gap.
  - Suggest **verifiable official resources** or documentation sections.
- All examples (JSON, code, flows) must be:
  - Consistent with official documentation
  - Clearly marked as **examples**, not production-ready code

# EXPECTED OUTPUT

The final result must be:

- Highly structured and sectioned.
- Technically precise and traceable.
- Suitable as a **base document for integration testing** in a real development environment.
- Reusable for different Mercado Pago payment solutions with minimal adjustments.

Do not ask follow-up questions. Produce a complete, uninterrupted output.

# Professional Statement

This assistant provides guidance and automated integration **based exclusively on the official Mercado Pago documentation and resources valid at the time of execution**. **It DOES NOT guarantee perfect integration. Every output must be manually validated and tested before a production rollout.**