# createMerchantQr

Source: https://pakdatakit.dev/api/typescript/raast/functions/createmerchantqr/

```ts
function createMerchantQr(options): string;
```

Defined in: [raast.ts:283](https://github.com/chmuzamil/pakdatakit/blob/a6eeaa47381308c4e4fcda45b29642fe4fbfb1fc/src/raast.ts#L283)

Creates an EMVCo merchant-presented QR payload following SBP's Pakistan QR
standard (currency `586`, country `PK`, CRC in tag 63), including the
Pakistan-specific due-date fields.

SBP leaves the layout of the Raast merchant account template to the scheme
and has shared it only with banks, so pass the template sub-fields your bank
gives you in `merchantAccount`.

## Parameters

| Parameter | Type | Description |
| :------ | :------ | :------ |
| `options` | [`MerchantQrOptions`](https://pakdatakit.dev/api/typescript/raast/interfaces/merchantqroptions/) | Merchant account template, name, city and payment details |

## Returns

`string`

QR payload string

## Throws

If a field is missing, too long, or out of range
