# 3. 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 complete, 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.

### 1. Example of sending data via callback

{% tabs %}
{% tab title="JavaScript" %}

<pre class="language-javascript" data-title="client-side"><code class="lang-javascript"><strong>  IMP.certification({
</strong>    /* ...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);
    }
  });
</code></pre>

{% 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={
```

{% endcode %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://portone.gitbook.io/docs-en/etc/credit-auth/3.-send-verification-result.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
