How to set up the verification portal for implementation
Overview
The document will help an implementer make changes to DIVOC’s verification component in line with any changes made to the certificate. It could include changes in the QR code section of the certificate or the logo, among others.
This section will cover the steps to update the verification component by configuring:
1.
Verification portal home page
2.
Verification confirmation page
Prerequisite: Get details on on functions used for certificate verification
1.
The user will be directed to the verification page according to the route defined in this file:
2. You can configure the timeout period for the camera to read the QR code in config.CERTIFICATE_SCAN_TIMEOUT.
3. If the camera is unable to read the QR code content, the timeout can be set to retry.
const onScanWithQR = () => {
setShowScanner(true);
setTimeout(() => {
if(!result) {
setShowTimeout(true);
}
}, config.CERTIFICATE_SCAN_TIMEOUT);
};
const onTryAgain = () => {
setShowTimeout(false);
setShowScanner(false)
};
4. The QR code scan is triggered from the ‘VerifyCertificate’ method. Once the QR code is read by the application, it is unzipped using the jsZip library.
Verification portal home page
How to update the verification page:
The required UI changes, including messaging and branding, can be configured on thisfile.