TheDocumentation Index
Fetch the complete documentation index at: https://devzone.nayax.com/llms.txt
Use this file to discover all available pages before exploring further.
cardDetect method activates the terminal’s reader to identify and capture data from a payment method (Card or QR) without initiating a financial hold or charge. It serves as a versatile tool for workflows where customer identification must precede the payment phase.
Use this method to:
- Recognize customers via loyalty cards or mobile QR codes to apply personalized discounts.
- Retrieve masked card data to welcome returning users or verify membership status.
- Use card data to determine eligible fuel types or promotions before requesting authorization.
- Accept Contactless (CTLS), Chip (EMV), Magnetic Stripe (Swipe), and QR code scanning.

Requests
All requests must include thecommand and a unique requestId. While this method does not authorize funds, an amount must be provided for display purposes on the terminal screen.
The following example shows a typical request:
Parameter Definitions
The table below describes the parameters available for the detection request:| Name | Type | Required | Description |
|---|---|---|---|
| amount | integer | Yes | The amount to display on the screen during detection (refer to decimalPlace). |
| tranType | integer | No | 1: Pre-authorization, 2: Pre-selection (Default is 1). |
| channels | array | No | Defines allowed payment methods: CTLS, CHIP, SWIPE, or QR. Defaults to all if omitted. |
| buttonMediaId | string | No | Optional button displayed below the channels image. Currently supported value: useQR. |
Responses
The VPOS terminal returns a response once the user interacts with the reader or a QR code is successfully scanned. The following example shows a typical credit card response:Note: When using
cardDetect for non-credit card methods (such as proprietary QR codes) or when a button is pressed, the client system is responsible for any subsequent authorization or settlement logic. The reader is automatically disabled after a QR code scan or button press.Response Parameters
The response data is categorized by the entry mode used by the customer:| Name | Type | Description |
|---|---|---|
| state | string | CARD_READ upon a successful card or QR detection; BUTTON_PRESS when the optional button is pressed. |
| cardEntryMode | string | The method used to capture the data: CTLS, CHIP, SWIPE, or QR. Not present for BUTTON_PRESS. |
| cardBrand | string | The brand of the detected card (e.g., VISA, MASTERCARD). |
| maskedPan | string | The masked Primary Account Number for identification purposes. |
| aid | string | The Application Identifier for EMV-based transactions. |
| qrCode | string | The raw data string captured from a scanned QR code. |