loadPaymentUI 응답 형식
loadPaymentUI 호출 결과로 받는 데이터의 형식을 확인할 수 있습니다.
loadPaymentUI
응답 데이터 정의
onPaymentSuccess
response:
리디렉션 없이 결제 UI가 표시된 경우 반환값
transactionType: "PAYMENT"
유형
일반결제의 경우 무조건 PAYMENT
로 전달됩니다.
txId: string
결제 시도 ID
요청마다 고유하게 생성되는 결제 시도 ID입니다.
paymentId: string
결제 ID
code?: string
오류 코드
실패한 경우 오류 코드입니다.
message?: string
오류 메시지
실패한 경우 오류 메시지입니다.
pgCode?: string
PG 오류 코드
PG에서 오류 코드를 내려 주는 경우 이 오류 코드를 그대로 반환합니다.
pgMessage?: string
네이버페이
PG 오류 메시지
PG에서 오류 메시지를 내려 주는 경우 이 오류 메시지를 그대로 반환합니다.

네이버페이의 경우 이 오류 메시지가 사용자에게 표시되어야 합니다.
onPaymentFail
response:
code: | |
오류 코드
실패한 경우 오류 코드입니다.
"BadRequest"
"ParseChannelFailed"
"ParseIdentityVerificationPrepareResponseFailed"
"ParseIssuePrepareResponseFailed"
"ParsePgRawIdentityVerificationResponseFailed"
"ParsePgRawIssueBillingKeyResponseFailed"
"ParsePgRawResponseFailed"
"ParsePrepareResponseFailed"
message: string
오류 메시지
실패한 경우 오류 메시지입니다.
txId?: string
paymentId?: string
pgCode?: string
PG 오류 코드
PG에서 오류 코드를 내려 주는 경우 이 오류 코드를 그대로 반환합니다.
pgMessage?: string
네이버페이
PG 오류 메시지
PG에서 오류 메시지를 내려 주는 경우 이 오류 메시지를 그대로 반환합니다.

네이버페이의 경우 이 오류 메시지가 사용자에게 표시되어야 합니다.