# Setup custom messages

### The method use to Setup custom messages

```
accuraService.SetupAccuraConfig(configObj, new AccuraScanResultCallBack());
```

### *Parameters:*

**configObj**: JSON Object

* ACCURA\_ERROR\_CODE\_MOTION: String
* ACCURA\_ERROR\_CODE\_DOCUMENT\_IN\_FRAME: String
* ACCURA\_ERROR\_CODE\_BRING\_DOCUMENT\_IN\_FRAME: String
* ACCURA\_ERROR\_CODE\_PROCESSING: String
* ACCURA\_ERROR\_CODE\_BLUR\_DOCUMENT: String
* ACCURA\_ERROR\_CODE\_FACE\_BLUR: String
* ACCURA\_ERROR\_CODE\_GLARE\_DOCUMENT: String
* ACCURA\_ERROR\_CODE\_HOLOGRAM: String
* ACCURA\_ERROR\_CODE\_DARK\_DOCUMENT: String
* ACCURA\_ERROR\_CODE\_PHOTO\_COPY\_DOCUMENT: String
* ACCURA\_ERROR\_CODE\_FACE: String
* ACCURA\_ERROR\_CODE\_MRZ: String
* ACCURA\_ERROR\_CODE\_PASSPORT\_MRZ: String
* ACCURA\_ERROR\_CODE\_ID\_MRZ: String
* ACCURA\_ERROR\_CODE\_VISA\_MRZ: String
* ACCURA\_ERROR\_CODE\_WRONG\_SIDE: String
* ACCURA\_ERROR\_CODE\_UPSIDE\_DOWN\_SIDE: String
* IS\_SHOW\_LOGO: Boolean
* SCAN\_TITLE\_OCR\_FRONT: String
* SCAN\_TITLE\_OCR\_BACK: String
* SCAN\_TITLE\_OCR: String
* SCAN\_TITLE\_BANKCARD: String
* SCAN\_TITLE\_BARCODE: String
* SCAN\_TITLE\_MRZ\_PDF417\_FRONT: String
* SCAN\_TITLE\_MRZ\_PDF417\_BACK: String
* SCAN\_TITLE\_DLPLATE: String

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

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

#### Example Functions:

```
public partial class MainPage : ContentPage
{
    public MainPage()
    {
        JObject configObj = JObject.Parse(@"{
            'ACCURA_ERROR_CODE_MOTION':'Keep Document Steady',
            'ACCURA_ERROR_CODE_DOCUMENT_IN_FRAME' : 'Keep document in frame',
            'ACCURA_ERROR_CODE_BRING_DOCUMENT_IN_FRAME' : 'Bring card near to frame',
            'ACCURA_ERROR_CODE_PROCESSING' : 'Processing...',
            'ACCURA_ERROR_CODE_BLUR_DOCUMENT' : 'Blur detect in document',
            'ACCURA_ERROR_CODE_FACE_BLUR' : 'Blur detected over face',
            'ACCURA_ERROR_CODE_GLARE_DOCUMENT' : 'Glare detect in document',
            'ACCURA_ERROR_CODE_HOLOGRAM' : 'Hologram Detected',
            'ACCURA_ERROR_CODE_DARK_DOCUMENT' : 'Low lighting detected',
            'ACCURA_ERROR_CODE_PHOTO_COPY_DOCUMENT' : 'Can not accept Photo Copy Document',
            'ACCURA_ERROR_CODE_FACE' : 'Face not detected',
            'ACCURA_ERROR_CODE_MRZ' : 'MRZ not detected',
            'ACCURA_ERROR_CODE_PASSPORT_MRZ' : 'Passport MRZ not detected',
            'ACCURA_ERROR_CODE_ID_MRZ' : 'ID card MRZ not detected',
            'ACCURA_ERROR_CODE_VISA_MRZ' : 'Visa MRZ not detected',
            'ACCURA_ERROR_CODE_WRONG_SIDE' : 'Scanning wrong side of document',
            'ACCURA_ERROR_CODE_UPSIDE_DOWN_SIDE' : 'Document is upside down. Place it properly',
            'IS_SHOW_LOGO' : true,
            'SCAN_TITLE_OCR_FRONT' : 'Scan Front Side of',
            'SCAN_TITLE_OCR_BACK' : 'Scan Back Side of',
            'SCAN_TITLE_OCR' : 'Scan',
            'SCAN_TITLE_BANKCARD' : 'Scan Bank Card',
            'SCAN_TITLE_BARCODE' : 'Scan Barcode',
            'SCAN_TITLE_MRZ_PDF417_FRONT' : 'Scan Front Side of Document',
            'SCAN_TITLE_MRZ_PDF417_BACK' : 'Now Scan Back Side of Document',
            'SCAN_TITLE_DLPLATE' : 'Scan Number Plate',
        }");
        //Setup scanning messages & logo for OCR, MRZ, Barcode & Bankcard.
        accuraService.SetupAccuraConfig(configObj.ToString(), new AccuraScanResultCallBack());
    }
}
public class AccuraScanResultCallBack : AccuraServiceCallBack {
    public void InvokeResult(string error, string result) {
        if (error != null) {
            // Error block.
        }
        else {
            // Result from the SDK
        }
    }
}
```

* **Success**: JSON Response { String }
* **Error**: String
