# 4. Process payment result

How you obtain the payment result varies depending on how the payment window is loaded. In a typical PC environment, the payment window is loaded into an iframe, and in a mobile environment, it is loaded by redirecting to a new page.

When the payment process is completed successfully, you can receive the payment result based on the payment window type as follows:

|         iframe        |         Popup        |
| :-------------------: | :------------------: |
| **callback function** | **m\_redirect\_url** |

Refer to the following detailed instructions:

{% content-ref url="/pages/hIvjyBkT4StrhPqlQQQQ" %}
[Iframe method](/docs-en/auth/guide/4./iframe.md)
{% endcontent-ref %}

{% content-ref url="/pages/6nVBG1BMGjNTJeAIc4Ws" %}
[Redirect method](/docs-en/auth/guide/4./redirect.md)
{% endcontent-ref %}


---

# 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/auth/guide/4..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.
