All pages
Powered by GitBook
1 of 1

Loading...

Mobile Documents (mDoc)

Mobile Document reading lets your DynaFlex II Go capture a digital identity document, such as a mobile driving license (mDL) or a mobile passport (mPass), directly from a smartphone. The reader opens an encrypted connection using NFC or a dynamic QR code. It then requests specific data elements that require consent from the consumer and their device. Next, it validates the issuer's digital signature to ensure authenticity before transmitting the verified records to your host system.

This guide explains how an mDoc transaction works and points to the reference pages for each command, property, and file operation involved. It is the orientation layer; the byte-level detail lives in the reference pages linked throughout.

Applies to: DynaFlex II Go with AC3 firmware or later.

Introductory preview: AC3 firmware automatically activates mDoc features on all compatible DynaFlex II Go readers as an introductory preview. Development and operations teams can evaluate workflow integration, frontline interactions, and transaction speeds without upfront licensing costs. When the preview period ends, mDoc requires an active subscription.

What mDoc Does

mDoc supports credential-verification flows that need a real, issuer-signed government identity document rather than a self-reported value β€” for example, age-restricted sales, identity checks at pickup or check-in, and digital onboarding. A transaction can return specific data elements (name, birth date, portrait, document number, and so on), or, when all you need is an age check, run a boolean age-verification command.

Two ISO standards are supported:

  • β€” the mobile driving license (mDL) standard, together with the data set used by U.S. jurisdictions.

  • β€” a second namespace for other mobile ID document types, including mobile passports.

Which data elements are available depends on the namespace you select. The full catalog of request items per namespace lives in the request-item tag tables (see Reference below).

An mDoc credential lives in the cardholder's mobile wallet or in a state-issued digital credential app. The phone and OS versions required to hold a mobile driving license or passport are set by the wallet and app providers and may change over time, so this guide links to their documentation rather than restating requirements that would quickly go stale:

  • State-issued digital credential apps

Check the relevant provider page for current device, OS, and regional requirements.

An mDoc transaction moves through four phases. The host starts it with (or for age-only checks) and follows progress through notifications.

  1. Device engagement. The cardholder presents their phone by tapping (NFC) or by letting the reader scan a QR code shown on the phone. The data exchanged during engagement seeds the ephemeral session keys used to encrypt and decrypt the rest of the exchange, per the key-generation algorithm defined in ISO/IEC 18013-5. The reader reports engagement status back to the host through . If engagement fails, the transaction ends here.

  2. User consent. The reader connects to the phone over BLE and sends the session-encrypted "mDoc request" it built from the request items you specified in the command. The phone then displays a consent message showing the ID holder exactly which data elements the reader is asking for. No data leaves the phone until the holder taps Accept; if they decline, the transaction ends without returning data.

  3. Data retrieval. Once the holder consents, the phone releases the "mDoc response." The response is CBOR-encoded and decoded by the reader.

If the operation finishes – whether it timed out or was cancelled – the reader sends .

  • Use for a full transaction where you specify exactly which data elements to request across the ISO 18013-5 / AAMVA / ISO 23220-4 namespaces.

  • Use when you only need to check age. It is a subset of , supports the namespace only, and requests just the age-over item β€” 18, 21, or 25. The response format is identical to : the reader returns the requested data element, not a separate pass/fail flag (see Handling results and errors). Because only the age-over element is requested, your application can complete an age check without receiving the holder’s name, birth date, or other identifying data.

To cancel a transaction that is already running, send .

The host enables one or more ways for the phone to start engagement:

  • β€” the cardholder taps the phone to the reader.

  • β€” the reader reads a QR code presented on the phone.

At least one engagement method must be enabled for a transaction to start. Audio cues (start engagement, finish engagement, BLE transfer complete, mDL transaction error) can be left on automatic tones or driven explicitly by the host.

mDoc layers two independent protections:

  • Session security. The engagement exchange derives ephemeral keys that protect the request/response traffic between the reader and the phone (ISO/IEC 18013-5).

  • Issuer authentication and integrity. The reader hosts an internal of trusted IACA certificates β€” the issuer certificates supplied by the original credential issuers (states, Apple Wallet, Google Wallet, Samsung Wallet, and others). It validates the returned mDoc locally, on the reader itself, against those certificates and checks the SHA-256 hash of each item, so a response can be trusted to have come, unaltered, from a legitimate issuer without relying on any external service.

Separately, the data returned to the host can optionally be encrypted and MAC-protected. mDoc uses the reader's for this β€” the same keys shared with the device's other features β€” so no mDoc-specific key provisioning is required. The container is secured with either a TDES or an AES key, depending on the DUKPT key type in use. See the guide for details.

