> ## 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](/docs/sdk/react-native/v2.x.x/primer-headless-checkout/assets-manager/getPaymentMethodResource) instead.
</Warning>

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

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

## Parameters

<Expandable title="Parameters" defaultOpen>
  <ResponseField name="paymentMethodType" type="String" required>
    The payment method type to return an asset for
  </ResponseField>
</Expandable>

## Returns

<Expandable title="Returns" defaultOpen>
  <ResponseField name="Promise">
    <Expandable title="Asset">
      <ResponseField name="paymentMethodType" type="string" required>
        A unique string identifier for the payment method. Supported payment methods for current client session are returned in `onAvailablePaymentMethodLoad` callback.
      </ResponseField>

      <ResponseField name="paymentMethodName" type="string" required>
        A user friendly English localized string identifier for the payment method
      </ResponseField>

      <ResponseField name="paymentMethodLogo" type="object">
        <Expandable>
          <ResponseField name="colored?" type="string" />

          <ResponseField name="dark?" type="string" />

          <ResponseField name="light?" type="string" />
        </Expandable>
      </ResponseField>

      <ResponseField name="paymentMethodBackgroundColor" type="object">
        <Expandable>
          <ResponseField name="colored?" type="string" />

          <ResponseField name="dark?" type="string" />

          <ResponseField name="light?" type="string" />
        </Expandable>
      </ResponseField>
    </Expandable>
  </ResponseField>
</Expandable>
