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

# Troubleshooting

> Debug common issues with the Payment Methods integration.

## Component not rendering?

**Verify component attributes:**

* `session-id` must be a valid session ID from the API.
* `amount` must be set.
* `customer-type` must be `NATURAL` or `LEGAL`.

**Check script loading:**

* Use `embed.src` from the session response. Do not hardcode the URL.
* The script must have `type="module"`.

## Session or API errors

**"Unauthorized" or 401 errors:**

* Session is invalid or expired. Create a new session.

**"Invalid session" errors:**

* Verify the session ID is the `id` value from the session response.
* Ensure the session hasn't expired.

## Payment method types

The following payment method types are supported:

* `RESURS_INVOICE`
* `RESURS_PART_PAYMENT_SELECT_LATER`
* `RESURS_PART_PAYMENT_SELECT_NOW`
* `RESURS_CARD`
* `RESURS_REVOLVING_CREDIT`
* `RESURS_NEW_REVOLVING_CREDIT`

<Note>
  Available payment methods depend on your store configuration, customer type,
  and the specified amount. Only applicable methods are displayed.
</Note>

***

## API reference

For the full API specification, see the [Payment Methods API Reference](/api-reference/sessions/create-session).
