---
description: Process the result obtained from integrated identity verification.
---

# Send verification result

Based on the the verification result in the response object (<mark style="color:red;">**`rsp`**</mark>) returned after the verification process is completed, add the post-verification processing logic in the **`callback`** function. When the verification is successful, add the logic to **send the verification ID (`imp_uid`) to the server** as in the following example. Check the <mark style="color:blue;">**value returned**</mark> when the verification is successful.&#x20;

### 1. Example of sending data via callback

{% tabs %}
{% tab title="JavaScript" %}
{% code title="client-side" %}
```javascript
  IMP.certification({
    /* ...Omitted... */
  }, function (rsp) { // callback
    if (rsp.success) { // When verification is successful
      // jQuery HTTP request
      jQuery.ajax({
        url: "{server-side endpoint to receive verification info}",
        method: "POST",
        headers: { "Content-Type": "application/json" },
        data: { imp_uid: rsp.imp_uid }
      });
    } else {
      alert("Verification failed. Error: " +  rsp.error_msg);
    }
  });Example of sending data via redirection
```
{% endcode %}
{% endtab %}

{% tab title="JS ES Next" %}
{% code title="client-side" %}
```javascript
IMP.certification({
    /* ...Omitted... */
  }, rsp => { // callback
    if (rsp.success) { // When verification is successful
      // axios HTTP request
      axios({
        url: "{server-side endpoint to receive verification info}",
        method: "post",
        headers: { "Content-Type": "application/json" },
        data: { imp_uid: rsp.imp_uid }
      });
    } else {
      alert(\`Verification failed. Error: \${rsp.error_msg}\`);
    }
  });
```
{% endcode %}
{% endtab %}
{% endtabs %}

### 2. Example of sending data via redirection

The page is redirected to the URL specified in `param.`**`m_redirect_url`** of `IMP.`<mark style="color:red;">**`certification`**</mark> with the verification data as follows:

{% code title="Query String" %}
```uri
GET {m_redirect_url}?imp_uid={}&merchant_uid={merchant_uid for verification}&success={true or false}
```
{% endcode %}
