# 4. 결제결과 처리하기

{% hint style="warning" %}
**Deprecated**

이 문서는 더 이상 관리되지 않습니다.

[PortOne 개발자센터](https://developers.portone.io/)를 이용해주세요.
{% endhint %}

#### 결제창이 활성화되는 방식에 따라 결제결과를 획득하는 방법이 상이합니다. 일반적으로 PC 환경에서는 iframe 방식으로 결제창이 활성화되며 모바일 환경에서는 새로운 페이지로 리다이렉트 되어 결제창이 활성화 됩니다.

결제가 정상적으로 완료되면 결제창 형태에 따라 아래와 같이 결제결과를 받아 볼 수 있습니다.

|    iframe 형태    |         팝업 형태        |
| :-------------: | :------------------: |
| **callback 함수** | **m\_redirect\_url** |

자세한 가이드는 아래 링크를 참고해주세요.

{% content-ref url="/pages/hIvjyBkT4StrhPqlQQQQ" %}
[iframe 결제창 결과처리](/docs/auth/guide/4./iframe.md)
{% endcontent-ref %}

{% content-ref url="/pages/6nVBG1BMGjNTJeAIc4Ws" %}
[redirect 결제창 결과처리](/docs/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/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.
