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

# getPaymentMethodAsset

> [!WARNING]
>
> This method is **deprecated**.
> Use [getPaymentMethodResource](https://primer.io/docs/sdk/react-native/v2.x.x/primer-headless-checkout/assets-manager/getPaymentMethodResource.md) instead.

Call this method to retrieve assets for a given `paymentMethodType`.

```ts TS theme={"dark"}
async getPaymentMethodAsset(paymentMethodType: string): Promise<Asset>
```

## Parameters

**Parameters**

**paymentMethodType** `String` *required*

The payment method type to return an asset for

## Returns

**Returns**

**Promise**

**Asset**

**paymentMethodType** `string` *required*

A unique string identifier for the payment method. Supported payment methods for current client session are returned in `onAvailablePaymentMethodLoad` callback.

**paymentMethodName** `string` *required*

A user friendly English localized string identifier for the payment method

**paymentMethodLogo** `object`

**colored?** `string`

**dark?** `string`

**light?** `string`

**paymentMethodBackgroundColor** `object`

**colored?** `string`

**dark?** `string`

**light?** `string`


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