# Getting Started

<figure><img src="/files/bzHRQ7uH1TSNIcITnDSv" alt="Terminal Payment"><figcaption></figcaption></figure>

## Resources

### 1. Payrexx Tap to Pay App

This app is required on the device to process payments.

* [**Download on Google Play**](https://play.google.com/store/apps/details?id=com.payrexx.taptopay)

### 2. Tap to Pay SDK

The SDK contains the core logic for communication between your cash register app and the Payrexx Tap to Pay app. Here you will find the technical documentation for integrating the library.

* [**Go to repository: Payrexx TapToPay SDK**](https://github.com/payrexx/TapToPaySDK)

### 3. ECR Demo App

This demo application shows a complete implementation of the SDK. It serves as a practical example (best practice) of how to address the interface and process callbacks.

* [**Go to repository: Payrexx TapToPay ECR Demo**](https://github.com/payrexx/TapToPayECRDemo)

## How it works

The solution is based on secure App-to-App communication using Android Intents. This ensures that your cash register application never has to handle sensitive card data directly, as the actual transaction processing is delegated to the certified Payrexx Tap to Pay app.

1. **Initiation:** Your cash register app initializes the payment request via the SDK.
2. **Switch:** The Android OS brings the Payrexx Tap to Pay app to the foreground.
3. **Processing:** The customer taps their card or phone on the device. The Payrexx app handles the NFC communication and authorization.
4. **Return:** Upon completion, the Payrexx app closes, and control is returned to your cash register app along with the transaction result.

{% @mermaid/diagram content="sequenceDiagram
participant POS as Your Cash Register App
participant TTP as Payrexx Tap to Pay App

```
Note over POS: Merchant enters amount
POS->>TTP: 1. Initiate Payment (Intent with JSON Bundle)
activate TTP
Note over TTP: Application Switch
Note over TTP: 2. Process Payment<br/>(NFC Interaction)
TTP-->>POS: 3. Return Result (JSON)
deactivate TTP
Note over POS: 4. Handle Callback<br/>(Success/Error)" %}
```

Please refer to the `readme.md` files in the linked repositories for detailed documentations and system requirements.

Supported payment methods:

* Contactless cards payment (Visa, Mastercard)
* Twint


---

# Agent Instructions: 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:

```
GET https://docs.payrexx.com/developer/tap-to-pay-app-to-app-interface/getting-started.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
