d
d2d ago

Payment-widget got error DUPLICATED_ORDER_ID

https://docs.tosspayments.com/guides/v2/payment-widget/integration I’m using the payment-widget. When the backend receives the confirmation request with the following data: { orderId: 'd440c5e8-26b4-4**', amount: 500000, paymentKey: 'web_c202511*' } I then call the API v1/payments/confirm for check the results and I receive the status: "WAITING_FOR_DEPOSIT". Then i waited a few seconds. After that, I called v1/payments/confirm again and got the error DUPLICATED_ORDER_ID. How can I know when the order has been fully paid?
연동하기 | 토스페이먼츠 개발자센터
토스페이먼츠의 간편한 결제 연동 과정을 한눈에 볼 수 있습니다. 각 단계별 설명과 함께 달라지는 UI와 코드를 확인해보세요.
9 Replies
토스페이먼츠 BOT
⏳ 잠시만 기다려주세요! 곧 답변드리겠습니다
오류 문의일 경우 아래 정보를 미리 전달해주시면, 빠른 답변에 도움이 됩니다.
- 주문번호(orderId) : - 문의 내용 :
(img를 함께 첨부해주시면 도움이됩니다)
* 계약관련 내용은 1544-7772로 문의주세요. * 주말/공휴일에는 답변이 늦을 수 있어요.
Kimoon Lee
Kimoon Lee2d ago
Why did you do that "After that, I called v1/payments/confirm again" you already request it and get an reponse properly.
d
dOP2d ago
because i got status WAITING_FOR_DEPOSIT so i need check success or pending
Kimoon Lee
Kimoon Lee2d ago
it is a virtual account. that means you need to deposit money to this VA to comfirm the payment. Do you know how the VA works in korea?
d
dOP2d ago
because i got a confirm request in backend. and i have paymentKey, orderId, amount from body. Does that mean the money has been transferred to VA and is pending right?
Kimoon Lee
Kimoon Lee2d ago
YES VA is the account for the payment. so the user must deposit his money to the account then the payment is confirmed.
Minsu Kim
Minsu Kim2d ago
And we give you the updated body via webhook after the payment is confirmed In the other terms, VA requires webhook configuration
d
dOP2d ago
i got it. and i have one question success page will be opened even though there is no payment to VA yet. right?
이실장
이실장2d ago
yes

Did you find this page helpful?