View Source Exemvi.QR.MP (Exemvi v0.2.2)

This module contains core functions for Merchant-Presented Mode QR Code

Summary

Functions

Parse QR Code into data objects

Validate data objects

Validate whole QR Code

Functions

Parse QR Code into data objects

Returns either:

  • {:ok, objects} where objects is a list of Exemvi.MP.Object structs
  • {:error, reasons} where reasons is a list of error reasons as atoms
Link to this function

validate_objects(objects)

View Source

Validate data objects

Returns either:

  • {:ok, objects} where objects is the objects originally supplied to the function
  • {:error, reasons} where reasons is a list of validation error reasons as atoms

Validate whole QR Code

Returns either:

  • {:ok, qr_code} where qr_code is the QR Code orginally supplied to the function
  • {:error, reasons} where reasons is a list of validation error reasons as atoms