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

# getAssetsManager

```ts TS theme={"dark"}
getAssetsManager(): IAssetsManager
```

Get an instance of `IAssetsManager`, which can be used to load and manage Primer's checkout assets.

## Returns

**IAssetsManager**

An instance of `IAssetsManager`.

**IAssetsManager**

**getPaymentMethodAsset** `(type: PaymentMethodType) =\> Promise\<ButtonPaymentMethodAsset | null\>`

Retrieves the asset for a given [PaymentMethodType](https://primer.io/docs/sdk/web/v2.x.x/constants/payment-method-types.md). Returns a promise that
resolves to the asset or `null` if the asset is not available.

**Parameters**

**type** `PaymentMethodType`

One of [PaymentMethodType](https://primer.io/docs/sdk/web/v2.x.x/constants/payment-method-types.md).

**Returns**

**backgroundColor** `object`

The background color of the payment method button.

**Properties**

**colored** `string` *required*

The color to use when theme is colored.

**dark** `string` *required*

The color to use when theme is dark.

**light** `string` *required*

The color to use when theme is light.

**iconUrl** `object`

The URL of the payment method icon that is displayed on the payment method
button.

**Properties**

**colored** `string` *required*

The color to use when theme is colored.

**dark** `string` *required*

The color to use when theme is dark.

**light** `string` *required*

The color to use when theme is light.

**paymentMethodName** `string`

⚠️ This property is Deprecated. Please use buttonText or displayName
instead.

The name of the payment method that is displayed on the payment method button.
Optional.

**buttonText** `string`

The name of the payment method that is displayed on the payment method
button. This will be null for payment methods without a button title.
Optional.

**displayName** `string`

The name of the payment method. Optional.

**getCardNetworkAsset** `(cardNetwork: string) =\> Promise\<CardNetworkAsset\>`

Retrieves the asset for a given card network. Returns a promise that resolves to the asset object.

**Parameters**

**cardNetwork** `string`

The network value, for example: `VISA`, `MASTERCARD`.

**Returns**

**cardUrl** `string`

The URL for retrieving the asset in a "card" style.

**displayName** `string`

The name of the card network.\
Can be used as [alt](https://developer.mozilla.org/en-US/docs/Web/api-reference/HTMLImageElement/alt)
and [title](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/title) for the image.


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