Items

5. Register the two inventory items

Both must exist in your inventory's item list, or purchases silently give nothing.

| Config key | Default | Purpose | |---|---|---| | Config.Item | 'license' | Given on licence purchase; carries the card metadata. | | Config.AuthorizationDocumentItem | 'authorization_document' | Given at the Authorization Center once a request is approved. |

Follow the guide for your inventory, each covers item registration, metadata and images:

Per-licence item images are set per template in the Admin Panel (License Editor → the template's item image). That value is the source of truth.

Config.ItemImageByLicenseId is only a fallback: it is consulted solely when a template has no image set in the panel, and never overrides one that does. Leaving it empty, the default, is normal.

Config.ItemImageByLicenseId = {
    -- optional; only used when 'driving_license' has no image set in the panel
    ['driving_license'] = 'nui://ph-licensecreator/images/license_driving.png',
}