> For the complete documentation index, see [llms.txt](https://docs.payments.thalescloud.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.payments.thalescloud.io/transit-digitization/es/implementar-google-transit/ticketing-basado-en-cuenta-abt/notificacion-de-transaccion.md).

# Notificación de transacción

Las notificaciones son activadas por el Emisor de Tránsito para que los eventos de viaje puedan mostrarse dentro de la billetera.

Esta sección ofrece una visión general del flujo de trabajo, incluyendo pasos detallados, diagramas de secuencia y posibles escenarios de error.

### Flujo de trabajo <a href="#workflow" id="workflow"></a>

A continuación se presentan los pasos a alto nivel del flujo de trabajo de notificación de mensajes:

1. **Inicio de la notificación** : El Emisor de Tránsito instruye a D1 Transit para enviar una notificación de transacción a una tarjeta digital específica.
2. **Notificación en la billetera**: D1 Transit utiliza la API de notificaciones de Google para enviar una notificación push a la billetera correcta.
3. **Recuperación de detalles de la transacción**: El dispositivo se conecta al servidor de Google que a su vez se conecta a la plataforma D1 Transit para recuperar el contenido del mensaje.

### Diagrama de secuencia <a href="#sequence-diagram" id="sequence-diagram"></a>

#### Inicio de la notificación <a href="#notification-initiation" id="notification-initiation"></a>

El emisor de tránsito instruye a D1 Transit para enviar una notificación de transacción a la tarjeta digital especificada usando la API handleEvent.

#### Notificación al dispositivo y recuperación de detalles de la transacción <a href="#device-notification-and-transaction-details-retrieval" id="device-notification-and-transaction-details-retrieval"></a>

La plataforma D1 Transit utiliza la API transactionEvent de Google para enviar una notificación push a la billetera. El dispositivo, a través del servidor de Google, se conecta a D1 Transit para recuperar los detalles de la transacción que D1 Transit obtiene del Emisor de Tránsito.

**Escenarios de error**

**El dispositivo está sin conexión**

Si el dispositivo está sin conexión, la solicitud para notificar los detalles de la transacción se pone en cola y se enviará al dispositivo tan pronto como se vuelva a conectar.

<figure><img src="/files/1721eaae4f418dc4fc853c75e9d7084e37c4b73d" 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.payments.thalescloud.io/transit-digitization/es/implementar-google-transit/ticketing-basado-en-cuenta-abt/notificacion-de-transaccion.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
