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

# getPaymentMethodAssets

Call this method to retrieve assets for all the payment methods available on the current client session.

```swift SWIFT theme={"dark"}
static func getPaymentMethodAssets() throws -> [PrimerPaymentMethodAsset]
{{ ... }}
```

## Returns

**Array\<PrimerPaymentMethodAsset>**

**paymentMethodType** `String` *required*

**paymentMethodName** `String` *required*

**paymentMethodLogo** `String` *required*

**paymentMethodBackgroundColor** `UIColor` *required*

## Throws

**Throws**

**uninitializedSDKSession**

An error that will be thrown in case the SDK was not initialized properly. Before calling this method,
the SDK must be initialized.


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