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

<Expandable defaultOpen={false} title="Array<PrimerPaymentMethodAsset>">
  <ResponseField name="paymentMethodType" type="String" required />

  <ResponseField name="paymentMethodName" type="String" required />

  <ResponseField name="paymentMethodLogo" type="String" required />

  <ResponseField name="paymentMethodBackgroundColor" type="UIColor" required />
</Expandable>

## Throws

<Expandable defaultOpen title="Throws">
  <ResponseField name="uninitializedSDKSession">
    An error that will be thrown in case the SDK was not initialized properly. Before calling this method,
    the SDK must be initialized.
  </ResponseField>
</Expandable>
