Skip to content

Commit

Permalink
v1 잘못된 예시코드 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
moonjihae committed Dec 2, 2024
1 parent dd756ba commit 05fec82
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/routes/(root)/opi/ko/integration/start/v1/auth.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -363,10 +363,11 @@ SDK의 반환값 대신 URL의 [쿼리 문자열](http://en.wikipedia.org/wiki/Q
});
if (!tokenResponse.ok)
throw new Error(`tokenResponse: ${await tokenResponse.json()}`);
const { access_token } = await tokenResponse.json();
const { response } = await tokenResponse.json();
const { access_token } = response;

// 2. 포트원 결제내역 단건조회 API 호출
const paymentResponse = await fetch(
const paymentResponse = await fetch(:wq
`https://api.iamport.kr/payments/${imp_uid}`,
{ headers: { Authorization: access_token } },
);
Expand Down

0 comments on commit 05fec82

Please sign in to comment.