Tp개커
Toss payments 개발자 커뮤니티
결재관련 - Toss payments 개발자 커뮤니티
박
Toss payments 개발자 커뮤니티
•
13mo ago
•
4 replies
박세일
결재관련
결
재
승
인
관
련
추
가
문
의
드
립
니
다
.
https://docs.tosspayments.com/reference#결제-승인
로
답
변
을
주
셨
는
데
responseStream
에
들
어
온
다
는
건
가
요
?
테
스
트
로
해
서
인
지
URL url
= new URL
(
"
https://api.tosspayments.com/v1/payments/confirm
"
)
;
HttpURLConnection connection
=
(HttpURLConnection
) url
.openConnection
(
)
;
connection
.setRequestProperty
(
"Authorization
"
, authorizations
)
;
connection
.setRequestProperty
(
"Content
-Type
"
,
"application
/json
"
)
;
connection
.setRequestMethod
(
"POST
"
)
;
connection
.setDoOutput
(true
)
;
OutputStream outputStream
= connection
.getOutputStream
(
)
;
outputStream
.write
(obj
.toString
(
)
.getBytes
(
"UTF
-8
"
)
)
;
int code
= connection
.getResponseCode
(
)
;
boolean isSuccess
= code
=
= 200
;
logger
.info
(
"responseStream Test
:
"
)
;
InputStream responseStream
= isSuccess
? connection
.getInputStream
(
)
: connection
.getErrorStream
(
)
;
logger
.info
(
"responseStream
:
"
+responseStream
)
;
responseStream
: sun
.net
.www
.protocol
.http
.HttpURLConnection
$HttpInputStream
@4299b971
이
렇
게
만
들
어
와
서
요
responseStream
데
이
터
를
파
싱
해
서
쓰
라
는
건
가
요
?
realKey
로
하
면
데
이
터
가
들
어
오
는
건
가
요
?
아
래
답
변
내
용
에
답
변
이
없
어
추
가
로
문
의
드
립
니
다
.
코어 API | 토스페이먼츠 개발자센터
토
스
페
이
먼
츠 API
엔
드
포
인
트
(Endpoint
)
와
객
체
정
보
,
파
라
미
터
,
요
청
및
응
답
예
제
를
살
펴
보
세
요
.
Toss payments 개발자 커뮤니티
Join
Toss payments 개발자 커뮤니티입니다. 결제 연동하며 겪는 기술 문의부터, 결제 시장에 대한 다양한 정보까지 얻어가세요~
16,103
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
부가세 관련
아
아이윌소프트 / ❓┃연동개발-문의
3mo ago