Barcode & Bankcard

Accura Scan’s solution scans and extracts data from Barcodes as well as Bank cards.

Barcode

The method use to Scan Barcode

AccurascanKyc.startBarcode(passArgs, function (error, success));

Parameter:

In the above method, the 'passArgs' parameter is an array that consists of the 'Selected Barcode' value. The specific value for the 'Selected Barcode' will be provided by the license.

passArgs: [BarcodeType]

  • BarcodeType: String

Response:

Success: JSON Response Error: String

Example Function:

onPressBarcode = () => {
   let passArgs = [this.barcodeSelected];
   AccurascanKyc.startBarcode(passArgs, (error, response) => {
     if (error != null) {
       console.log(error);
     } else {
       console.log('Success!', response);
     }
   });
};

Bankcard

The method use to Scan Bankcard

AccurascanKyc.startBankCard(function (error, success));

Response:

Success: JSON Response Error: String

Example Function:

onPressBankcard = () => {
 AccurascanKyc.startBankCard((error, response) => {
   if (error != null) {
     console.log(error);
   } else {
      console.log('Success!', response);
   }
 });
};

Last updated