> ## Documentation Index
> Fetch the complete documentation index at: https://primer.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# getCardNetworkImage

This method allows you to obtain the image associated with a particular card network by passing
in the card network type as an argument.

> [!WARNING]
>
> This method is deprecated. Please use `getCardNetworkAsset()`.

```kotlin KOTLIN theme={"dark"}
@DrawableRes
@Throws(SdkUninitializedException::class)
@JvmStatic
fun getCardNetworkImage(
    cardNetwork: CardNetwork.Type,
): Int
```

## Parameters

**Parameters**

**cardNetwork** `CardNetwork.Type` *required*

**cases**

**CardNetwork.Type.OTHER**

**CardNetwork.Type.VISA**

**CardNetwork.Type.MASTERCARD**

**CardNetwork.Type.AMEX**

**CardNetwork.Type.DINERS\_CLUB**

**CardNetwork.Type.DISCOVER**

**CardNetwork.Type.JCB**

**CardNetwork.Type.UNIONPAY**

**CardNetwork.Type.MAESTRO**

**CardNetwork.Type.ELO**

**CardNetwork.Type.MIR**

**CardNetwork.Type.HIPER**

**CardNetwork.Type.HIPERCARD**

**CardNetwork.Type.CARTES\_BANCAIRES**

## Returns

A `@DrawableRes Int` that can be used to get actual resource.

## Throws

**Throws**

**SdkUninitializedException**

An exception that will be thrown in case the SDK was not initialized properly.
Before calling any of the manager's method, the SDK must be initialized using [start](https://primer.io/docs/sdk/android/v2.x.x/primer-headless-checkout/methods/start.md) method.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.