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

Call this method to retrieve the asset for a specific payment method, if available on the current client session.

```swift SWIFT theme={"dark"}
static func getPaymentMethodAsset(for paymentMethodType: String) throws -> PrimerPaymentMethodAsset?
{{ ... }}
```

## Parameters

**Parameters**

**paymentMethodType** `String` *required*

The payment method type to return an asset for

## Returns

**PrimerPaymentMethodAsset**

**paymentMethodType** `String` *required*

**paymentMethodName** `String` *required*

**paymentMethodLogo** `String` *required*

**paymentMethodBackgroundColor** `UIColor` *required*


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