# Function: readPayAnswer()

```ts
function readPayAnswer(answer): PayAnswer | null;
```

Defined in: [packages/core/src/session/hosting.ts:468](https://github.com/leifriksheim/minca/blob/main/core/src/session/hosting.ts#L468)

A pay answer from a host, or null when it doesn't read as one: a checkout page must be https://

## Parameters

| Parameter | Type |
| ------ | ------ |
| `answer` | `unknown` |

## Returns

[`PayAnswer`](https://minca.dev/api/core/type-aliases/PayAnswer.md) \| `null`
