> ## 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.

# getCardNetworkAsset

This method returns a card asset for the specified card network.

The SDK must be initialized before this method is called or an error will be thrown.

```kotlin KOTLIN theme={"dark"}
@Throws(SdkUninitializedException::class)
@JvmStatic
fun getCardNetworkAsset(
  context: Context,
  cardNetwork: CardNetwork.Type
): PrimerCardNetworkAsset
```

## Parameters

**Parameters**

**context** `Context` *required*

Android [Context](https://developer.android.com/reference/android/content/Context.html) of
your `Activity` or `Fragment`.

**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

**Returns**

**PrimerCardNetworkAsset**

**Properties**

**cardNetwork** `CardNetwork.Type`

The card network that the asset represents.

**displayName** `String`

The human-readable name of the card network (e.g., Visa, Mastercard)

**cardImage** `Drawable?`

A small rectangular icon representing the card network.

## 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.