> For the complete documentation index, see [llms.txt](https://docs.accurascan.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.accurascan.com/language/react-native/functions/barcode-and-bankcard.md).

# Barcode & Bankcard

## Barcode

### The method use to Scan Barcode

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

### *Parameter*:&#x20;

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&#x20;

### ***Response:***&#x20;

***Success***: JSON Response\
\&#xNAN;***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:***&#x20;

***Success***: JSON Response\
\&#xNAN;***Error***: String

#### Example Function:

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