> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cdp.coinbase.com/llms.txt
> Use this file to discover all available pages before exploring further.

# FetchBuyOptions

```ts theme={null}
type FetchBuyOptions = (params: {
  country: string;
  subdivision?: string;
}) => Promise<OnrampBuyOptionsResponse>;
```

Get Buy Options function (used for building list of payment methods)

## Parameters

| Parameter | Type |
| - | - |
| `params` | \{ `country`: `string`; `subdivision?`: `string`; } |
| `params.country` | `string` |
| `params.subdivision?` | `string` |

## Returns

`Promise`\<[`OnrampBuyOptionsResponse`](/sdks/cdp-sdks-v2/frontend/@coinbase/cdp-react/Type-Aliases/OnrampBuyOptionsResponse)>
