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

# getPaymentMethodResources

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

```typescript TYPESCRIPT theme={"dark"}
async getPaymentMethodResources(): Promise<Resource[]>
```

## Returns

<Expandable title="Returns" defaultOpen>
  <ResponseField name="Resource[]">
    <Expandable title="Resource">
      <ResponseField name="AssetResource">
        <Expandable>
          <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>

      <ResponseField name="NativeViewResource">
        <Expandable>
          <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="nativeViewName" type="string" required>
            The name of the native view. Pass this to NativeResourceView when rendering.
          </ResponseField>

          ```typescript TYPESCRIPT theme={"dark"}
          <NativeResourceView
            onPress={() => {
              // Handle tap
            }}
            nativeViewName={nativeViewResource.nativeViewName}
            style={{
              marginHorizontal: 20,
              marginVertical: 8,
              justifyContent: "center",
              alignItems: "center",
            }}
          />
          ```
        </Expandable>
      </ResponseField>
    </Expandable>
  </ResponseField>
</Expandable>
