> For the complete documentation index, see [llms.txt](https://doc.ecomm.api.tietoevry.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.ecomm.api.tietoevry.com/tietoevry-egw-documentation-es/pasarela-de-pagos-de-comercio-electronico/guia-del-sandbox/pagina-de-pago-autohospedada/pago-con-tarjeta.md).

# Pago con tarjeta

La opción de Pago con Tarjeta en el sandbox simula el flujo tradicional de checkout con tarjeta, donde el usuario introduce manualmente los datos de la tarjeta. Esto demuestra cómo EGW gestiona la introducción directa de datos de tarjeta de forma segura y estructurada.

{% hint style="info" %}
En modo sandbox, todas las transacciones son simuladas y los datos de la tarjeta no se procesan ni se envían a ninguna red externa.
{% endhint %}

### Datos de prueba

* **Nombre del titular de la tarjeta:** Cualquier valor
* **Número de tarjeta:**
  * 5186 0000 0000 0005 – Autorización exitosa
  * 5186 0000 0000 0013 – Autorización fallida
* **Fecha de caducidad:** Cualquier fecha futura válida (p. ej., 12/28)
* **CVV:** Cualquier número de 3 dígitos (p. ej., 123)

{% hint style="info" %}
Todos los datos son simulados. No se realiza ninguna autorización real y las respuestas se basan en reglas de sandbox predefinidas.
{% endhint %}

### Instrucciones

El recorrido general del checkout para los pagos con tarjeta sigue los mismos pasos que el[ flujo de Click-to-Pay](/tietoevry-egw-documentation-es/pasarela-de-pagos-de-comercio-electronico/guia-del-sandbox/pagina-de-pago-autohospedada/click-to-pay.md#how-to).

1. El usuario parte de la Demo Shop, selecciona un producto, lo añade a la cesta y continúa con el checkout.&#x20;
2. La única diferencia es que, en la página de Checkout alojada por el Gateway, el usuario debe seleccionar la opción “Tarjeta” en lugar de Click-to-Pay.
3. Después de elegir el método, el usuario introduce manualmente los datos de la tarjeta de prueba y completa la transacción simulada.

<figure><img src="https://387420926-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuxLHJOqJIapfeJ1Ei4Hr%2Fuploads%2FNCSZ28PiIaiwLDbY0qN6%2Fcard.gif?alt=media&amp;token=7ef321ee-28ce-4c93-820a-5ea221417a38" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://doc.ecomm.api.tietoevry.com/tietoevry-egw-documentation-es/pasarela-de-pagos-de-comercio-electronico/guia-del-sandbox/pagina-de-pago-autohospedada/pago-con-tarjeta.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
