Skip to content

Commit

Permalink
서버 SDK getPayment 파라미터 수정 (#756)
Browse files Browse the repository at this point in the history
  • Loading branch information
kiwiyou authored Feb 11, 2025
1 parent f904b11 commit 56681c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/routes/(root)/opi/ko/integration/webhook/readme-v2.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ app.post("/portone-webhook", async (req, res, next) => {
if ("paymentId" in webhook.data) {
const { paymentId } = webhook.data;
// 1. 포트원 결제내역 단건조회 API 호출
const paymentResponse = await portone.payment.getPayment(paymentId);
const paymentResponse = await portone.payment.getPayment({ paymentId });

if (paymentResponse === null) {
// 웹훅 정보와 일치하는 결제건이 실제로는 존재하지 않는 경우
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ async function syncPayment(paymentId) {
${({ section }) => section("server:complete-payment:get-payment")`
let actualPayment
try {
actualPayment = await portone.payment.getPayment(paymentId)
actualPayment = await portone.payment.getPayment({ paymentId })
} catch (e) {
if (e instanceof PortOne.Errors.PortOneError) return false
throw e
Expand Down

0 comments on commit 56681c3

Please sign in to comment.