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

# Barcode and Bankcard

## Barcode

#### Method use to start Barcode scanning is

```
AccuraOcr.startBarcode(config);
```

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

```
var config= [barcodeSelected];
```

### The example function is shown below

<pre><code>Future&#x3C;void> startBarcode() async{
var config= barcodeSelected; //Barcode Selected(String)
await AccuraOcr.startBarcode([config]).then((value) => {
setState((){
  dynamic result = json.decode(value);
    })
<strong>  });
</strong>}
</code></pre>

### _**Response:**_

**On Success:** JSON String Response

**Error:** String

## Bankcard

#### Method use to start Bankcard scanning is

```
AccuraOcr.startBankCard()
```

### The example function is shown below

```
Future<void> startBankCard() async{
try{
await AccuraOcr.startBankCard().then((value) => {
  setState((){
    dynamic result = json.decode(value);
      })
    });
  }on PlatformException{}
}
```

### _**Response:**_

**On Success:** JSON String Response

**Error:** String