Before a reader can run an mDoc transaction, all of the following must be in place:

  • Firmware. mDoc requires AC3 firmware or later on DynaFlex II Go. Note that certificate-store file IDs differ between older and newer reader images, so confirm the image before scripting file operations.

  • An mDoc subscription. mDoc is a licensed capability. During the introductory preview, AC3 firmware enables mDoc features on compatible readers without a subscription.

    After the preview ends, the device must hold a subscription () whose ValidFrom–ValidTo window includes the current date. Transactions are permitted only inside the subscription window. Subscriptions are managed and provisioned through MagTek Reader Management System (RMS). At the device level, the subscription is set with .

    To set up mDoc subscription licensing for your reader fleet, contact your MagTek representative at .

  • . The reader needs the issuer trust anchors used to authenticate documents: a (the Verified Issuer Certificate Authority List, provided by AAMVA, up to 30 certificates) plus individual IACA certificates supplied by the credentialed issuers--states/DMVs, Apple, Google, Samsung, and others (up to 15). See the reference for loading, fetching, and deleting these files.

  • A valid device RTC, so subscription and certificate validity windows can be evaluated.

  • At least one engagement method enabled (NFC and/or QR/BCR).

Optionally, configure with a number of "warning days." When the subscription is within that many days of its ValidTo date, the reader emits a subscription-warning notification (Notification Detail 05000101 on ) reporting the configured warning-day threshold, the days remaining, and the ValidTo timestamp, letting your application prompt for renewal before transactions stop.

When the subscription passes its ValidTo date, the reader sends a subscription-expired notification (Notification Detail 05000102 on ). From that point, and no longer return data until a new subscription is provisioned. Payment and other non-mDoc functions are unaffected.

For a full read (), you choose which identity fields to request using the command's bit-mapped request items. The elements available for each namespace β€” for example family_name, birth_date, portrait, document_number, age_over_21 β€” are catalogued in the request-item tag tables:

  • request items β€” tags start from 0xDFB001

  • request items β€” tags start from 0xDFB041

  • Mobile passport request items β€” tags start from 0xDFB061

The reader requests only the elements you select, and the phone shows the holder exactly those elements before releasing any data. The host never receives an element it didn't request. Request the smallest set your workflow needs. For example, a pickup check might need only family_name and portrait, not a full identity record.

See in the Reference section for the complete lists.

On a successful read, the requested data elements are returned to the host. When output security is enabled, the data arrives as an encrypted string that the host decrypts; when it is disabled, the same data is returned in the clear. A requested portrait is returned as JPEG image data (encrypted along with the rest of the container when output security is on). The and responses share the same format.

Progress updates and successful results arrive on , carried under Payment Technology . The terminal state of the operation arrives on .

Common non-success conditions to handle β€” these behave like the equivalent events in a standard EMV transaction:

  • Session-data failure β€” the secure session with the phone could not be established or validated.

  • Timeout β€” the cardholder did not complete engagement within the configured timeout.

  • Host cancel β€” the host sent .

  • User cancel β€” the cardholder declined consent or cancelled from the phone (display-only reason).

The pages below hold the authoritative, byte-level detail for everything referenced in this guide. (Link targets in the site are wired to these destinations.)

Topic
Description

Authentication and integrity. The reader validates the response locally on the reader itself against its pre-loaded issuer IACA certificates and verifies the SHA-256 hashes of every returned item to confirm the data has not been altered. On success, the results are delivered to the host through Notification 0x0101; on failure, a failure notification is sent instead.

