# checkIBANInput

Source: https://pakdatakit.dev/api/typescript/input/functions/checkibaninput/

```ts
function checkIBANInput(value): InputState;
```

Defined in: [input.ts:164](https://github.com/chmuzamil/pakdatakit/blob/a6eeaa47381308c4e4fcda45b29642fe4fbfb1fc/src/input.ts#L164)

Checks a Pakistani IBAN while the user is typing: the `PK` prefix, check
digits and bank code are checked as they are typed, and the full checksum
once all 24 characters are in. See [InputState](https://pakdatakit.dev/api/typescript/input/type-aliases/inputstate/).

## Parameters

| Parameter | Type |
| :------ | :------ |
| `value` | `string` |

## Returns

[`InputState`](https://pakdatakit.dev/api/typescript/input/type-aliases/inputstate/)

## Example

```ts
checkIBANInput('PK36 SC');                       // 'incomplete'
checkIBANInput('GB29');                          // 'invalid'
checkIBANInput('PK36 SCBL 0000 0011 2345 6702'); // 'valid'
```
