v1 - Document Types

Depending on the country you are verifying a document for there are multiple possible DocumentTypes. In order to know which document types are available for a specific country GlobalGateway offers the Get Document Types call. Using the user selected country code from the previous step and this call you will get the following response:

{
  "AU": [
    "DrivingLicence",
    "Passport"
  ]
}

Much like how the country codes can be built into a dropdown in HTML, we can do the same with document types. This will allow you user to select the document type they wish to submit.

<form>
  <select name="documenttypes">
    <option value="DrivingLicence">Driving Licence</option>
    <option value="Passport">Passport</option>
  </select>
</form>