Subscription warning β€” the subscription is nearing expiration (see above).

  • No active subscription β€” the introductory preview has ended and the device has no subscription whose window includes the current date. The reader does not run 0x1201 or 0x1202.

  • Reports device-level state changes outside a transaction, including the mDoc subscription warning (05000101) and expired (05000102) events with the configured warning days, days remaining, and ValidTo timestamp.

    This notification reports information about progress and state changes that occur during a transaction.

    This notification reports the final result of a transaction the host initiated using Command 0x1001 - Start Transaction.

    Lists every data element the host can request in each namespace (ISO 18013-5 tags from 0xDFB001, AAMVA from 0xDFB041, and mobile passport from 0xDFB061) for selection through the bit-mapped request items in 0x1201.

    mDOC subscription β€” and expiration notification

    Device properties used to configure Mobile Document functionality.

    File operations 0xD811 / 0xD812 / 0xD821 / 0xD831; VICAL, individual certificates, Cert Store Table

    How DynaFamily readers protect cardholder data and manage keys: encrypting data at the point of read, the keys and key-serial numbers behind DUKPT, verifying message integrity with MACs, loading keys with TR-31, and the PCI requirements deployers must meet.

    DynaFamily readers with a contactless interface can exchange commands directly with NFC tags and MIFARE cards through pass-through commands and can present themselves as a card to another reader through NFC card emulation

    Explains how DynaFamily readers connect to a host over USB or Bluetooth LE, with transport-specific guidance for USB HID, WLAN, SLIP framing, and Apple iAP2.

    Command 0x1201 - Read Mobile Document

    Starts an mDoc transaction, defining the namespace, timeout, bit-mapped request items, output security, engagement methods (NFC or QR), and audio cues the reader uses to request and verify identity data from the holder’s phone.

    Command 0x1202 - Age Verification

    Runs an age-only check in the ISO 18013-5 namespace, requesting just the age-over-18, -21, or -25 element so the host never receives the holder’s name, birth date, or other identifying data.

    Command 0x1008 - Cancel Transaction

    Cancels a transaction in progress, including a pending 0x1201 or 0x1202 mDoc read, after which the reader reports the final state through Notification 0x0105.

    Command 0xD112 - Set Property (Secured)

    Sets device properties that require authentication, such as the mDoc subscription (OID 1.2.9.1.1.1), using the same request data as 0xD111 but sent through the secured command sequence.

    Command 0xEEEE - Send Secured Command to Device

    Supported Wallets and Phones

    Supported Wallets and Phones

    How a Transaction Works

    Choosing a Command

    Engagement Methods

    Security and Trust

    Prerequisites

    Prerequisites

    Note: Without an active subscription, the reader automatically disables the mDoc data retrieval commands (0x1201 and 0x1202). All other reader functions keep working without disruption: barcode reading, non-payment NFC, EMV contact, EMV contactless, magnetic stripe, and standard mobile wallet payments.

    Subscription Expiration Warnings

    Requesting Data Elements

    Note: For Samsung ID in Samsung Wallet, please use ISO 18013-5 request items.

    Handling Results and Errors

    Reference

    Need More Help

    Need Help?

    For additional support, please contact MagTek Support:

    Technical Support:

    • πŸ“§ Email: support@magtek.com

    • πŸ“ž Phone: 1-562-546-6800 (US)

    • πŸ• Hours: Monday-Friday, 5:30 AM - 5:00 PM Pacific

    Online Resources:

    • 🌐 Support Portal: developer.magtek.com

    • 🌐 Official Site:

    Documentation Feedback:

    Help us improve this documentation!

    ISO/IEC 18013-5
    AAMVA
    ISO/IEC 23220-4 / mobile passport
    US Mobile Driving License (mDL) in Apple Wallet
    US Mobile Driving License (mDL) or state ID in Google Wallet
    Samsung ID with CLEAR in Samsung Wallet
    Command 0x1201 – Read Mobile Document
    Command 0x1202 – Age Verification
    Notification 0x0101 – Transaction Information Update
    Notification 0x0105 – Transaction Operation Complete
    Command 0x1201 – Read Mobile Document
    Command 0x1202 – Age Verification
    0x1201
    ISO 18013-5
    0x1201
    Command 0x1008 – Cancel Transaction
    NFC
    QR code
    Certificate Store
    existing DUKPT keys
    Security & Key Management
    1.2.9.1.1.1 - Mobile Document Subscription – OID
    0xD112 - Set Property (Secured)
    RetailSolutions@magtek.com
    A loaded certificate store
    VICAL file
    Certificate Store
    1.2.9.1.1.2 - Mobile Document Expiration Notification – OID
    Notification 0x1001
    Notification 0x1001
    0x1201
    0x1202
    0x1201
    ISO 18013-5
    AAMVA
    Request Item Tag Tables
    0x1201
    0x1202
    Notification 0x0101 - Transaction Information Update
    0x40 (Mobile Document)
    Notification 0x0105 - Transaction Operation Complete
    Command 0x1008

    Wraps another command, such as 0xD112, with a challenge token and a MAC or ECDSA signature so the reader can confirm it came from an authorized host and is not a replay.

    https://www.magtek.com
    feedback@magtek.com
    Notification 0x1001 - Device Information Update
    Notification 0x0101 (PT 0x40, mDOC) - Transaction Information Update
    Notification 0x0105 - Transaction Operation Complete
    Request item tag tables (ISO 18013-5/AAMVA/mPassport)
    OID 1.2.9.1.1.1
    OID 1.2.9.1.1.2
    Certificate Store
    Security & Key Management
    NFC engagement
    Connection setup