# Tilopay.getCardType()

> Returns the brand of the card the customer typed or picked, in lowercase, so you can show its icon.

- kind: sdk-method
- status: stable
- sdk_version: 2.1.1
- last_verified: 2026-10-21
- url: https://tilopay.com/en/developers/sdk/reference/get-card-type

Returns the card brand from the number the customer already typed into `tlpy_cc_number` (or
from the saved card they picked). The typical use is showing the brand icon.

## Signature [#firma]

```js
await Tilopay.getCardType()
```

It takes no parameters.

**Precondition:** the customer must have already typed the card number or picked a saved card.

## Call [#llamada]

```js
const type = await Tilopay.getCardType();
```

## Response [#respuesta]

```json
{
  "message": "visa"
}
```

<Param id="get-card-type-message" name="message" type="string">
The card brand, in lowercase. If the brand is not recognized, it is empty.
</Param>

## Brand values [#marcas-soportadas]

| Status | Values |
|---|---|
| Supported | `visa`, `mastercard`, `amex` |
| Not supported | `elo`, `visaelectron`, `maestro`, `forbrugsforeningen`, `dankort`, `hipercard`, `dinersclub`, `discover`, `unionpay`, `jcb`, `laser` |

Use the result for presentation only: brand validation happens when Tilopay processes the
charge, not in this method.
